summaryrefslogtreecommitdiffstats
path: root/clang/tools/libclang
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2015-09-25 17:53:16 +0000
committerManuel Klimek <klimek@google.com>2015-09-25 17:53:16 +0000
commit8e3a7ede9480a965814bc341d1deac8f63d4e94f (patch)
treeaace62938f3cd9995ee01bb76266af111f175a8e /clang/tools/libclang
parentaea6ade63a5e8969d8125be0020396e3bff03bfa (diff)
downloadbcm5719-llvm-8e3a7ede9480a965814bc341d1deac8f63d4e94f.tar.gz
bcm5719-llvm-8e3a7ede9480a965814bc341d1deac8f63d4e94f.zip
Fix bug on reporting availability of deleted methods in libclang.
Patch by Sergey Kalinichev. llvm-svn: 248596
Diffstat (limited to 'clang/tools/libclang')
-rw-r--r--clang/tools/libclang/CIndex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp
index 53fa684d1dd..829cab736d7 100644
--- a/clang/tools/libclang/CIndex.cpp
+++ b/clang/tools/libclang/CIndex.cpp
@@ -6412,7 +6412,7 @@ extern "C" {
static CXAvailabilityKind getCursorAvailabilityForDecl(const Decl *D) {
if (isa<FunctionDecl>(D) && cast<FunctionDecl>(D)->isDeleted())
- return CXAvailability_Available;
+ return CXAvailability_NotAvailable;
switch (D->getAvailability()) {
case AR_Available:
OpenPOWER on IntegriCloud