We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
InSourceFile
1 parent 3b2c35d commit 52d5547Copy full SHA for 52d5547
clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h
@@ -331,6 +331,10 @@ class ClangTidyDiagnosticConsumer : public DiagnosticConsumer {
331
bool LastErrorRelatesToUserCode = false;
332
bool LastErrorPassesLineFilter = false;
333
bool LastErrorWasIgnored = false;
334
+ /// Tracks whether we're currently inside a
335
+ /// `BeginSourceFile()/EndSourceFile()` pair. Outside of a source file, we
336
+ /// should only receive diagnostics that have to source location, such as
337
+ /// command-line warnings.
338
bool InSourceFile = false;
339
};
340
0 commit comments