[PATCH] Fix crash when handling an argument parsing-related warning.
Daniel Jasper
djasper at google.com
Mon Feb 3 07:47:06 PST 2014
================
Comment at: clang-tidy/ClangTidyDiagnosticConsumer.cpp:85
@@ -84,2 +84,3 @@
// from non-user code.
- if (Diags->getSourceManager().isInSystemHeader(Info.getLocation()))
+ if (Diags->hasSourceManager() && // Let argument parsing-related warnings
+ // through.
----------------
Please don't use end of line comments here, especially not multi-line ones.
http://llvm-reviews.chandlerc.com/D2676
BRANCH
svn
ARCANIST PROJECT
clang-tools-extra
More information about the cfe-commits
mailing list