summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/FoldingSet.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-03-08 02:39:21 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-03-08 02:39:21 +0000
commit0df56f4a9000cd1e7227059b95ffefa4435b0760 (patch)
treed4b662208056265251cddd216a467b284c98e191 /llvm/lib/Support/FoldingSet.cpp
parent226b70c154fa1984ff189c434fefa1fee0af68df (diff)
downloadbcm5719-llvm-0df56f4a9000cd1e7227059b95ffefa4435b0760.tar.gz
bcm5719-llvm-0df56f4a9000cd1e7227059b95ffefa4435b0760.zip
Implement C++11 [lex.ext]p10 for string and character literals: a ud-suffix not
starting with an underscore is ill-formed. Since this rule rejects programs that were using <inttypes.h>'s macros, recover from this error by treating the ud-suffix as a separate preprocessing-token, with a DefaultError ExtWarn. The approach of treating such cases as two tokens is under discussion for standardization, but is in any case a conforming extension and allows existing codebases to keep building while the committee makes up its mind. Reword the warning on the definition of literal operators not starting with underscores (which are, strangely, legal) to more explicitly state that such operators can't be called by literals. Remove the special-case diagnostic for hexfloats, since it was both triggering in the wrong cases and incorrect. llvm-svn: 152287
Diffstat (limited to 'llvm/lib/Support/FoldingSet.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud