diff options
author | Alexis Hunt <alercah@gmail.com> | 2009-11-28 04:44:28 +0000 |
---|---|---|
committer | Alexis Hunt <alercah@gmail.com> | 2009-11-28 04:44:28 +0000 |
commit | 344585006c128b7e89f524d4cd150ef1dd70978c (patch) | |
tree | c94194aeb49acf5e299004e3e417dff7f5ae98a7 /clang/lib/Sema/SemaDecl.cpp | |
parent | c9e3e6ff29df3ea0bd584c304096c1ce654a3c16 (diff) | |
download | bcm5719-llvm-344585006c128b7e89f524d4cd150ef1dd70978c.tar.gz bcm5719-llvm-344585006c128b7e89f524d4cd150ef1dd70978c.zip |
Add Parser support for C++0x literal operators ('operator "" i').
DeclarationName can't handle them yet, so right now Parser just errors out on them.
llvm-svn: 90027
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index 153c15b889a..fe73785a7f1 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -1765,7 +1765,10 @@ DeclarationName Sema::GetNameFromUnqualifiedId(UnqualifiedId &Name) { case UnqualifiedId::IK_OperatorFunctionId: return Context.DeclarationNames.getCXXOperatorName( Name.OperatorFunctionId.Operator); - + + case UnqualifiedId::IK_LiteralOperatorId: + assert(false && "We don't support these; Parse shouldn't have allowed propagation"); + case UnqualifiedId::IK_ConversionFunctionId: { QualType Ty = GetTypeFromParser(Name.ConversionFunctionId); if (Ty.isNull()) |