/llvm-project/clang/test/VFS/Inputs/ |
H A D | vfsoverlay.yaml | 5 'contents': [ 7 'external-contents': 'INPUT_DIR/actual_header.h' 10 'external-contents': 'INPUT_DIR/import_some_frame.h' 13 'external-contents': 'INPUT_DIR/actual_module.map' 16 'external-contents': 'INPUT_DIR/include_real.h' 19 'contents': [ 21 'contents': [ 23 'external-contents': 'INPUT_DIR/public_header.h' }, 25 'external-contents': 'INPUT_DIR/public_header2.h' }, 27 'external-contents': 'INPUT_DIR/public_header3.h' } [all …]
|
H A D | vfsroot.yaml | 3 'use-external-names': false, 7 'contents': [ 8 { 'name': 'vfsroot-include.c', 'type': 'file', 9 'external-contents': 'TEST_DIR/vfsroot-include.c' 11 { 'name': 'vfsroot-with-overlay.c', 'type': 'file', 12 'external-contents': 'TEST_DIR/vfsroot-with-overlay.c' 14 { 'name': 'vfsroot-module.m', 'type': 'file', 15 'external-contents': 'TEST_DIR/vfsroot-module.m' 19 { 'name': '/direct-vfs-root-files', 'type': 'directory', 20 'contents': [ [all …]
|
H A D | bar-headers.yaml | 3 'case-sensitive': 'false', 8 'contents': [ 12 'external-contents': "OUT_DIR/Bar.framework/Headers/A.h" 17 'external-contents': "OUT_DIR/Bar.framework/Headers/B.h" 22 'external-contents': "OUT_DIR/Bar.framework/Headers/C.h" 29 'contents': [ 33 'external-contents': "OUT_DIR/Bar.framework/Modules/module.modulemap"
|
/llvm-project/clang/test/Modules/Inputs/framework-public-includes-private/ |
H A D | z.yaml | 3 'case-sensitive': 'false', 4 'use-external-names' : 'false', 9 'contents': [ 13 'external-contents': "TEST_DIR/flat-header-path/Z.h" 20 'contents': [ 24 'external-contents': "TEST_DIR/flat-header-path/ZPriv.h" 31 'contents': [ 35 'external-contents': "TEST_DIR/flat-header-path/Z.modulemap" 40 'external-contents': "TEST_DIR/flat-header-path/Z.private.modulemap"
|
/llvm-project/clang/test/VFS/ |
H A D | module-map-path.m | 3 // RUN: rm -rf %t 4 // RUN: split-file %s %t 6 // Pre-populate the module cache with the modules that don't use VFS overlays. 7 // RUN: %clang_cc1 -fsyntax-only -F%t/Frameworks -I%t/include %t/prepopulate_module_cache.m \ 8 // RUN: -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/modules.cache 10 // Execute a compilation with VFS overlay. .pcm file path looks like <hash1>/ModuleName-<hash2>.pcm. 15 // DEFINE: %{command} = %clang_cc1 -fsyntax-only -verify -F%t/Frameworks -I%t/include %t/test.m \ 16 // DEFINE: -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/modules.cache 17 // RUN: sed -e "s@TMP_DIR@%{/t:regex_replacement}@g" -e "s@USE_EXTERNAL_NAMES_OPTION@@g" %t/overlay… 18 // RUN: %{command} -ivfsoverlay %t/external-names-default.yaml [all …]
|
H A D | module-header-mismatches.m | 1 // RUN: rm -rf %t 2 // RUN: split-file %s %t 3 // RUN: sed -e "s;TEST_DIR;%/t;g" %t/sed-overlay.yaml > %t/overlay.yaml 9 // This should cause a rebuild if the contents is different (and thus multiple 14 …g_cc1 -Werror -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/hf-mcp -ivfsoverlay %t/over… 15 // RUN: %clang_cc1 -Werror -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/hf-mcp -F %t/he… 16 // RUN: find %t/hf-mcp -name "Mismatch-*.pcm" | count 1 18 …ang_cc1 -Werror -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/df-mcp -ivfsoverlay %t/ov… 19 // RUN: %clang_cc1 -Werror -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/hf-mcp -F %t/di… 20 // RUN: find %t/df-mcp -name "Mismatch-*.pcm" | count 1 [all …]
|
/llvm-project/llvm/unittests/Support/ |
H A D | VirtualFileSystemTest.cpp | 1 //===- unittests/Support/VirtualFileSystem.cpp --------- 622 std::vector<std::string> Contents; TEST() local 664 std::vector<std::string> Contents; TEST() local 690 std::vector<std::string> Contents; TEST() local [all...] |
/llvm-project/llvm/include/llvm/Support/ |
H A D | VirtualFileSystem.h | 1 //===- VirtualFileSystem.h - Virtual File System Layer -------- 326 enum class PrintType { Summary, Contents, RecursiveContents }; global() enumerator 809 std::vector<std::unique_ptr<Entry>> Contents; global() variable 814 DirectoryEntry(StringRef Name,std::vector<std::unique_ptr<Entry>> Contents,Status S) DirectoryEntry() argument [all...] |
/llvm-project/clang/test/Modules/Inputs/ |
H A D | all-product-headers.yaml | 3 'case-sensitive': 'false', 8 'contents': [ 12 'external-contents': "DUMMY_DIR/sources/A.h" 19 'contents': [ 23 'external-contents': "DUMMY_DIR/build/module.modulemap" 28 'external-contents': "DUMMY_DIR/build/module.private.modulemap"
|
/llvm-project/clang/test/VFS/Inputs/Nonmodular/ |
H A D | nonmodular-headers.yaml | 3 'case-sensitive': 'false', 8 'contents': [ 12 'external-contents': "IN_DIR/Inputs/Nonmodular/umbrella.h" 17 'external-contents': "IN_DIR/Inputs/Nonmodular/A.h" 24 'contents': [ 28 'external-contents': "OUT_DIR/module.modulemap"
|
/llvm-project/clang/test/Index/Inputs/ |
H A D | vfsoverlay.yaml | 5 'contents': [ 7 'external-contents': 'INPUT_DIR/module.modulemap' 10 'external-contents': 'INPUT_DIR/module_needs_vfs.h' 13 'external-contents': 'INPUT_DIR/base_module_needs_vfs.h'
|
/llvm-project/clang/unittests/libclang/ |
H A D | LibclangTest.cpp | 1 //===- unittests/libclang/LibclangTest.cpp --- libclang tests -------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 10 #include "clang-c/Index.h" 11 #include "clang-c/Rewrite.h" 25 #define DEBUG_TYPE "libclang-test" 49 const char *Contents; member 52 TestVFO(const char *Contents) : Contents(Contents) { in TestVFO() 67 if (Contents) { in ~TestVFO() 72 EXPECT_STREQ(Contents, BufStr.c_str()); in ~TestVFO() [all …]
|
/llvm-project/clang/test/ClangScanDeps/ |
H A D | optimize-vfs-edgecases.m | 1 // RUN: rm -rf %t 2 // RUN: split-file %s %t 3 // RUN: sed -e "s|DIR|%/t|g" %t/build/compile-commands.json.in > %t/build/compile-commands.json 4 // RUN: sed -e "s|DIR|%/t|g" %t/build/vfsoverlay.yaml.in > %t/build/vfsoverlay.yaml 5 // RUN: sed -e "s|DIR|%/t|g" %t/build/vfs.notyaml.in > %t/build/vfs.notyaml 6 // RUN: clang-scan-deps -compilation-database %t/build/compile-commands.json \ 7 // RUN: -j 1 -format experimental-full --optimize-args=vfs,header-search > %t/deps.db 9 // RUN: %deps-to-rsp %t/deps.db --module-name=A > %t/A.rsp 13 // * `-ivfsoverlay` args that depend on earlier `-ivfsoverlay` args. 15 //--- build/compile-commands.json.in [all …]
|
H A D | modules-file-name-as-requested.m | 1 // This test checks that the module map paths we're reporting are the as-requested 4 // RUN: rm -rf %t 5 // RUN: split-file %s %t 7 //--- real/module.modulemap 9 //--- real/Header.h 10 //--- overlay.json.template 12 "case-sensitive": "false", 16 "contents": [ 18 "external-contents" : "DIR/real/Header.h", 27 "contents": [ [all …]
|
H A D | optimize-vfs.m | 1 // RUN: rm -rf %t 2 // RUN: split-file %s %t 3 // RUN: sed -e "s|DIR|%/t|g" %t/build/compile-commands.json.in > %t/build/compile-commands.json 4 // RUN: sed -e "s|DIR|%/t|g" %t/build/vfs.yaml.in > %t/build/vfs.yaml 5 // RUN: sed -e "s|DIR|%/t|g" %t/build/unused-vfs.yaml.in > %t/build/unused-vfs.yaml 6 // RUN: sed - [all...] |
H A D | modules-canononical-module-map-case.c | 1 // This test checks that VFS-mapped module map path has the correct spelling 4 // RUN: rm -rf %t 5 // RUN: split-file %s %t 7 //--- actual/One.h 9 //--- actual/Two.h 11 //--- frameworks/FW.framework/Modules/module.modulemap 16 //--- tu.m 19 //--- overlay.json.in 22 "case-sensitive": "false", 25 "contents": [ [all …]
|
/llvm-project/clang/test/Modules/Inputs/double-quotes/ |
H A D | z.yaml | 3 'case-sensitive': 'false', 8 'contents': [ 12 'external-contents': "TEST_DIR/flat-header-path/Z.h" 19 'contents': [ 23 'external-contents': "TEST_DIR/flat-header-path/Z.modulemap"
|
/llvm-project/clang/test/Modules/ |
H A D | submodule-in-private-mmap-vfs.m | 1 // RUN: rm -rf %t 2 // RUN: split-file %s %t 3 // RUN: sed -e "s|DIR|%/t|g" %t/vfs.json.in > %t/vfs.json 4 // RUN: %clang_cc1 -fmodules -fno-modules-share-filemanager -fimplicit-module-maps \ 5 // RUN: -fmodules-cache-path=%t -I%t/Virtual -ivfsoverlay %t/vfs.json -fsyntax-only %t/tu.m -veri… 7 //--- Dir1/module.modulemap 9 //--- Dir2/module.private.modulemap 12 //--- vfs.json.in 15 'use-external-names': true, 20 'contents': [ [all …]
|
H A D | crash-vfs-headermaps.m | 1 // REQUIRES: crash-recovery, shell, system-darwin 3 // RUN: rm -rf %t 4 // RUN: mkdir -p %t/m %t/i/Foo.framework/Headers 6 // RUN: %hmaptool write %S/../Preprocessor/Inputs/headermap-rel/foo.hmap.json %t/i/foo.hmap 9 // RUN: not %clang -fsyntax-only -fmodules -fmodules-cache-path=%t/m %s \ 10 // RUN: -I %t/i/foo.hmap -F %t/i 2>&1 | FileCheck %s 12 // RUN: FileCheck --check-prefix=CHECKSH %s -input-file %t/crash-vfs-*.sh 13 // RUN: FileCheck --check-prefix=CHECKYAML %s -input-file \ 14 // RUN: %t/crash-vfs-*.cache/vfs/vfs.yaml 20 // CHECK-NEXT: note: diagnostic msg: {{.*}}.m [all …]
|
H A D | vfs-umbrella-same-dir.m | 1 // RUN: rm -rf %t 2 // RUN: split-file %s %t 4 //--- sources/FW/Private.h 6 //--- sources/FW/PrivateUnmapped.h 8 //--- sources/FW/Public.h 10 //--- frameworks/FW.framework/Headers/PublicPresent.h 12 //--- frameworks/FW.framework/Modules/module.modulemap 14 //--- frameworks/FW.framework/Modules/module.private.modulemap 16 //--- vfs.json.in 18 "case-sensitive": "false", [all …]
|
H A D | crash-vfs-run-reproducer.m | 1 // REQUIRES: crash-recovery, shell, system-darwin 3 // RUN: rm -rf %t 4 // RUN: mkdir -p %t/i %t/m %t 7 // RUN: not %clang -fsyntax-only -nostdinc %s \ 8 // RUN: -I %S/Inputs/crash-recovery/usr/include -isysroot %/t/i/ \ 9 // RUN: -fmodules -fmodules-cache-path=%t/m/ 2>&1 | FileCheck %s 11 // RUN: FileCheck --check-prefix=CHECKSRC %s -input-file %t/crash-vfs-*.m 12 // RUN: FileCheck --check-prefix=CHECKSH %s -input-file %t/crash-vfs-*.sh 13 // RUN: FileCheck --check-prefix=CHECKYAML %s -input-file \ 14 // RUN: %t/crash-vfs-*.cache/vfs/vfs.yaml [all …]
|
H A D | crash-vfs-relative-incdir.m | 1 // REQUIRES: crash-recovery, shell, system-darwin 3 // RUN: rm -rf %t 4 // RUN: mkdir -p %t/m 5 // RUN: cd %S/Inputs/crash-recovery/usr 8 // RUN: not %clang -fsyntax-only -nostdinc %s -Iinclude \ 9 // RUN: -fmodules -fmodules-cache-path=%t/m/ 2>&1 | FileCheck %s 11 // RUN: FileCheck --check-prefix=CHECKSRC %s -input-file %t/crash-vfs-*.m 12 // RUN: FileCheck --check-prefix=CHECKSH %s -input-file %t/crash-vfs-*.sh 13 // RUN: FileCheck --check-prefix=CHECKYAML %s -input-file \ 14 // RUN: %t/crash-vfs-*.cache/vfs/vfs.yaml [all …]
|
H A D | crash-vfs-relative-overlay.m | 1 // REQUIRES: crash-recovery, shell 3 // FIXME: This XFAIL is cargo-culted from crash-report.c. Do we need it? 4 // XFAIL: target={{.*-windows-gnu}} 6 // RUN: rm -rf %t 7 // RUN: mkdir -p %t/i %t/m %t 10 // RUN: not %clang -fsyntax-only -nostdinc %s \ 11 // RUN: -I %S/Inputs/crash-recovery/usr/include -isysroot %/t/i/ \ 12 // RUN: -fmodules -fmodules-cache-path=%t/m/ 2>&1 | FileCheck %s 14 // RUN: FileCheck --check-prefix=CHECKSRC %s -input-file %t/crash-vfs-*.m 15 // RUN: FileCheck --check-prefix=CHECKSH %s -input-file %t/crash-vfs-*.sh [all …]
|
/llvm-project/clang/test/CodeGen/Inputs/ |
H A D | sanitizer-ignorelist-vfsoverlay.yaml | 5 'contents': [ 6 { 'name': 'only-virtual-file.ignorelist', 'type': 'file', 7 'external-contents': '@REAL_FILE@' 9 { 'name': 'invalid-virtual-file.ignorelist', 'type': 'file', 10 'external-contents': '@NONEXISTENT_FILE@'
|
/llvm-project/llvm/test/DebugInfo/X86/ |
H A D | gnu-public-names-tu.ll | 1 ; RUN: llc -mtriple=x86_64-pc-linux-gnu -generate-type-units -filetype=obj < %s | llvm-dwarfdump -v… 14 ; CHECK-LABEL: .debug_info contents: 15 ; CHECK: [[CU:0x[0-9a-f]+]]: DW_TAG_compile_unit 16 ; CHECK: [[BAR:0x[0-9a-f]+]]: DW_TAG_structure_type 19 ; CHECK-LABEL: .debug_gnu_pubnames contents: 20 ; CHECK-NEXT: length = {{.*}}, version = 0x0002, unit_offset = 0x00000000, unit_size = {{.*}} 21 ; CHECK-NEXT: Offset Linkage Kind Name 22 ; CHECK-NEXT: [[CU]] EXTERNAL TYPE "ns" 23 ; CHECK-NEXT: {{.*}} EXTERNAL VARIABLE "b" 25 ; CHECK-LABEL: debug_gnu_pubtypes contents: [all …]
|