MCPcopy Create free account
hub / github.com/KDAB/codebrowser / HandleTranslationUnit

Method HandleTranslationUnit

generator/main.cpp:182–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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(

Callers

nothing calls this directly

Calls 2

TraverseDeclMethod · 0.80
generateMethod · 0.45

Tested by

no test coverage detected