yvvan added a comment.

Cool! That's actually quite a small change with big outcome!



================
Comment at: include/clang/Basic/Diagnostic.h:216
 
+  // Suppress warnings from all included files.
+  bool SuppressWarningsFromIncludedFiles = false;
----------------
Probably mention that it also suppresses everything with lower priority? 


================
Comment at: lib/Basic/DiagnosticIDs.cpp:484
+      !Diag.getSourceManager().isInMainFile(
+          Diag.getSourceManager().getExpansionLoc(Loc)))
+    return diag::Severity::Ignored;
----------------
{ } around return


Repository:
  rC Clang

https://reviews.llvm.org/D48116



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to