[PATCH] D26218: [clang-tidy] Ignore notes along with a warning when processing NOLINT

Malcolm Parsons via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 2 03:48:05 PDT 2016

malcolm.parsons added inline comments.

Comment at: clang-tidy/ClangTidyDiagnosticConsumer.cpp:312
     DiagnosticsEngine::Level DiagLevel, const Diagnostic &Info) {
+  static bool ShouldIgnoreNotes = false;
+  if (ShouldIgnoreNotes && DiagLevel == DiagnosticsEngine::Note)
Change `ShouldIgnoreNotes` to a class member and rename to `LastErrorWasIgnored` or similar.


More information about the cfe-commits mailing list