Skip to content

Commit 52d5547

Browse files
committed
Add comment to InSourceFile member
1 parent 3b2c35d commit 52d5547

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,10 @@ class ClangTidyDiagnosticConsumer : public DiagnosticConsumer {
331331
bool LastErrorRelatesToUserCode = false;
332332
bool LastErrorPassesLineFilter = false;
333333
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.
334338
bool InSourceFile = false;
335339
};
336340

0 commit comments

Comments
 (0)