| 1 |
// RUN: rm -rf %t && mkdir -p %t |
| 2 |
// RUN: %clang_cc1 -fmodules -fblocks -fimplicit-module-maps -fmodules-cache-path=%t/ModulesCache/Methods -fdisable-module-hash -fapinotes-modules -fsyntax-only -I %S/Inputs/Headers -F %S/Inputs/Frameworks %s -x c++ |
| 3 |
// RUN: %clang_cc1 -fmodules -fblocks -fimplicit-module-maps -fmodules-cache-path=%t/ModulesCache/Methods -fdisable-module-hash -fapinotes-modules -I %S/Inputs/Headers -F %S/Inputs/Frameworks %s -ast-dump -ast-dump-filter IntWrapper::getIncremented -x c++ | FileCheck --check-prefix=CHECK-METHOD %s |
| 4 |
// RUN: %clang_cc1 -fmodules -fblocks -fimplicit-module-maps -fmodules-cache-path=%t/ModulesCache/Methods -fdisable-module-hash -fapinotes-modules -I %S/Inputs/Headers -F %S/Inputs/Frameworks %s -ast-dump -ast-dump-filter Outer::Inner::getDecremented -x c++ | FileCheck --check-prefix=CHECK-DEEP-METHOD %s |
| 5 |
|
| 6 |
#include "Methods.h" |
| 7 |
|
| 8 |
// CHECK-METHOD: Dumping IntWrapper::getIncremented: |
| 9 |
// CHECK-METHOD-NEXT: CXXMethodDecl {{.+}} getIncremented |
| 10 |
// CHECK-METHOD: UnavailableAttr {{.+}} <<invalid sloc>> "oh no" |
| 11 |
|
| 12 |
// CHECK-DEEP-METHOD: Dumping Outer::Inner::getDecremented: |
| 13 |
// CHECK-DEEP-METHOD-NEXT: CXXMethodDecl {{.+}} getDecremented |
| 14 |
// CHECK-DEEP-METHOD: UnavailableAttr {{.+}} <<invalid sloc>> "nope" |
| 15 |
|
| 16 |
// CHECK-METHOD-NOT: this should have no effect |
| 17 |
// CHECK-DEEP-METHOD-NOT: this should have no effect |