[clang] Add option -fstdlib-hardening= (PR #78763)

via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 20 04:13:38 PST 2024


================
@@ -275,6 +275,8 @@ def warn_drv_unknown_argument_clang_cl_with_suggestion : Warning<
   InGroup<UnknownArgument>;
 def err_drv_unknown_target_triple : Error<"unknown target triple '%0'">;
 
+def err_drv_stdlib_hardening_unavailable : Error<"libc++ hardening is available only when libc++ is used">;
----------------
cor3ntin wrote:

I disagree with that one change. As the option currently is only available for libc++ that should be reflected in the documentation. I agree that the internal names should be generic

https://github.com/llvm/llvm-project/pull/78763


More information about the cfe-commits mailing list