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.
1 parent 0be6598 commit 911217cCopy full SHA for 911217c
clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
@@ -360,11 +360,9 @@ getFixIt(const tooling::Diagnostic &Diagnostic, bool AnyFix) {
360
361
void ClangTidyDiagnosticConsumer::HandleDiagnostic(
362
DiagnosticsEngine::Level DiagLevel, const Diagnostic &Info) {
363
- assert(InSourceFile ||
364
- Info.getLocation()
365
- .isInvalid()); // A diagnostic should not be reported outside of a
366
- // BeginSourceFile()/EndSourceFile() pair if it has
367
- // a source location.
+ // A diagnostic should not be reported outside of a
+ // BeginSourceFile()/EndSourceFile() pair if it has a source location.
+ assert(InSourceFile || Info.getLocation().isInvalid());
368
369
if (LastErrorWasIgnored && DiagLevel == DiagnosticsEngine::Note)
370
return;
0 commit comments