summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-04-14 00:33:13 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-04-14 00:33:13 +0000
commit534986f2b21e6050bf00163cd6423fd92155a6ed (patch)
treea8e8a492336134952e331deec690f010f5c7b71f /tools
parent9cdd1e3450a07c1bafc32c96f1db88084497f282 (diff)
Add an AttributedStmt type to represent a statement with C++11 attributes
attached. Since we do not support any attributes which appertain to a statement (yet), testing of this is necessarily quite minimal. Patch by Alexander Kornienko! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154723 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/libclang/CXCursor.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/tools/libclang/CXCursor.cpp b/tools/libclang/CXCursor.cpp
index d84cf29098..a298759562 100644
--- a/tools/libclang/CXCursor.cpp
+++ b/tools/libclang/CXCursor.cpp
@@ -247,19 +247,23 @@ CXCursor cxcursor::MakeCXCursor(Stmt *S, Decl *Parent, CXTranslationUnit TU,
case Stmt::CompoundStmtClass:
K = CXCursor_CompoundStmt;
break;
-
+
case Stmt::NullStmtClass:
K = CXCursor_NullStmt;
break;
-
+
case Stmt::LabelStmtClass:
K = CXCursor_LabelStmt;
break;
-
+
+ case Stmt::AttributedStmtClass:
+ K = CXCursor_UnexposedStmt;
+ break;
+
case Stmt::DeclStmtClass:
K = CXCursor_DeclStmt;
break;
-
+
case Stmt::IntegerLiteralClass:
K = CXCursor_IntegerLiteral;
break;
@@ -287,7 +291,7 @@ CXCursor cxcursor::MakeCXCursor(Stmt *S, Decl *Parent, CXTranslationUnit TU,
case Stmt::UnaryOperatorClass:
K = CXCursor_UnaryOperator;
break;
-
+
case Stmt::CXXNoexceptExprClass:
K = CXCursor_UnaryExpr;
break;