aboutsummaryrefslogtreecommitdiff
path: root/include/clang-c
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-01-16 02:02:09 +0000
committerTed Kremenek <kremenek@apple.com>2010-01-16 02:02:09 +0000
commitdeb06bd3566e18f677e76bc435d478b033fe328b (patch)
treee1158bec0eca6dcdab9477c1627fba12c2d96e55 /include/clang-c
parent70ee54258035c860ebc71f7e5f803b74f3186889 (diff)
Remove 'default' case in switch statement in clang_getCursorKindSpelling(). This identified a missing case (warned by the compiler) and identified that CXCursor_FirstDecl didn't actually correspond to the first decl.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93622 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang-c')
-rw-r--r--include/clang-c/Index.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/include/clang-c/Index.h b/include/clang-c/Index.h
index 79ec0f8a4c..4c9f3a36d0 100644
--- a/include/clang-c/Index.h
+++ b/include/clang-c/Index.h
@@ -55,24 +55,24 @@ typedef void *CXStmt; /* A specific statement within a function/method */
enum CXCursorKind {
/* Declarations */
CXCursor_FirstDecl = 1,
- CXCursor_TypedefDecl = 2,
- CXCursor_StructDecl = 3,
- CXCursor_UnionDecl = 4,
- CXCursor_ClassDecl = 5,
- CXCursor_EnumDecl = 6,
- CXCursor_FieldDecl = 7,
- CXCursor_EnumConstantDecl = 8,
- CXCursor_FunctionDecl = 9,
- CXCursor_VarDecl = 10,
- CXCursor_ParmDecl = 11,
- CXCursor_ObjCInterfaceDecl = 12,
- CXCursor_ObjCCategoryDecl = 13,
- CXCursor_ObjCProtocolDecl = 14,
- CXCursor_ObjCPropertyDecl = 15,
- CXCursor_ObjCIvarDecl = 16,
- CXCursor_ObjCInstanceMethodDecl = 17,
- CXCursor_ObjCClassMethodDecl = 18,
- CXCursor_LastDecl = 18,
+ CXCursor_TypedefDecl = 1,
+ CXCursor_StructDecl = 2,
+ CXCursor_UnionDecl = 3,
+ CXCursor_ClassDecl = 4,
+ CXCursor_EnumDecl = 5,
+ CXCursor_FieldDecl = 6,
+ CXCursor_EnumConstantDecl = 7,
+ CXCursor_FunctionDecl = 8,
+ CXCursor_VarDecl = 9,
+ CXCursor_ParmDecl = 10,
+ CXCursor_ObjCInterfaceDecl = 11,
+ CXCursor_ObjCCategoryDecl = 12,
+ CXCursor_ObjCProtocolDecl = 13,
+ CXCursor_ObjCPropertyDecl = 14,
+ CXCursor_ObjCIvarDecl = 15,
+ CXCursor_ObjCInstanceMethodDecl = 16,
+ CXCursor_ObjCClassMethodDecl = 17,
+ CXCursor_LastDecl = 17,
/* Definitions */
CXCursor_FirstDefn = 32,