Home
last modified time | relevance | path

Searched refs:dirname (Results 1 – 25 of 275) sorted by relevance

1234567891011

/llvm-project-15.0.7/clang/tools/scan-build-py/tests/unit/
H A Dtest_libear.py13 dirname = None
16 dirname = tmpdir
17 self.assertIsNotNone(dirname)
18 self.assertFalse(os.path.exists(dirname))
21 dirname = None
25 dirname = tmpdir
28 self.assertIsNotNone(dirname)
29 self.assertFalse(os.path.exists(dirname))
/llvm-project-15.0.7/lldb/examples/customization/import-python/
H A Dimportcmd.py7 def check_has_dir_in_path(dirname): argument
8 return sys.path.__contains__(dirname)
11 def ensure_has_dir_in_path(dirname): argument
12 dirname = os.path.abspath(dirname)
13 if not (check_has_dir_in_path(dirname)):
14 sys.path.append(dirname)
/llvm-project-15.0.7/llvm/utils/gn/
H A Dget.py48 dirname = os.path.join(os.path.dirname(__file__), 'bin', platform)
49 if not os.path.exists(dirname):
50 os.makedirs(dirname)
55 try: os.remove(os.path.join(dirname, gn))
57 download_and_unpack(url % platform, dirname, gn)
58 set_executable_bit(os.path.join(dirname, gn))
/llvm-project-15.0.7/clang/tools/diag-build/
H A Ddiag-build.sh36 if [[ -x $(dirname $0)/clang ]]; then
37 CC=$(dirname $0)/clang
49 if [[ -x $(dirname $0)/clang++ ]]; then
50 CXX=$(dirname $0)/clang++
60 if [[ -x $(dirname $0)/diagtool ]]; then
61 diagtool=$(dirname $0)/diagtool
/llvm-project-15.0.7/llvm/test/tools/llvm-libtool-darwin/
H A DL-and-l.test22 # RUN: rm -rf %t/dirname && mkdir -p %t/dirname
23 # RUN: llvm-ar cr %t/dirname/libinput2.a %t-input2.o
25 # RUN: llvm-libtool-darwin -static -o %t.lib -linput2 -L%t/dirname
67 # RUN: cp %t-input2.o %t/dirname
72 # RUN: -DINPUTA=%t/dirname/%basename_t.tmp-input2.o \
115 # RUN: llvm-ar cr %t/dirname/file %t-input1.o
119 # RUN: llvm-ar cr %t/dirname/libfile.a %t-input1.o
124 # RUN: touch %t/dirname/not-valid.o
132 # RUN: touch %t/dirname/libnot-valid.a
137 # RUN: llvm-ar cr %t/dirname/libfoo.o.a %t-input1.o
[all …]
H A Dfilelist.test31 # RUN: rm -rf %t/dirname && mkdir -p %t/dirname
32 # RUN: yaml2obj %S/Inputs/input1.yaml -o %t/dirname/%basename_t.tmp-input1.o
35 ## Passing in dirname:
36 # RUN: llvm-libtool-darwin -static -o %t.lib -filelist %t.files2.txt,%t/dirname
49 # RUN: llvm-libtool-darwin -static -o %t.lib -filelist %t.files2.txt,%t/dirname %t-input2.o
63 …n error is thrown when a file in the filelist doesn't exist in the cwd and no dirname is specified:
71 # RUN: not llvm-libtool-darwin -static -o %t.lib -filelist %t.invalid-list.txt,%t/dirname 2>&1 | \
72 # RUN: FileCheck %s --check-prefix=DIR-ERROR -DDIR=%t/dirname -DFILE=no-such-file -DMSG=%errc_ENO…
76 ## Check that an error is thrown when a file is in the cwd but dirname is specified:
79 # RUN: not llvm-libtool-darwin -static -o %t.lib -filelist %t.files-cwd.txt,%t/dirname 2>&1 | \
[all …]
/llvm-project-15.0.7/llvm/utils/gn/build/
H A Dwrite_vcsrevision.py11 THIS_DIR = os.path.abspath(os.path.dirname(__file__))
12 LLVM_DIR = os.path.dirname(os.path.dirname(os.path.dirname(THIS_DIR)))
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/
H A Dadd_new_check.py303 def get_actual_filename(dirname, filename): argument
304 if not os.path.isdir(dirname):
306 name = os.path.join(dirname, filename)
310 for file in os.listdir(dirname):
312 return os.path.join(dirname, file)
397 dirname, _, check_name = check_name.partition('-')
399 check_file = get_actual_filename(os.path.join(clang_tidy_path, dirname),
407 check_file = filename_from_module(dirname, check_name)
418 base_file = os.path.join(clang_tidy_path, dirname, base_class + '.cpp')
556 update_checks_list(os.path.dirname(sys.argv[0]))
[all …]
/llvm-project-15.0.7/compiler-rt/cmake/Modules/
H A DCompilerRTCompile.cmake128 " if [ -d $(dirname $(dirname $(xcrun -f clang)))/include/c++ ]"
130 …" echo ' cp -r' $(dirname $(dirname $(xcrun -f clang)))/include/c++ '${LLVM_BINARY_DIR}/includ…
131 " elif [ -d $(dirname $(dirname $(xcrun -f clang)))/lib/c++ ]"
133 … " echo ' cp -r' $(dirname $(dirname $(xcrun -f clang)))/lib/c++ '${LLVM_BINARY_DIR}/include/'"
/llvm-project-15.0.7/compiler-rt/test/profile/
H A Dlit.cfg.py18 config.test_source_root = os.path.dirname(__file__)
51 def exclude_unsupported_files_for_aix(dirname): argument
52 for filename in os.listdir(dirname):
53 source_path = os.path.join( dirname, filename)
/llvm-project-15.0.7/mlir/utils/mbr/mbr/
H A Ddiscovery.py20 os.path.join(os.path.dirname(os.path.realpath(__file__)), "config.ini")
35 benchmark_abs_dir = os.path.abspath(os.path.dirname(benchmark_filename))
50 os.path.join(os.path.dirname(os.path.realpath(__file__)), "config.ini")
/llvm-project-15.0.7/lldb/test/API/functionalities/postmortem/minidump-new/
H A DTestMiniDumpUUID.py28 os.path.normcase(os.path.dirname(verify_path)),
29 os.path.normcase(module.GetFileSpec().dirname or ""))
154 cmd = 'settings set target.exec-search-paths "%s"' % (os.path.dirname(so_path))
175 cmd = 'settings set target.exec-search-paths "%s"' % (os.path.dirname(so_path))
196 cmd = 'settings set target.exec-search-paths "%s"' % (os.path.dirname(so_path))
258 cmd = 'settings set target.exec-search-paths "%s"' % (os.path.dirname(so_path))
299 cmd = 'settings set target.exec-search-paths "%s"' % (os.path.dirname(so_path))
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/concurrency/
H A Dmt-unsafe-glibc.cpp5 extern char *dirname (char *__path);
14 dirname(nullptr); in foo()
H A Dmt-unsafe-any.cpp6 extern char *dirname (char *__path);
22 dirname(nullptr); in foo()
H A Dmt-unsafe-posix.cpp6 extern char *dirname (char *__path);
20 dirname(nullptr); in foo()
/llvm-project-15.0.7/lldb/test/API/tools/lldb-vscode/launch/
H A DTestVSCode_launch.py91 os.path.dirname(os.path.dirname(program)))
119 os.path.dirname(os.path.dirname(program)))
146 program_dir = os.path.dirname(program)
191 program_dir = os.path.dirname(program)
215 program_dir = os.path.dirname(program)
/llvm-project-15.0.7/clang/test/
H A Dlit.cfg.py37 config.test_source_root = os.path.dirname(__file__)
166 os.path.dirname(path),
247 def exclude_unsupported_files_for_aix(dirname): argument
248 for filename in os.listdir(dirname):
249 source_path = os.path.join( dirname, filename)
/llvm-project-15.0.7/compiler-rt/test/sanitizer_common/
H A Dlit.common.cfg.py4 config.test_source_root = os.path.join(os.path.dirname(__file__), "TestCases")
60 clang_cflags += ["-I%s" % os.path.dirname(os.path.dirname(__file__))]
/llvm-project-15.0.7/llvm/utils/lit/tests/Inputs/exec-discovery-in-tree/obj/
H A Dlit.site.cfg2 config.test_exec_root = os.path.dirname(__file__)
3 config.test_source_root = os.path.dirname(config.test_exec_root)
/llvm-project-15.0.7/llvm/utils/lit/tests/Inputs/py-config-discovery/
H A Dlit.site.cfg.py3 config.test_exec_root = os.path.dirname(__file__)
4 config.test_source_root = os.path.join(os.path.dirname(config.test_exec_root), "discovery")
/llvm-project-15.0.7/clang/tools/scan-build-py/libexec/
H A Danalyze-c++9 this_dir = os.path.dirname(os.path.realpath(__file__))
10 sys.path.append(os.path.join(os.path.dirname(this_dir), 'lib'))
H A Dintercept-c++9 this_dir = os.path.dirname(os.path.realpath(__file__))
10 sys.path.append(os.path.join(os.path.dirname(this_dir), 'lib'))
H A Danalyze-cc9 this_dir = os.path.dirname(os.path.realpath(__file__))
10 sys.path.append(os.path.join(os.path.dirname(this_dir), 'lib'))
H A Dintercept-cc9 this_dir = os.path.dirname(os.path.realpath(__file__))
10 sys.path.append(os.path.join(os.path.dirname(this_dir), 'lib'))
/llvm-project-15.0.7/clang/tools/scan-build-py/bin/
H A Dintercept-build10 this_dir = os.path.dirname(os.path.realpath(__file__))
11 sys.path.append(os.path.join(os.path.dirname(this_dir), 'lib'))

1234567891011