================ @@ -292,6 +292,21 @@ class ClangTidyDiagnosticConsumer : public DiagnosticConsumer { void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel, const Diagnostic &Info) override; + void BeginSourceFile(const LangOptions &LangOpts, + const Preprocessor *PP = nullptr) override { + DiagnosticConsumer::BeginSourceFile(LangOpts, PP); + + assert(!InSourceFile); ---------------- jkorous-apple wrote:
I assume this refers to the main input source file only, and has nothing to do with included files. Is that right? https://github.com/llvm/llvm-project/pull/145784 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits