summaryrefslogtreecommitdiffstats
path: root/clang/tools
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2017-07-12 11:34:14 +0000
committerAlex Lorenz <arphaman@gmail.com>2017-07-12 11:34:14 +0000
commit4fabc97c432a43f0c8efc0b307ca9741b016a66c (patch)
treee7a430483d8f998b172f64e21cdbea56b1512364 /clang/tools
parent571b8cfac94bf030c8db74dc24e28301480ecb96 (diff)
downloadbcm5719-llvm-4fabc97c432a43f0c8efc0b307ca9741b016a66c.tar.gz
bcm5719-llvm-4fabc97c432a43f0c8efc0b307ca9741b016a66c.zip
Revert r307769 (Forgot to mention the name of the contributor).
llvm-svn: 307770
Diffstat (limited to 'clang/tools')
-rw-r--r--clang/tools/c-index-test/c-index-test.c2
-rw-r--r--clang/tools/libclang/CIndex.cpp9
-rw-r--r--clang/tools/libclang/libclang.exports1
3 files changed, 0 insertions, 12 deletions
diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c
index cf3581e259f..1e925569dd9 100644
--- a/clang/tools/c-index-test/c-index-test.c
+++ b/clang/tools/c-index-test/c-index-test.c
@@ -804,8 +804,6 @@ static void PrintCursor(CXCursor Cursor, const char *CommentSchemaFile) {
printf(" (const)");
if (clang_CXXMethod_isPureVirtual(Cursor))
printf(" (pure)");
- if (clang_EnumDecl_isScoped(Cursor))
- printf(" (scoped)");
if (clang_Cursor_isVariadic(Cursor))
printf(" (variadic)");
if (clang_Cursor_isObjCOptional(Cursor))
diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp
index 236f264c175..2cbca421c78 100644
--- a/clang/tools/libclang/CIndex.cpp
+++ b/clang/tools/libclang/CIndex.cpp
@@ -7807,15 +7807,6 @@ unsigned clang_CXXMethod_isVirtual(CXCursor C) {
return (Method && Method->isVirtual()) ? 1 : 0;
}
-unsigned clang_EnumDecl_isScoped(CXCursor C) {
- if (!clang_isDeclaration(C.kind))
- return 0;
-
- const Decl *D = cxcursor::getCursorDecl(C);
- auto *Enum = dyn_cast_or_null<EnumDecl>(D);
- return (Enum && Enum->isScoped()) ? 1 : 0;
-}
-
//===----------------------------------------------------------------------===//
// Attribute introspection.
//===----------------------------------------------------------------------===//
diff --git a/clang/tools/libclang/libclang.exports b/clang/tools/libclang/libclang.exports
index e0d178a5291..e78899e4c75 100644
--- a/clang/tools/libclang/libclang.exports
+++ b/clang/tools/libclang/libclang.exports
@@ -12,7 +12,6 @@ clang_CXXMethod_isConst
clang_CXXMethod_isPureVirtual
clang_CXXMethod_isStatic
clang_CXXMethod_isVirtual
-clang_EnumDecl_isScoped
clang_Cursor_getArgument
clang_Cursor_getNumTemplateArguments
clang_Cursor_getTemplateArgumentKind
OpenPOWER on IntegriCloud