diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-02-08 00:35:25 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-02-08 00:35:25 +0000 |
commit | f283fdcd509686b4fbc089ae7020a8e9dbfbcb74 (patch) | |
tree | 98be43901197c3e0f92e6603ce0f1491a36b7139 /clang/lib/AST/DeclarationName.cpp | |
parent | 4b946916ac657c05699d2761febb88bab7fac76e (diff) | |
download | bcm5719-llvm-f283fdcd509686b4fbc089ae7020a8e9dbfbcb74.tar.gz bcm5719-llvm-f283fdcd509686b4fbc089ae7020a8e9dbfbcb74.zip |
P0091R3: Improved syntactic checking of deduction-guides.
llvm-svn: 294395
Diffstat (limited to 'clang/lib/AST/DeclarationName.cpp')
-rw-r--r-- | clang/lib/AST/DeclarationName.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/AST/DeclarationName.cpp b/clang/lib/AST/DeclarationName.cpp index 5f09b2701a1..6053bd7e398 100644 --- a/clang/lib/AST/DeclarationName.cpp +++ b/clang/lib/AST/DeclarationName.cpp @@ -203,7 +203,10 @@ void DeclarationName::print(raw_ostream &OS, const PrintingPolicy &Policy) { } case DeclarationName::CXXDeductionGuideName: - return getCXXDeductionGuideTemplate()->getDeclName().print(OS, Policy); + OS << "<deduction guide for "; + getCXXDeductionGuideTemplate()->getDeclName().print(OS, Policy); + OS << '>'; + return; case DeclarationName::CXXOperatorName: { static const char* const OperatorNames[NUM_OVERLOADED_OPERATORS] = { |