[PATCH] D72841: [RFC] Add support for pragma float_control, to control precision and exception behavior at the source level

Serge Pavlov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 20 22:43:21 PST 2020


sepavloff added inline comments.


================
Comment at: clang/lib/Parse/ParsePragma.cpp:2537
+    if (!Actions.CurContext->isTranslationUnit()) {
+//FIXME this seems to be the wrong way to check file-scope
+//since the token immediately following a function definition
----------------
Probably using `Actions.getCurScope()` can help to recognize file scope.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D72841





More information about the cfe-commits mailing list