summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/DeclarationName.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-10-08 00:17:59 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-10-08 00:17:59 +0000
commite87aeb378dbc9149173f77b5db56d2e8a83b5bef (patch)
tree9f7d72dfe209adc85e7a22b4ff5389ea87921701 /clang/lib/AST/DeclarationName.cpp
parent7c2f9e80f78fbec4e382da062b967500c915c09e (diff)
downloadbcm5719-llvm-e87aeb378dbc9149173f77b5db56d2e8a83b5bef.tar.gz
bcm5719-llvm-e87aeb378dbc9149173f77b5db56d2e8a83b5bef.zip
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 '""'. llvm-svn: 249641
Diffstat (limited to 'clang/lib/AST/DeclarationName.cpp')
-rw-r--r--clang/lib/AST/DeclarationName.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/DeclarationName.cpp b/clang/lib/AST/DeclarationName.cpp
index b7c28772002..b2f27275f49 100644
--- a/clang/lib/AST/DeclarationName.cpp
+++ b/clang/lib/AST/DeclarationName.cpp
@@ -182,7 +182,7 @@ raw_ostream &operator<<(raw_ostream &OS, DeclarationName N) {
}
case DeclarationName::CXXLiteralOperatorName:
- return OS << "operator \"\" " << N.getCXXLiteralIdentifier()->getName();
+ return OS << "operator\"\"" << N.getCXXLiteralIdentifier()->getName();
case DeclarationName::CXXConversionFunctionName: {
OS << "operator ";
OpenPOWER on IntegriCloud