This adds support for the MSVC spelling of the pragma in -fms-extensions mode.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/Parse/ParsePragma.cpp | ||
---|---|---|
280 |
You mean as opposed to an error? Or as opposed to accepting slightly alternative spellings? I don't think we want to accept any other syntax than MSVC. And the custom seems to be to warn and ignore when we can't parse a pragma so I'm following that pattern.
Sadly the PragmaHandler classes don't have access to it. It might be possible to plumb it through, but I'm not sure whether it would be worth it. While looking at it, I did switch to more specific diags for the parens though. |
clang/lib/Parse/ParsePragma.cpp | ||
---|---|---|
280 | Yes, as opposed to an error. If cl.exe errs on this, we should probably err too. |
clang/lib/Parse/ParsePragma.cpp | ||
---|---|---|
280 | They also just warn: https://godbolt.org/z/P3j5Wc78E |
Move down 10 lines until you need it?