| /llvm-project-15.0.7/clang/tools/scan-build-py/tests/functional/cases/ |
| H A D | test_from_cdb.py | 38 with libear.TemporaryDirectory() as tmpdir: 39 cdb = prepare_cdb('regular', tmpdir) 45 cdb = prepare_cdb('clean', tmpdir) 51 cdb = prepare_cdb('clean', tmpdir) 59 cdb = prepare_cdb('regular', tmpdir) 65 cdb = prepare_cdb('clean', tmpdir) 71 cdb = prepare_cdb('regular', tmpdir) 77 cdb = prepare_cdb('clean', tmpdir) 83 cdb = prepare_cdb('regular', tmpdir) 90 cdb = prepare_cdb('clean', tmpdir) [all …]
|
| H A D | test_create_cdb.py | 16 def run_intercept(tmpdir, args): argument 17 result = os.path.join(tmpdir, 'cdb.json') 18 make = make_args(tmpdir) + args 30 with libear.TemporaryDirectory() as tmpdir: 36 with libear.TemporaryDirectory() as tmpdir: 79 def run_intercept(tmpdir, target): argument 81 make = make_args(tmpdir) + [target] 98 def run_intercept(tmpdir, target, args): argument 100 make = make_args(tmpdir) + [target] 130 def run_intercept(tmpdir, command): argument [all …]
|
| H A D | test_from_cmd.py | 24 with libear.TemporaryDirectory() as tmpdir: 30 with libear.TemporaryDirectory() as tmpdir: 31 make = make_args(tmpdir) + ['build_clean'] 36 with libear.TemporaryDirectory() as tmpdir: 37 make = make_args(tmpdir) + ['build_clean'] 49 with libear.TemporaryDirectory() as tmpdir: 59 with libear.TemporaryDirectory() as tmpdir: 70 with libear.TemporaryDirectory() as tmpdir: 90 with libear.TemporaryDirectory() as tmpdir: 97 with libear.TemporaryDirectory() as tmpdir: [all …]
|
| /llvm-project-15.0.7/clang/tools/scan-build-py/tests/unit/ |
| H A D | test_report.py | 15 with libear.TemporaryDirectory() as tmpdir: 16 file_name = os.path.join(tmpdir, 'test.html') 24 with libear.TemporaryDirectory() as tmpdir: 25 file_name = os.path.join(tmpdir, preproc + '.info.txt') 80 with libear.TemporaryDirectory() as tmpdir: 81 filename = os.path.join(tmpdir, 'test.c') 90 'output_dir': tmpdir, 99 for root, _, files in os.walk(tmpdir): 361 with libear.TemporaryDirectory() as tmpdir: 518 with libear.TemporaryDirectory() as tmpdir: [all …]
|
| H A D | test_libear.py | 14 with sut.TemporaryDirectory() as tmpdir: 15 self.assertTrue(os.path.isdir(tmpdir)) 16 dirname = tmpdir 23 with sut.TemporaryDirectory() as tmpdir: 24 self.assertTrue(os.path.isdir(tmpdir)) 25 dirname = tmpdir
|
| H A D | test_analyze.py | 20 with libear.TemporaryDirectory() as tmpdir, \ 21 sut.report_directory(tmpdir, False, 'html') as report_dir1, \ 23 sut.report_directory(tmpdir, False, 'html') as report_dir3: 132 with libear.TemporaryDirectory() as tmpdir: 133 filename = os.path.join(tmpdir, 'test.cpp') 143 'output_dir': tmpdir, 150 for entry in os.listdir(tmpdir): 191 with libear.TemporaryDirectory() as tmpdir: 193 filename = os.path.join(tmpdir, 'test.c') 204 'output_dir': tmpdir, [all …]
|
| H A D | test_intercept.py | 68 with libear.TemporaryDirectory() as tmpdir: 71 os.environ['PATH'] = tmpdir + ':' + saved 73 create_csrutil(tmpdir, ENABLED) 76 create_csrutil(tmpdir, DISABLED)
|
| H A D | test_clang.py | 24 with libear.TemporaryDirectory() as tmpdir: 25 filename = os.path.join(tmpdir, 'test.c') 31 tmpdir)
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/tool/ |
| H A D | run-clang-tidy.py | 111 if tmpdir is not None: 135 def merge_replacement_files(tmpdir, mergefile): argument 180 def apply_fixes(args, clang_apply_replacements_binary, tmpdir): argument 188 invocation.append(tmpdir) 302 tmpdir = None 307 tmpdir = tempfile.mkdtemp() 369 if tmpdir: 370 shutil.rmtree(tmpdir) 376 merge_replacement_files(tmpdir, args.export_fixes) 391 if tmpdir: [all …]
|
| H A D | clang-tidy-diff.py | 93 def merge_replacement_files(tmpdir, mergefile): argument 99 for replacefile in glob.iglob(os.path.join(tmpdir, '*.yaml')): 212 tmpdir = None 214 tmpdir = tempfile.mkdtemp() 254 (handle, tmp_name) = tempfile.mkstemp(suffix='.yaml', dir=tmpdir) 269 merge_replacement_files(tmpdir, args.export_fixes) 274 if tmpdir: 275 shutil.rmtree(tmpdir)
|
| /llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/find-all-symbols/tool/ |
| H A D | run-find-all-symbols.py | 55 def run_find_all_symbols(args, tmpdir, build_path, queue): argument 59 invocation = [args.binary, name, '-output-dir='+tmpdir, '-p='+build_path] 86 tmpdir = tempfile.mkdtemp() 104 args=(args, tmpdir, build_path, queue)) 115 MergeSymbols(tmpdir, args)
|
| /llvm-project-15.0.7/flang/test/Semantics/ |
| H A D | test_modfile.py | 31 with tempfile.TemporaryDirectory() as tmpdir: 42 prev_files = set(os.listdir(tmpdir)) 45 universal_newlines=True, cwd=tmpdir) 46 actual_files = set(os.listdir(tmpdir)).difference(prev_files) 61 mod = Path(tmpdir).joinpath(mod)
|
| H A D | test_symbols.py | 43 with tempfile.TemporaryDirectory() as tmpdir: 44 diff3 = subprocess.check_output(cmd, input=diff2, universal_newlines=True, cwd=tmpdir)
|
| H A D | test_errors.py | 33 with tempfile.TemporaryDirectory() as tmpdir: 36 check=True, universal_newlines=True, cwd=tmpdir)
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/tests/ |
| H A D | sanitizer_libc_test.cpp | 72 const char *tmpdir = "/tmp"; in get_temp_dir() 74 tmpdir = GetEnv("TMPDIR"); in get_temp_dir() 76 internal_snprintf(buf, bufsize, "%s", tmpdir); in get_temp_dir() 92 const char *tmpdir = "/tmp"; in temp_file_name() 94 tmpdir = GetEnv("TMPDIR"); in temp_file_name() 96 internal_snprintf(buf, bufsize, "%s/%sXXXXXX", tmpdir, prefix); in temp_file_name() 369 char tmpdir[128]; in TEST() local 370 get_temp_dir(tmpdir, sizeof(tmpdir)); in TEST() 371 EXPECT_TRUE(DirExists(tmpdir)); in TEST()
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.remove_all/ |
| H A D | toctou.pass.cpp | 49 fs::path const tmpdir = env.create_dir("mydir"); in main() local 50 fs::path const victim_del_path = tmpdir / "victim_del"; in main() 51 fs::path const attack_dest_dir = env.create_dir(tmpdir / "attack_dest"); in main()
|
| /llvm-project-15.0.7/lldb/source/Plugins/Platform/Android/ |
| H A D | PlatformAndroid.cpp | 302 std::string tmpdir; in DownloadSymbolFile() local 304 seconds(5), &tmpdir); in DownloadSymbolFile() 305 if (error.Fail() || tmpdir.empty()) in DownloadSymbolFile() 308 tmpdir = llvm::StringRef(tmpdir).trim().str(); in DownloadSymbolFile() 312 tmpdir_remover(&tmpdir, [&adb](std::string *s) { in DownloadSymbolFile() 322 FileSpec symfile_platform_filespec(tmpdir); in DownloadSymbolFile()
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_platform_linux.cpp | 156 const char *tmpdir = GetEnv("TMPDIR"); in MapRodata() local 157 if (tmpdir == 0) in MapRodata() 158 tmpdir = GetEnv("TEST_TMPDIR"); in MapRodata() 160 if (tmpdir == 0) in MapRodata() 161 tmpdir = P_tmpdir; in MapRodata() 163 if (tmpdir == 0) in MapRodata() 167 tmpdir, (int)internal_getpid()); in MapRodata()
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/rtl-old/ |
| H A D | tsan_platform_linux.cpp | 168 const char *tmpdir = GetEnv("TMPDIR"); in MapRodata() local 169 if (tmpdir == 0) in MapRodata() 170 tmpdir = GetEnv("TEST_TMPDIR"); in MapRodata() 172 if (tmpdir == 0) in MapRodata() 173 tmpdir = P_tmpdir; in MapRodata() 175 if (tmpdir == 0) in MapRodata() 179 tmpdir, (int)internal_getpid()); in MapRodata()
|
| /llvm-project-15.0.7/lldb/source/Host/common/ |
| H A D | HostInfoBase.cpp | 286 llvm::SmallVector<char, 16> tmpdir; in ComputeTempFileBaseDirectory() local 287 llvm::sys::path::system_temp_directory(/*ErasedOnReboot*/ true, tmpdir); in ComputeTempFileBaseDirectory() 288 file_spec = FileSpec(std::string(tmpdir.data(), tmpdir.size())); in ComputeTempFileBaseDirectory()
|
| /llvm-project-15.0.7/flang/test/Evaluate/ |
| H A D | test_folding.py | 89 with tempfile.TemporaryDirectory() as tmpdir: 91 check=True, universal_newlines=True, cwd=tmpdir)
|
| /llvm-project-15.0.7/polly/lib/External/ |
| H A D | update-isl.sh | 9 GITDIR=`mktemp -d --tmpdir isl-XXX`
|
| /llvm-project-15.0.7/openmp/runtime/tools/lib/ |
| H A D | tools.pm | 1631 DIR => File::Spec->tmpdir(),
|