]> granicus.if.org Git - clang/commit
When pretty-printing a C++11 literal operator, don't insert whitespace between
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 8 Oct 2015 00:17:59 +0000 (00:17 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 8 Oct 2015 00:17:59 +0000 (00:17 +0000)
commita2ce7ac7a57b3839e3e5a0810fdfc90a73eed964
treeb072245bdae92639c07d1dcc4fd127c7eba93841
parentf04251164bda9dc7b6701666d135a7b065500c0b
When pretty-printing a C++11 literal operator, don't insert whitespace between
the "" and the suffix; that breaks names such as 'operator""if'. For symmetry,
also remove the space between the 'operator' and the '""'.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@249641 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
lib/AST/DeclarationName.cpp
lib/AST/StmtPrinter.cpp
lib/Parse/ParseExprCXX.cpp
test/CXX/lex/lex.literal/lex.ext/p12.cpp
test/CXX/lex/lex.literal/lex.ext/p2.cpp
test/CXX/lex/lex.literal/lex.ext/p5.cpp
test/CXX/lex/lex.literal/lex.ext/p7.cpp
test/CXX/over/over.oper/over.literal/p2.cpp
test/Lexer/hexfloat.cpp
test/Parser/cxx11-user-defined-literals.cpp
test/SemaCXX/cxx11-ast-print.cpp
test/SemaCXX/cxx11-user-defined-literals.cpp
test/SemaCXX/literal-operators.cpp