| /external/angle/src/libANGLE/renderer/metal/shaders/ |
| D | gen_mtl_internal_shaders.py | 64 clang = os.path.join('..', '..', '..', '..', '..', 'third_party', 'llvm-build', 67 if not os.path.isfile(clang): 70 clang = xcrun_clang.stdout.strip() 71 if (not os.path.isfile(clang)): 74 return clang 90 clang = find_clang() 100 args = [clang] 110 final_combined_src_string = combined_source.replace('@@'.encode('utf-8'), ''.encode('utf-8')) 116 boilerplate_code = template_header_boilerplate.format( 131 boilerplate_code = template_header_boilerplate.format(
|
| /external/sandboxed-api/sandboxed_api/bazel/ |
| D | llvm_config.bzl | 26 "llvm-project-include/clang-c/**/*.h", 27 "llvm-project-include/clang/**/*.def", 28 "llvm-project-include/clang/**/*.h", 29 "llvm-project-include/clang/**/*.inc", 44 visibility = ["@llvm-project//clang:__pkg__"], 55 cc_library(name = "format", deps = ["@llvm-project//llvm:llvm"]) 68 "/usr/lib/llvm-{}/include/llvm/Support/InitLLVM.h".format(ver) 76 for suffix in ["llvm", "llvm-c", "clang", "clang-c"]: 98 lib_strs = sorted(["\"-l{}\",".format(a[5:-2]) for a in archives]) 103 .replace("%{llvm_lib_dir}", lib_dir) [all …]
|
| /external/mesa3d/docs/ |
| D | codingstyle.rst | 9 try following the format of existing, neighboring code. 11 ``clang-format`` 14 A growing number of drivers and components are adopting ``clang-format`` 17 You can re-format the code for the components that have opted-in to the 18 formatting enforcement (listed in ``.clang-format-include``) by simply 19 running ``ninja -C build/ clang-format``. 33 Add this to your ``.vimrc`` to automatically format any C & C++ file 34 (that has a .clang-format config) when you save it: 42 " Only format files that have a .clang-format in a parent folder 43 if !empty(findfile('.clang-format', '.;')) [all …]
|
| /external/protobuf/objectivec/Tests/ |
| D | GPBMessageTests+Merge.m | 1 // Protocol Buffers - Google's data interchange format 113 // Half the values that will replace. 151 // Other half the values that will replace. 270 // clang-format off 278 // clang-format on 281 // clang-format off 289 // clang-format on 292 // clang-format off 300 // clang-format on 303 // clang-format off [all …]
|
| /external/cronet/third_party/protobuf/objectivec/Tests/ |
| D | GPBMessageTests+Merge.m | 1 // Protocol Buffers - Google's data interchange format 113 // Half the values that will replace. 151 // Other half the values that will replace. 270 // clang-format off 278 // clang-format on 281 // clang-format off 289 // clang-format on 292 // clang-format off 300 // clang-format on 303 // clang-format off [all …]
|
| /external/webrtc/third_party/crc32c/src/ |
| D | README.md | 6 New file format authors should consider 62 apm install autocomplete-clang build build-cmake clang-format language-cmake \ 63 linter linter-clang 66 If you don't mind more setup in return for more speed, replace 67 `autocomplete-clang` and `linter-clang` with `you-complete-me`. This requires 71 apm install autocomplete-plus build build-cmake clang-format language-cmake \ 104 -DCMAKE_ANDROID_NDK_TOOLCHAIN_VERSION=clang \
|
| /external/angle/build/toolchain/win/rc/ |
| D | rc.py | 126 clang = os.path.join(SRC_DIR, 'third_party', 'llvm-build', 131 clang += '.exe' 136 clang_cmd = [clang, '/P', '/DRC_INVOKED', '/TC', '-', '/Fi' + temp_file] 193 TOOL_DIR = os.path.dirname(os.path.relpath(THIS_DIR)).replace("\\", "/") 196 print('Note: including file: {}/tool_wrapper.py'.format(TOOL_DIR)) 197 print('Note: including file: {}/rc/rc.py'.format(TOOL_DIR)) 199 'Note: including file: {}/rc/linux64/rc.sha1'.format(TOOL_DIR)) 200 print('Note: including file: {}/rc/mac/rc.sha1'.format(TOOL_DIR)) 202 'Note: including file: {}/rc/win/rc.exe.sha1'.format(TOOL_DIR))
|
| /external/cronet/build/toolchain/win/rc/ |
| D | rc.py | 126 clang = os.path.join(SRC_DIR, 'third_party', 'llvm-build', 131 clang += '.exe' 136 clang_cmd = [clang, '/P', '/DRC_INVOKED', '/TC', '-', '/Fi' + temp_file] 193 TOOL_DIR = os.path.dirname(os.path.relpath(THIS_DIR)).replace("\\", "/") 196 print('Note: including file: {}/tool_wrapper.py'.format(TOOL_DIR)) 197 print('Note: including file: {}/rc/rc.py'.format(TOOL_DIR)) 199 'Note: including file: {}/rc/linux64/rc.sha1'.format(TOOL_DIR)) 200 print('Note: including file: {}/rc/mac/rc.sha1'.format(TOOL_DIR)) 202 'Note: including file: {}/rc/win/rc.exe.sha1'.format(TOOL_DIR))
|
| /external/clang/tools/scan-build-py/libscanbuild/ |
| D | report.py | 25 from libscanbuild.clang import get_version 119 | </head>""", indent).format(html_title=args.html_title)) 130 | </table>""", indent).format(html_title=args.html_title, 135 clang_version=get_version(args.clang), 174 | </tr>""", indent).format(bug_counter.total)) 179 | </tr>""", indent).format(category)) 191 | </tr>""", indent).format(**bug_type)) 237 | </tr>""", indent).format(**current)) 275 | </tr>""", indent).format(**current)) 303 lambda bug: '{bug_line}.{bug_path_length}:{bug_file}'.format(**bug)) [all …]
|
| D | runner.py | 16 from libscanbuild.clang import get_version, get_arguments 58 raise KeyError('{0} not passed to {1}'.format( 138 handle.write(error.title().replace('_', ' ') + os.linesep)
|
| /external/clang/test/ |
| D | lit.cfg | 40 # testFormat: The test format to use to interpret tests. 148 clang_src_root = os.path.join(llvm_src_root, "tools", "clang") 149 clang_obj_root = os.path.join(llvm_obj_root, "tools", "clang") 152 # tools/clang layout. 171 # Discover the 'clang' and 'clangcc' to use. 176 # Determine which clang to use. 177 clang = os.getenv('CLANG') 179 # If the user set clang in the environment, definitely use that and don't 181 if clang: 182 return clang [all …]
|
| /external/rust/crates/bindgen/ir/ |
| D | item.rs | 20 use crate::clang; 418 location: Option<clang::SourceLocation>, 435 location: Option<clang::SourceLocation>, in new() 455 ty: &clang::Type, in new_opaque_type() 534 pub(crate) fn location(&self) -> Option<&clang::SourceLocation> { in location() 734 to.push_str(&format!("_open{}_", level)); in push_disambiguated_name() 742 to.push_str(&format!("close{}", level)); in push_disambiguated_name() 795 format!("_bindgen_mod_{}", self.exposed_id(ctx)) in base_name() 800 format!("_bindgen_ty_{}", self.exposed_id(ctx)) in base_name() 959 format!("id_{}", self.id().as_usize()) in exposed_id() [all …]
|
| D | context.rs | 22 use crate::clang::{self, Cursor}; 320 type_params: HashMap<clang::Cursor, TypeId>, 337 semantic_parents: HashMap<clang::Cursor, ItemId>, 378 translation_unit: clang::TranslationUnit, 381 target_info: clang::TargetInfo, 533 input_unsaved_files: &[clang::UnsavedFile], in new() 538 let index = clang::Index::new(false, true); in new() 547 clang::TranslationUnit::parse( in new() 562 let target_info = clang::TargetInfo::new(&translation_unit); in new() 713 let old_item = mem::replace(&mut self.items[id.0], Some(item)); in add_item() [all …]
|
| D | ty.rs | 15 use crate::clang::{self, Cursor}; 239 !clang::is_valid_identifier(name) in is_invalid_type_param() 247 if clang::is_valid_identifier(name) { in sanitize_name() 251 let name = name.replace(|c| c == ' ' || c == ':' || c == '.', "_"); in sanitize_name() 264 Some((inner, format!("array{}", length).into())) in sanitized_name() 272 .map(|name| format!("{}_{}", prefix, name).into()) in sanitized_name() 639 clang::Type, 640 clang::Cursor, 672 ty: &clang::Type, in from_clang_ty() 1122 if clang::is_valid_identifier(&pretty_name) { in from_clang_ty() [all …]
|
| /external/jsoncpp/ |
| D | CONTRIBUTING.md | 47 In the instructions below, replace `path/to/jsontest` with the path of the 79 * a `TESTNAME.json` file, that contains the input document in JSON format. 83 The `TESTNAME.expected` file format is as follows: 146 …e modifying (or the above rules for new files), and run clang format. Meson exposes clang format w… 148 ninja -v -C build-${LIB_TYPE}/ clang-format
|
| /external/rust/crates/bindgen/ |
| D | lib.rs | 44 mod clang; module 197 _ => Err(format!("`{}` is not a valid formatter", s)), in from_str() 345 clang::UnsavedFile::new(name.as_ref(), contents.as_ref()) in generate() 358 let clang = in dump_preprocessed_input() localVariable 404 let mut cmd = Command::new(clang.path); in dump_preprocessed_input() 596 format!("The {} Rust target is deprecated.", target), in deprecated_target_diagnostic() 748 input_unsaved_files: Vec<clang::UnsavedFile>, in generate() 776 format!("--target={}", effective_target).into_boxed_str(), in generate() 824 let clang = match clang_sys::support::Clang::find( in generate() localVariable 829 Some(clang) => clang, in generate() [all …]
|
| /external/tensorflow/third_party/gpus/ |
| D | cuda_configure.bzl | 7 * `TF_CUDA_CLANG`: Whether to use clang as a cuda compiler. 8 * `CLANG_CUDA_COMPILER_PATH`: The clang compiler path that will be used for 11 * `TF_DOWNLOAD_CLANG`: Whether to download a recent release of clang 124 get_env_var(repository_ctx, "TMP", "C:\\Windows\\Temp").replace( 133 return find_msvc_tool(repository_ctx, vc_path, "cl.exe").replace("\\", "/") 165 get_env_var(repository_ctx, "TMP", "C:\\Windows\\Temp").replace( 172 msvc_ml_path = find_msvc_tool(repository_ctx, vc_path, "ml64.exe").replace( 176 msvc_link_path = find_msvc_tool(repository_ctx, vc_path, "link.exe").replace( 180 msvc_lib_path = find_msvc_tool(repository_ctx, vc_path, "lib.exe").replace( 219 target_cc_name = "clang" [all …]
|
| D | rocm_configure.bzl | 84 " environment variable").format(target_cc_name, cc_path_envvar)) 136 # For some reason `clang -xc` sometimes returns include paths that are 137 # different from the ones from `clang -xc++`. (Symlink and a dir) 185 inc_dirs.append(rocm_toolkit_path + "/llvm/lib/clang/8.0/include") 186 inc_dirs.append(rocm_toolkit_path + "/llvm/lib/clang/9.0.0/include") 187 inc_dirs.append(rocm_toolkit_path + "/llvm/lib/clang/10.0.0/include") 188 inc_dirs.append(rocm_toolkit_path + "/llvm/lib/clang/11.0.0/include") 189 inc_dirs.append(rocm_toolkit_path + "/llvm/lib/clang/12.0.0/include") 190 inc_dirs.append(rocm_toolkit_path + "/llvm/lib/clang/13.0.0/include") 191 inc_dirs.append(rocm_toolkit_path + "/llvm/lib/clang/14.0.0/include") [all …]
|
| /external/bazelbuild-rules_cc/cc/private/toolchain/ |
| D | windows_cc_configure.bzl | 39 value = value.replace("/", "\\") 63 bazel_sh = bazel_sh.replace("\\", "/").lower() 304 print_envvars = ",".join(["{k}=%{k}%".format(k = k) for k in envvars]) 316 env_map[key] = escape_string(value.replace("\\", "\\\\")) if escape else value 378 return tool_path.replace("\\", "/") 453 return tool_path.replace("\\", "/") 462 for tool in ["clang-cl.exe", "lld-link.exe", "llvm-lib.exe"]: 471 auto_configure_fail("Failed to get clang version by running \"%s -v\"" % clang_cl) 473 # Stderr should look like "clang version X.X.X ..." 539 escaped_tmp_dir = escape_string(_get_temp_env(repository_ctx).replace("\\", "\\\\")) [all …]
|
| /external/AFLplusplus/docs/ |
| D | INSTALL.md | 23 NOTE: depending on your Debian/Ubuntu/Kali/... release, replace `-14` with 30 … apt-get install -y lld-14 llvm-14 llvm-14-dev clang-14 || sudo apt-get install -y lld llvm llvm-d… 39 It is recommended to install the newest available gcc, clang and llvm-dev 64 * code-format: format the code, do this before you commit and send a PR please! 110 Be sure to setup `PATH` to point to the correct clang binaries and use the 111 freshly installed clang, clang++, llvm-config, gmake and coreutils, e.g.: 121 export CC=clang 122 export CXX=clang++ 131 instrumentation anyway. `afl-clang` might fail too depending on your PATH setup. 132 But you don't want neither, you want `afl-clang-fast` anyway :) Note that [all …]
|
| /external/sandboxed-api/sandboxed_api/tools/generator2/ |
| D | code.py | 26 from clang import cindex 72 raise ValueError('Cannot prepare header guard from path: {}'.format(path)) 77 path = path.upper().replace('.', '_').replace('-', '_').replace('/', '_') 429 self.name = name or 'a{}'.format(pos) 433 self.call_argument = template.format(self.name) 439 return '::sapi::v::Ptr* {}'.format(self.name) 441 return '{} {}'.format(self._clang_type.spelling, self.name) 446 return '{} {name}_(({name}))'.format(self.mapped_type, name=self.name) 454 spelling = self._clang_type.spelling.replace('const', '') 455 return '::sapi::v::Reg<{}>'.format(spelling) [all …]
|
| /external/google-fruit/ |
| D | CONTRIBUTING.md | 58 export OS=linux; export COMPILER='clang-3.9'; export STL='libstdc++'; export UBUNTU='16.04'; extras… 81 export NJOBS=16; export OS=linux; export COMPILER='clang-3.9'; export STL='libstdc++'; export UBUNT… 116 The `/Z7` flag instructs Visual Studio to use the C7 format for debugging information, which allows… 118 If you don't want to use Boost, you can replace the `-DBoost_INCLUDE_DIR=...` flags above with `-DF… 216 C++ code in Fruit should be indented using clang-format (a `.clang-format` file is provided in the … 220 $ clang-format -i $(git ls-files | egrep '\.cpp|\.h' )
|
| /external/pigweed/third_party/fuchsia/ |
| D | copy.bara.sky | 16 ".clang-format", 73 core.replace("#include <zxtest/zxtest.h>", "#include \"gtest/gtest.h\""),
|
| /external/llvm/docs/HistoricalNotes/ |
| D | 2007-OriginalClangReadme.txt | 8 clang: noun 70 clang - An example driver, client of the libraries at various levels. 74 easy to reuse individual parts or replace pieces if desired. For example, to 92 II. Usage of clang driver: 95 - Help: clang --help 127 For more information on getting Graphviz to work with clang/LLVM, 136 * Full diagnostic customization by client (can format diagnostics however they
|
| /external/lmfit/ |
| D | CHANGELOG | 28 - uniform code layout, starting from clang-format 79 - ensure strict C90 compliance: no C++ comments; replace non-standard 128 - replace BUG by LMFIT_DEBUG_MESSAGES and .._MATRIX to allow control by -D 139 - replace curve-fitting demo
|