[clang] [NFC] Move warning from CodeGen to Sema. (PR #107397)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 12 12:44:15 PDT 2024


================
@@ -6784,6 +6784,11 @@ def warn_arc_lifetime_result_type : Warning<
   "ARC %select{unused|__unsafe_unretained|__strong|__weak|__autoreleasing}0 "
   "lifetime qualifier on return type is ignored">,
   InGroup<IgnoredQualifiers>;
+def warn_excess_precision_not_supported : Warning<
+  "excess precision is requested but the target does not support excess "
+  "precision %select{which may result in observable differences in arithmetic "
+  "behavior}0 %select{|,additional use of %1 were found but not diagnosed}2">,
+  InGroup<DiagGroup<"higher-precision">>;
----------------
AaronBallman wrote:

When it was in DiagnosticCommonKinds.td, it was defined as `InGroup<DiagGroup<"higher-precision-fp">>;` so this rename seems unintended. We probably should have a test case using `-Wno-higher-precision-fp` to show that the diagnostic is properly silenced.

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


More information about the cfe-commits mailing list