Home | History | Annotate | Download | only in CodeCompletion
      1 #import "import_moduleA.h"
      2 static const int FROM_IMPL = 2;
      3 
      4 void test0(void) {
      5   int x = 
      6 }
      7 // The lines above this point are sensitive to line/column changes.
      8 
      9 // ===--- None
     10 // RUN: c-index-test -code-completion-at=%s:5:11 %s -I %S/Inputs | FileCheck %s
     11 
     12 // ===--- Modules
     13 // RUN: rm -rf %t && mkdir %t
     14 // RUN: c-index-test -code-completion-at=%s:5:11 %s -I %S/Inputs -fmodules -fmodules-cache-path=%t/mcp | FileCheck %s
     15 
     16 // ===--- PCH
     17 // RUN: rm -rf %t && mkdir %t
     18 // RUN: c-index-test -write-pch %t/import_moduleA.pch -x objective-c-header %S/Inputs/import_moduleA.h -I %S/Inputs
     19 // RUN: c-index-test -code-completion-at=%s:5:11 %s -include-pch %t/import_moduleA.pch -I %S/Inputs | FileCheck %s
     20 
     21 // ===--- PCH + Modules
     22 // RUN: rm -rf %t && mkdir %t
     23 // RUN: c-index-test -write-pch %t/import_moduleA.pch -x objective-c-header %S/Inputs/import_moduleA.h -fmodules -fmodules-cache-path=%t/mcp -I %S/Inputs
     24 // RUN: c-index-test -code-completion-at=%s:5:11 %s -include-pch %t/import_moduleA.pch -I %S/Inputs -fmodules -fmodules-cache-path=%t/mcp | FileCheck %s
     25 
     26 // ===--- Preamble
     27 // RUN: rm -rf %t && mkdir %t
     28 // RUN: env CINDEXTEST_EDITING=1 c-index-test -code-completion-at=%s:5:11 %s -I %S/Inputs | FileCheck %s
     29 
     30 // ===--- Preamble + Modules
     31 // RUN: rm -rf %t
     32 // RUN: env CINDEXTEST_EDITING=1 c-index-test -code-completion-at=%s:5:11 %s -I %S/Inputs -fmodules -fmodules-cache-path=%t/mcp | FileCheck %s
     33 
     34 
     35 // CHECK: FROM_HEADER
     36 // CHECK: FROM_IMPL
     37 // CHECK: FROM_MODULE_A
     38