This repository was archived by the owner on Nov 1, 2021. It is now read-only.
File tree 2 files changed +14
-1
lines changed
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change
1
+ void foo () = delete;
2
+
3
+ struct Foo {
4
+ int foo () = delete;
5
+ Foo () = delete ;
6
+ };
7
+
8
+
9
+ // RUN: c-index-test -test-print-type --std=c++11 %s | FileCheck %s
10
+ // CHECK: FunctionDecl=foo:1:6 (unavailable) [type=void ()] [typekind=FunctionProto] [resulttype=void] [resulttypekind=Void] [isPOD=0]
11
+ // CHECK: StructDecl=Foo:3:8 (Definition) [type=Foo] [typekind=Record] [isPOD=1]
12
+ // CHECK: CXXMethod=foo:4:7 (unavailable) [type=int ()] [typekind=FunctionProto] [resulttype=int] [resulttypekind=Int] [isPOD=0]
13
+ // CHECK: CXXConstructor=Foo:5:3 (unavailable) [type=void ()] [typekind=FunctionProto] [resulttype=void] [resulttypekind=Void] [isPOD=0]
Original file line number Diff line number Diff line change @@ -6412,7 +6412,7 @@ extern "C" {
6412
6412
6413
6413
static CXAvailabilityKind getCursorAvailabilityForDecl (const Decl *D) {
6414
6414
if (isa<FunctionDecl>(D) && cast<FunctionDecl>(D)->isDeleted ())
6415
- return CXAvailability_Available ;
6415
+ return CXAvailability_NotAvailable ;
6416
6416
6417
6417
switch (D->getAvailability ()) {
6418
6418
case AR_Available:
You can’t perform that action at this time.
0 commit comments