| /llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_common_interceptors_format.inc | 173 // returned in dir. This function returns the pointer to the first 177 ScanfDirective *dir) { 178 internal_memset(dir, 0, sizeof(*dir)); 179 dir->argIdx = -1; 186 dir->begin = p; 197 p = maybe_parse_param_index(p, &dir->argIdx); 201 dir->suppressed = true; 206 p = parse_number(p, &dir->fieldWidth); 208 if (dir->fieldWidth <= 0) // Width if at all must be non-zero 213 dir->allocate = true; [all …]
|
| /llvm-project/clang-tools-extra/clangd/test/ |
| H A D | system-include-extractor.test | 1 # RUN: rm -rf %t.dir && mkdir -p %t.dir 7 # RUN: mkdir -p %t.dir/bin 8 # RUN: export PATH=%t.dir/bin:$PATH 9 # Generate a mock-driver that will print %temp_dir%/my/dir and 11 # RUN: echo '#!/bin/sh' >> %t.dir/bin/my_driver.sh 12 # RUN: echo '[ "$0" = "%t.dir/bin/my_driver.sh" ] || exit' >> %t.dir/bin/my_driver.sh 13 # RUN: echo '[ "$1" = "-print-file-name=include" ] && echo "%t.dir/builtin" && exit' >> %t.dir/bin/… 14 # RUN: echo 'args="$*"' >> %t.dir/bin/my_driver.sh 17 # RUN: echo '[ -z "${args##*"-nostdinc"*}" ] || exit' >> %t.dir/bin/my_driver.sh 18 # RUN: echo '[ -z "${args##*"--sysroot /my/sysroot/path"*}" ] || exit' >> %t.dir/bin/my_driver.sh [all …]
|
| /llvm-project/lld/test/COFF/ |
| H A D | lto-obj-path.ll | 5 ; RUN: rm -rf %t.dir/objpath && mkdir -p %t.dir/objpath 6 ; RUN: opt -module-summary %s -o %t.dir/objpath/t1.obj 7 ; RUN: opt -module-summary %p/Inputs/thinlto.ll -o %t.dir/objpath/t2.obj 8 ; RUN: rm -f %t.dir/objpath/t4.obj 9 ; RUN: lld-link -thinlto-index-only -lto-obj-path:%t.dir/objpath/t4.obj \ 10 ; RUN: -out:%t.dir/objpath/t3.exe -entry:main %t.dir/objpath/t1.obj \ 11 ; RUN: %t.dir/objpath/t2.obj 12 ; RUN: llvm-readobj -h %t.dir/objpath/t4.obj | FileCheck %s 13 ; RUN: llvm-nm %t.dir/objpath/t4.obj 2>&1 | FileCheck %s -check-prefix=SYMBOLS 14 ; RUN: llvm-nm %t.dir/objpath/t4.obj 2>&1 | count 1 [all …]
|
| H A D | driver-opt.s | 1 # RUN: mkdir -p %t.dir 2 # RUN: yaml2obj %s -o %t.dir/foo.obj 4 # RUN: rm -f %t.dir/foo.sys 5 # RUN: cd %t.dir; lld-link /driver foo.obj 6 # RUN: llvm-readobj --file-headers %t.dir/foo.sys | FileCheck -check-prefix=DRIVER %s 12 # RUN: rm -f %t.dir/foo.sys 13 # RUN: cd %t.dir; lld-link /driver:uponly foo.obj 14 # RUN: llvm-readobj --file-headers %t.dir/foo.sys | FileCheck -check-prefix=UPONLY %s 19 # RUN: rm -f %t.dir/foo.sys 20 # RUN: cd %t.dir; lld-link /driver:wdm foo.obj [all …]
|
| H A D | force-multipleres.test | 8 RUN: rm -rf %t.dir 9 RUN: mkdir %t.dir 10 RUN: cp %S/Inputs/id.res %t.dir/id1.res 11 RUN: cp %S/Inputs/id.res %t.dir/id2.res 12 RUN: cp %S/Inputs/id.res.o %t.dir/id1.o 13 RUN: cp %S/Inputs/id.res.o %t.dir/id2.o 15 RUN: not lld-link /machine:x64 /nodefaultlib /noentry /dll %t.dir/id1.res %t.dir/id2.res 2>&1 | \ 17 RUN: not lld-link /lldmingw /machine:x64 /nodefaultlib /noentry /dll %t.dir/id1.res %t.dir/id2.o 2>… 19 RUN: not lld-link /lldmingw /machine:x64 /nodefaultlib /noentry /dll %t.dir/id1.o %t.dir/id2.o 2>&1… 23 RUN: lld-link /force /machine:x64 /nodefaultlib /noentry /dll %t.dir/id1.res %t.dir/id2.res 2>&1 | \ [all …]
|
| H A D | autoimport-handler-func.s | 2 # RUN: split-file %s %t.dir 4 # RUN: llvm-dlltool -m i386:x86-64 -d %t.dir/lib.def -D lib.dll -l %t.dir/lib.lib 6 # RUN: llvm-mc -triple=x86_64-windows-gnu %t.dir/main.s -filetype=obj -o %t.dir/main.obj 7 # RUN: llvm-mc -triple=x86_64-windows-gnu %t.dir/func.s -filetype=obj -o %t.dir/func.obj 8 …UN: env LLD_IN_TEST=1 not lld-link -lldmingw -out:%t.dir/main.exe -entry:main %t.dir/main.obj %t.d… 10 # RUN: lld-link -lldmingw -out:%t.dir/main.exe -entry:main %t.dir/main.obj %t.dir/func.obj %t.dir/l…
|
| H A D | winsysroot.test | 4 # RUN: mkdir -p %t.dir/sysroot/VC/Tools/MSVC/1.1.1.1/lib/x86 5 # RUN: mkdir -p %t.dir/sysroot/VC/Tools/MSVC/1.1.1.1/lib/x64 6 # RUN: cp %p/Inputs/std32.lib %t.dir/sysroot/VC/Tools/MSVC/1.1.1.1/lib/x86 7 # RUN: cp %p/Inputs/std64.lib %t.dir/sysroot/VC/Tools/MSVC/1.1.1.1/lib/x64 8 # RUN: lld-link %t.obj /winsysroot:%t.dir/sysroot \ 12 # RUN: lld-link %p/Inputs/hello64.obj /winsysroot:%t.dir/sysroot \ 16 # RUN: lld-link %p/Inputs/hello64.obj /winsysroot:%t.dir/sysroot /machine:x64 \ 19 # RUN: lld-link %t.obj /winsysroot:%t.dir/sysroot /machine:x86 \ 23 # RUN: lld-link %p/Inputs/hello64.obj /winsysroot:%t.dir/sysroot \ 26 # RUN: lld-link %t.obj /winsysroot:%t.dir/sysroot \ [all …]
|
| H A D | autoimport-gc.s | 2 # RUN: split-file %s %t.dir 4 # RUN: llvm-mc -triple=x86_64-windows-gnu %t.dir/lib.s -filetype=obj -o %t.dir/lib.obj 5 # RUN: lld-link -out:%t.dir/lib.dll -dll -entry:DllMainCRTStartup %t.dir/lib.obj -lldmingw -implib:… 7 # RUN: llvm-mc -triple=x86_64-windows-gnu %t.dir/main.s -filetype=obj -o %t.dir/main.obj 8 # RUN: lld-link -lldmingw -out:%t.dir/main.exe -entry:main %t.dir/main.obj %t.dir/lib.lib -opt:ref …
|
| H A D | autoimport-debug.s | 2 # RUN: split-file %s %t.dir 12 # RUN: llvm-mc -triple=x86_64-windows-gnu %t.dir/lib.s -filetype=obj -o %t.dir/lib.obj 13 # RUN: lld-link -out:%t.dir/lib.dll -dll -entry:DllMainCRTStartup %t.dir/lib.obj -lldmingw -implib:… 15 # RUN: llvm-mc -triple=x86_64-windows-gnu %t.dir/main.s -filetype=obj -o %t.dir/main.obj 16 # RUN: lld-link -lldmingw -out:%t.dir/main.exe -entry:main %t.dir/main.obj %t.dir/lib.lib -opt:nore…
|
| /llvm-project/llvm/utils/ |
| H A D | UpdateCMakeLists.pl | 12 my $dir = shift; 13 my $x = $dirFiles{$dir}; 16 $dirFiles{$dir} = $x; 23 my $dir = $File::Find::dir; 26 $dirCMake{$dir} = $File::Find::name; 36 $files = GetFiles($dir); 46 my $dir = shift; 47 my $files = $dirFiles{$dir}; 62 my $dir = shift; 73 EmitCMakeList($dir); [all …]
|
| /llvm-project/lld/test/ELF/linkerscript/ |
| H A D | input-relative.s | 5 # RUN: rm -rf %t.dir && mkdir %t.dir && cd %t.dir 7 # RUN: mkdir dir 10 # RUN: echo '.globl b, dir; b: dir:' | llvm-mc -filetype=obj -triple=x86_64 - -o dir/b.o 12 # RUN: llvm-ar rc dir/libb.a dir/b.o 16 # RUN: echo 'INPUT(libb.a)' > dir/relative.lds 17 # RUN: ld.lld -L. a.o dir/relative.lds -o - | llvm-nm - | FileCheck --check-prefix=DIR %s 19 # RUN: echo 'GROUP(libb.a)' > dir/relative1.lds 20 # RUN: ld.lld -L. a.o dir/relative1.lds -o - | llvm-nm - | FileCheck --check-prefix=DIR %s 22 # DIR: T dir 25 # RUN: echo 'INPUT(-lb)' > dir/cwd.lds [all …]
|
| /llvm-project/clang/test/PCH/ |
| H A D | modified-module-dependency.m | 1 // RUN: rm -rf %t-dir 2 // RUN: mkdir -p %t-dir 3 // RUN: echo '@import test;' > %t-dir/prefix.h 4 // RUN: echo 'void foo(void);' > %t-dir/test.h 5 // RUN: cp %S/modified-module-dependency.module.map %t-dir/module.modulemap 8 …ive-c -I %t-dir -fmodules -fimplicit-module-maps -fmodules-cache-path=%t-dir/cache -fdisable-modul… 11 // RUN: echo ' ' >> %t-dir/test.h 14 …-dir -include-pch %t-dir/prefix.pch -fmodules -fimplicit-module-maps -fmodules-cache-path=%t-dir/c… 15 // RUN: FileCheck %s < %t-dir/log
|
| /llvm-project/compiler-rt/test/fuzzer/ |
| H A D | fuzzer-dirs.test | 20 RUN: rm -rf %t.dir && mkdir -p %t.dir 21 RUN: not %run %t-SimpleTest -artifact_prefix=%t.dir/NONEXISTENT_DIR/ 2>&1 | FileCheck %s --check-pr… 22 RUN: not %run %t-SimpleTest -artifact_prefix=%t.dir/NONEXISTENT_DIR/myprefix 2>&1 | FileCheck %s --… 23 RUN: not %run %t-SimpleTest -features_dir=%t.dir/NONEXISTENT_DIR/ 2>&1 | FileCheck %s --check-prefi… 24 RUN: not %run %t-SimpleTest %t.dir/NONEXISTENT_DIR 2>&1 | FileCheck %s --check-prefix=NONEXISTENT_D… 25 RUN: not %run %t-SimpleTest -exact_artifact_path=%t.dir/NONEXISTENT_DIR/myprefix 2>&1 | FileCheck %… 36 RUN: rm -rf %t.dir && mkdir -p %t.dir/access_restricted 37 RUN: chmod u-w %t.dir/access_restricted || true 38 RUN: not %run %t-SimpleTest -create_missing_dirs=1 %t.dir/access_restricted/?corpus? 2>&1 | FileChe… 42 …dirs=1 -artifact_prefix=%t.dir/subdira/./././artifacts/ -features_dir=%t.dir/subdirb/dummy_dir/./.… [all …]
|
| /llvm-project/llvm/test/tools/llvm-cov/ |
| H A D | dir-with-filtering.test | 1 RUN: llvm-profdata merge %S/Inputs/dir-with-filtering.proftext -o %t.profdata 5 RUN: llvm-cov show %S/Inputs/dir-with-filtering.covmapping -o %t.text -instr-profile %t.profdata -p… 8 TEXT-INDEX: dir-with-filtering1.cpp 1 0 100.00% 1 0 100.00% 4 0 100.00% 9 TEXT-INDEX: dir-with-filtering2.cpp 1 1 0.00% 1 1 0.00% 3 3 0.00% 11 RUN: FileCheck -input-file=%t.text/coverage/tmp/dir-with-filtering1.cpp.txt %s -check-prefix=TEXT-F… 18 RUN: FileCheck -input-file=%t.text/coverage/tmp/dir-with-filtering2.cpp.txt %s -check-prefix=TEXT-F… 27 …puts/dir-with-filtering.covmapping -o %t.text_one_file -instr-profile %t.profdata -path-equivalenc… 30 TEXT-INDEX-ONE-FILE: dir-with-filtering1.cpp 1 0 100.00% 1 0 100.00% 4 0 100.00% 31 TEXT-INDEX-ONE-FILE-NOT: dir-with-filtering2.cpp 33 RUN: FileCheck -input-file=%t.text_one_file/coverage/tmp/dir-with-filtering1.cpp.txt %s -check-pref… [all …]
|
| /llvm-project/lld/test/MachO/ |
| H A D | reproduce.s | 3 # RUN: rm -rf %t.dir 4 # RUN: mkdir -p %t.dir/build1 5 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos %s -o %t.dir/build1/foo.o 6 # RUN: echo '_main' > %t.dir/main.exports 7 # RUN: echo '_main' > %t.dir/main.order 8 # RUN: echo 'not a virus' > %t.dir/sectdata.txt 9 # RUN: cd %t.dir 25 # RUN: cmp build1/foo.o repro1/%:t.dir/build1/foo.o 26 # RUN: diff main.exports repro1/%:t.dir/main.exports 27 # RUN: diff main.order repro1/%:t.dir/main.order [all …]
|
| /llvm-project/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.create_directory/ |
| H A D | create_directory.pass.cpp | 60 const path dir = env.create_dir("dir1"); in create_existing_directory() local 62 assert(fs::create_directory(dir, ec) == false); in create_existing_directory() 64 assert(is_directory(dir)); in create_existing_directory() 66 assert(fs::create_directory(dir) == false); in create_existing_directory() 72 const path dir = env.make_env_path("dir1"); in create_directory_one_level() local 74 assert(fs::create_directory(dir, ec) == true); in create_directory_one_level() 76 assert(is_directory(dir)); in create_directory_one_level() 78 auto st = status(dir); in create_directory_one_level() 86 const path dir = env.make_env_path("dir1/dir2"); in create_directory_multi_level() local 89 assert(fs::create_directory(dir, ec) == false); in create_directory_multi_level() [all …]
|
| H A D | create_directory_with_attributes.pass.cpp | 44 const path dir = env.create_dir("dir1"); in create_existing_directory() local 47 const perms orig_p = status(dir).permissions(); in create_existing_directory() 51 assert(fs::create_directory(dir, dir2, ec) == false); in create_existing_directory() 55 assert(orig_p == status(dir).permissions()); in create_existing_directory() 58 assert(fs::create_directory(dir, dir2) == false); in create_existing_directory() 69 const path dir = env.make_env_path("dir1"); in create_directory_one_level() local 74 assert(fs::create_directory(dir, attr_dir, ec) == true); in create_directory_one_level() 76 assert(is_directory(dir)); in create_directory_one_level() 79 auto st = status(dir); in create_directory_one_level() 87 const path dir = env.make_env_path("dir1/dir2"); in create_directory_multi_level() local [all …]
|
| /llvm-project/lldb/scripts/lldb-test-qemu/ |
| H A D | rootfs.sh | 80 mkdir $image_name.dir 81 sudo mount -o loop $image_name.img $image_name.dir 83 sudo qemu-debootstrap --arch $rfs_arch $rfs_distro $image_name.dir 85 sudo chroot $image_name.dir locale-gen en_US.UTF-8 87 sudo chroot $image_name.dir sed -i \ 90 sudo chroot $image_name.dir sed -i '$ a\nameserver 8.8.8.8' /etc/resolv.conf 92 sudo chroot $image_name.dir apt update 93 sudo chroot $image_name.dir apt -y install ssh bash-completion 94 sudo chroot $image_name.dir adduser --gecos "" $USER 95 sudo chroot $image_name.dir adduser $USER sudo [all …]
|
| /llvm-project/llvm/test/tools/dsymutil/X86/ |
| H A D | reflection-dump.test | 1 RUN: rm -rf %t.dir && mkdir -p %t.dir/tmp 2 RUN: cp %p/../Inputs/main.yaml %t.dir 3 RUN: cp %p/../Inputs/test.yaml %t.dir 4 RUN: cp %p/../Inputs/reflection_metadata.yaml %t.dir 5 RUN: yaml2obj %p/../Inputs/main.yaml -o %t.dir/main 6 RUN: yaml2obj %p/../Inputs/test.yaml -o %t.dir/tmp/test-1.o 7 RUN: yaml2obj %p/../Inputs/reflection_metadata.yaml -o %t.dir/tmp/reflection_metadata-1.o 9 RUN: dsymutil -oso-prepend-path=%t.dir %t.dir/main -o %t.dir/main.dSYM 10 RUN: llvm-objdump -s %t.dir/main.dSYM/Contents/Resources/DWARF/main | FileCheck %s 12 RUN: dsymutil --linker parallel -oso-prepend-path=%t.dir %t.dir/main -o %t.dir/main.dSYM [all …]
|
| H A D | update.test | 1 RUN: rm -rf %t.dir 2 RUN: mkdir -p %t.dir 3 RUN: cat %p/../Inputs/basic.macho.x86_64 > %t.dir/basic 4 RUN: dsymutil -accelerator=Pub -oso-prepend-path=%p/.. %t.dir/basic 5 RUN: llvm-dwarfdump -a %t.dir/basic.dSYM | FileCheck %S/basic-linking-x86.test 6 RUN: dsymutil -accelerator=Pub --update %t.dir/basic.dSYM 7 RUN: llvm-dwarfdump -a %t.dir/basic.dSYM | FileCheck %S/basic-linking-x86.test 8 RUN: dsymutil -accelerator=Pub -u %t.dir/basic.dSYM 9 RUN: llvm-dwarfdump -a %t.dir/basic.dSYM | FileCheck %S/basic-linking-x86.test 10 RUN: dsymutil -accelerator=Pub --update %t.dir/basic.dSYM -o %t.dir/updated.dSYM [all …]
|
| /llvm-project/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.mods/ |
| H A D | refresh.pass.cpp | 73 const path dir = env.create_dir("dir"); in refresh_on_file_dne() local 76 const perms old_perms = status(dir).permissions(); in refresh_on_file_dne() 86 permissions(dir, perms::none); in refresh_on_file_dne() 89 permissions(dir, old_perms); in refresh_on_file_dne() 100 permissions(dir, perms::none); in refresh_on_file_dne() 114 const path dir = env.create_dir("dir"); in refresh_on_bad_symlink() local 118 const perms old_perms = status(dir).permissions(); in refresh_on_bad_symlink() 131 LIBCPP_ONLY(permissions(dir, perms::none)); in refresh_on_bad_symlink() 138 permissions(dir, old_perms); in refresh_on_bad_symlink() 153 LIBCPP_ONLY(permissions(dir, perms::none)); in refresh_on_bad_symlink() [all …]
|
| /llvm-project/flang/lib/Parser/ |
| H A D | preprocessor.cpp | 541 void Preprocessor::Directive(const TokenSequence &dir, Prescanner &prescanner) { in Directive() 542 std::size_t tokens{dir.SizeInTokens()}; in Directive() 543 std::size_t j{dir.SkipBlanks(0)}; in Directive() 547 if (dir.TokenAt(j).ToString() != "#") { in Directive() 548 prescanner.Say(dir.GetTokenProvenanceRange(j), "missing '#'"_err_en_US); in Directive() 551 j = dir.SkipBlanks(j + 1); in Directive() 552 while (tokens > 0 && dir.TokenAt(tokens - 1).IsBlank()) { in Directive() 558 if (IsDecimalDigit(dir.TokenAt(j)[0]) || dir.TokenAt(j)[0] == '"') { in Directive() 559 LineDirective(dir, in Directive() 497 Directive(const TokenSequence & dir,Prescanner & prescanner) Directive() argument 1248 LineDirective(const TokenSequence & dir,std::size_t j,Prescanner & prescanner) LineDirective() argument [all...] |
| /llvm-project/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.create_directories/ |
| H A D | create_directories.pass.cpp | 45 const path dir = env.create_dir("dir1"); in create_existing_directory() local 47 assert(fs::create_directories(dir, ec) == false); in create_existing_directory() 49 assert(is_directory(dir)); in create_existing_directory() 55 const path dir = env.make_env_path("dir1"); in create_directory_one_level() local 57 assert(fs::create_directories(dir, ec) == true); in create_directory_one_level() 59 assert(is_directory(dir)); in create_directory_one_level() 65 const path dir = env.make_env_path("dir1/dir2/dir3"); in create_directories_multi_level() local 67 assert(fs::create_directories(dir, ec) == true); in create_directories_multi_level() 69 assert(is_directory(dir)); in create_directories_multi_level() 119 const path dir = env.make_env_path("file/dir1"); in dest_part_is_file() local [all …]
|
| /llvm-project/llvm/utils/mlgo-utils/tests/corpus/ |
| H A D | make_corpus_script.test | 5 # RUN: rm -rf %t.dir && mkdir %t.dir 6 # RUN: touch %t.dir/test1.bc 7 # RUN: touch %t.dir/test2.bc 8 # RUN: rm -rf %t.out.dir && mkdir %t.out.dir 10 # RUN: %python %scripts_dir/corpus/make_corpus.py --input_dir=%t.dir --output_dir=%t.out.dir --defa… 12 # RUN: cat %t.out.dir/corpus_description.json | FileCheck %s 21 # RUN: ls %t.out.dir | FileCheck %s --check-prefix CHECK-DIR
|
| /llvm-project/clang/utils/ |
| H A D | CaptureCmd | 24 def saveCaptureData(prefix, dir, object): argument 27 path = os.path.join(dir, 37 dir = os.getenv('CAPTURE_CMD_DIR') 41 if not dir: 45 if not os.path.exists(dir): 46 os.mkdir(dir, 0700) 51 envKey = saveCaptureData('env-', dir, env) 52 cwdKey = saveCaptureData('cwd-', dir, os.getcwd()) 53 argvKey = saveCaptureData('argv-', dir, sys.argv) 55 saveCaptureData('cmd-', dir, entry)
|