We have in place support for parsing #pragma FENV_ACCESS, but that information is then discarded with a warning to the user that we don't support it.
This patch gets us one step closer by getting the info down into the AST.
Paths
| Differential D49865
Inform the AST of #pragma FENV_ACCESS use ClosedPublic Authored by kpn on Jul 26 2018, 10:07 AM.
Details Summary We have in place support for parsing #pragma FENV_ACCESS, but that information is then discarded with a warning to the user that we don't support it. This patch gets us one step closer by getting the info down into the AST.
Diff Detail Event TimelineComment Actions Thanks, this is definitely a step in the right direction.
rsmith added inline comments. This revision is now accepted and ready to land.Jul 30 2018, 12:56 PM Comment Actions Thanks for the fast turnaround! I don't have commit access, can I get you to commit it for me? And can I get you to put my email address <kevin.neal@sas.com> in the commit message? I'll start looking at Sema like you said. kpn marked an inline comment as done. Comment ActionsThis includes the change to pass the annotation token when FENV_ACCESS is turned off.
Revision Contents
Diff 158351 include/clang/AST/Expr.h
include/clang/Basic/LangOptions.h
include/clang/Basic/TokenKinds.def
include/clang/Parse/Parser.h
include/clang/Sema/Sema.h
lib/Parse/ParsePragma.cpp
lib/Parse/ParseStmt.cpp
lib/Parse/Parser.cpp
lib/Sema/SemaAttr.cpp
|
Nit: I think this should be capitalized as FEnvAccess. Lowercasing the "ccess" of "access" but not the "nv" of "environment" seems inconsistent to me, and falsely makes "FENV" look like an initialism or acronym.