denik added a comment.

Hi Aaron,

Thank you for your review. I updated the diff with suggested changes.



================
Comment at: clang/include/clang/Basic/DiagnosticGroups.td:1072
+// cross-compiling.
+def PoisonSystemDirectories : DiagGroup<"poison-system-directories">;
+
----------------
aaron.ballman wrote:
> Do you envision more warnings being added to this group? If not, I would 
> recommend dropping this change and instead using 
> `InGroup<DiagGroup<"poison-system-directories">>` in the diagnostic.
Added the change. Thanks.


================
Comment at: clang/lib/Frontend/InitHeaderSearch.cpp:145
+      Headers.getDiags().Report(diag::warn_poison_system_directories)
+          << MappedPathStr.str();
+    }
----------------
aaron.ballman wrote:
> I don't think you need the `.str()` here.
Thank you for pointing out. Fixed.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D52524/new/

https://reviews.llvm.org/D52524



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

Reply via email to