| 170 | } |
| 171 | |
| 172 | virtual bool HandleTopLevelDecl(clang::DeclGroupRef D) override { |
| 173 | if (ci.getDiagnostics().hasFatalErrorOccurred()) { |
| 174 | // Reset errors: (Hack to ignore the fatal errors.) |
| 175 | ci.getDiagnostics().Reset(); |
| 176 | // When there was fatal error, processing the warnings may cause crashes |
| 177 | ci.getDiagnostics().setIgnoreAllWarnings(true); |
| 178 | } |
| 179 | return true; |
| 180 | } |
| 181 | |
| 182 | virtual void HandleTranslationUnit(clang::ASTContext& Ctx) override { |
| 183 |
nothing calls this directly
no outgoing calls
no test coverage detected