| 180 | } |
| 181 | |
| 182 | virtual void HandleTranslationUnit(clang::ASTContext& Ctx) override { |
| 183 | |
| 184 | /* if (PP.getDiagnostics().hasErrorOccurred()) |
| 185 | return;*/ |
| 186 | ci.getPreprocessor().getDiagnostics().getClient(); |
| 187 | |
| 188 | |
| 189 | BrowserASTVisitor v(annotator); |
| 190 | v.TraverseDecl(Ctx.getTranslationUnitDecl()); |
| 191 | |
| 192 | |
| 193 | annotator.generate(ci.getSema(), WasInDatabase != DatabaseType::NotInDatabase); |
| 194 | } |
| 195 | |
| 196 | virtual bool shouldSkipFunctionBody(clang::Decl *D) override { |
| 197 | return !annotator.shouldProcess( |
nothing calls this directly
no test coverage detected