aaron.ballman added inline comments.

================
Comment at: clang/lib/Parse/ParsePragma.cpp:107
+    if (!PP.getTargetInfo().hasStrictFP() && !PP.getLangOpts().ExpStrictFP) {
+      PP.Diag(Tok.getLocation(), diag::warn_pragma_fp_ignored)
+          << "FENV_ACCESS";
----------------
Can you fix the lint issues (run the patch through clang-format)? Same for 
below.


================
Comment at: clang/lib/Parse/ParsePragma.cpp:2967
+    PP.Diag(Tok.getLocation(), diag::warn_pragma_fp_ignored)
+        << PragmaName.getIdentifierInfo()->getName();
+    return;
----------------
Can you pass in `PragmaName` directly, or does that do unfortunate things with 
single quotes?


================
Comment at: clang/test/Parser/pragma-fp-warn.c:11-13
+// expected-warning@+8 {{'#pragma FENV_ROUND' is not supported on this target 
- ignored}}
+// expected-warning@+5 {{'#pragma FENV_ACCESS' is not supported on this target 
- ignored}}
+// expected-warning@+2 {{'#pragma float_control' is not supported on this 
target - ignored}}
----------------
I'd appreciate reversing the order of the comments so that they're in the same 
order as the pragmas below.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D90316

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

Reply via email to