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

Method HandleTopLevelDecl

generator/main.cpp:172–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected