Home
last modified time | relevance | path

Searched +full:clang +full:- +full:format +full:- +full:version (Results 1 – 25 of 1020) sorted by relevance

12345678910>>...41

/third_party/mindspore/mindspore-src/source/scripts/pre_commit/
Dinstall_system_specific_tools.sh4 # Licensed under the Apache License, Version 2.0 (the "License");
8 # http://www.apache.org/licenses/LICENSE-2.0
17 uname_s=$(uname -s)
24 if [ $? -eq "1" ]; then
27 gem sources --add https://gems.ruby-china.com/
28 gem install chef-utils -v 16.6.14 && gem install mdl
32 name_release=$(cat </etc/os-release | awk -F'=' '/^NAME/{print $2}')
34 # clang-format
35 echo "[INFO] prepare to install clang-format"
36 sudo apt-get install clang-format-9
[all …]
DREADME.md1 # pre-push Quick Guide
3 <!-- TOC -->
5 - [Pre-push Quick Guide](#pre-push-quick-guide)
6 - [Procedure for Using pre-push Locally](#procedure-for-using-pre-push-locally)
7 - [Appendix: FAQs](#appendix-faqs)
8- [Appendix: Manually Installing Code Check Tools](#appendix-manually-installing-code-check-tools)
9 - [Windows Environment](#windows-environment)
10 - [Linux Environment](#linux-environment)
11 - [macOS Environment](#macos-environment)
12 - [Appendix: Suggestions on Tool Versions](#appendix-suggestions-on-tool-versions)
[all …]
DREADME_CN.md1 # pre-push快速指引
3 <!-- TOC -->
5 - [pre-push快速指引](#pre-push快速指引)
6 - [本地使用pre-push步骤](#本地使用pre-push步骤)
7 - [附:常见问题QA](#附常见问题qa)
8 - [附:手动安装代码检查工具](#附手动安装代码检查工具)
9 - [Windows环境](#windows环境)
10 - [Linux环境](#linux环境)
11 - [Mac环境](#mac环境)
12 - [附:工具版本建议](#附工具版本建议)
[all …]
/third_party/rust/rust/src/doc/rustc/src/
Dlinker-plugin-lto.md1 # Linker-plugin-based LTO
3 The `-C linker-plugin-lto` flag allows for deferring the LTO optimization
8 Clang-compiled C/C++ code.
14 - compiling a Rust `staticlib` that is used as a C ABI dependency
15 - compiling a Rust binary where `rustc` invokes the linker
17 In both cases the Rust code has to be compiled with `-C linker-plugin-lto` and
18 the C/C++ code with `-flto` or `-flto=thin` so that object files are emitted
24 the `staticlib` are in the right format. For linking, a linker with the
31 rustc --crate-type=staticlib -Clinker-plugin-lto -Copt-level=2 ./lib.rs
32 # Compile the C code with `-flto=thin`
[all …]
/third_party/skia/third_party/externals/dawn/
DDEPS13 'dawn_cmake_version': 'version:3.13.5',
15 'dawn_go_version': 'version:1.16',
19 # Dependencies required to use GN/Clang in standalone
29 …'url': '{chromium_git}/external/github.com/llvm/llvm-project/clang/tools/clang-format.git@99803d74…
35 'package': 'gn/gn/linux-amd64',
36 'version': 'git_revision:dfcbc6fed0a8352696f92d67ccad54048ad182b3',
43 'package': 'gn/gn/mac-${{arch}}',
44 'version': 'git_revision:dfcbc6fed0a8352696f92d67ccad54048ad182b3',
51 'package': 'gn/gn/windows-amd64',
52 'version': 'git_revision:dfcbc6fed0a8352696f92d67ccad54048ad182b3',
[all …]
/third_party/spirv-tools/test/link/
Dbinary_version_test.cpp3 // Licensed under the Apache License, Version 2.0 (the "License");
7 // http://www.apache.org/licenses/LICENSE-2.0
26 spvtest::Binary CreateBinary(uint32_t version) { in CreateBinary() argument
28 // clang-format off in CreateBinary()
31 version, in CreateBinary()
44 // clang-format on in CreateBinary()
49 // clang-format off in TEST_F()
54 // clang-format on in TEST_F()
62 // clang-format off in TEST_F()
67 // clang-format on in TEST_F()
[all …]
/third_party/vulkan-loader/.github/workflows/
Dformat.yml4 # Licensed under the Apache License, Version 2.0 (the "License");
8 # http://www.apache.org/licenses/LICENSE-2.0
16 name: format
22 - main
28 clang-format:
29 name: clang-format
30 runs-on: ubuntu-latest
32 fail-fast: false
35 - 'loader'
36 - 'tests'
[all …]
/third_party/mindspore/mindspore-src/source/scripts/
Dformat_source_code.sh4 # Licensed under the Apache License, Version 2.0 (the "License");
8 # http://www.apache.org/licenses/LICENSE-2.0
17 set -e
19 CLANG_FORMAT=$(which clang-format) || (echo "Please install 'clang-format' tool first"; exit 1)
21 version=$("${CLANG_FORMAT}" --version | sed -n "s/.*\ \([0-9]*\)\.[0-9]*\.[0-9]*.*/\1/p")
22 if [[ "${version}" -lt "8" ]]; then
23 echo "clang-format's version must be at least 8.0.0"
36 echo "Format the specified source files to conform the code style."
38 echo "bash $0 [-a] [-c] [-l] [-h]"
39 echo "e.g. $0 -c"
[all …]
Dcheck_clang_format.sh4 # Licensed under the Apache License, Version 2.0 (the "License");
8 # http://www.apache.org/licenses/LICENSE-2.0
17 set -e
19 CLANG_FORMAT=$(which clang-format) || (echo "Please install 'clang-format' tool first"; exit 1)
21 version=$("${CLANG_FORMAT}" --version | sed -n "s/.*\ \([0-9]*\)\.[0-9]*\.[0-9]*.*/\1/p")
22 if [[ "${version}" -lt "8" ]]; then
23 echo "clang-format's version must be at least 8.0.0"
38 echo "bash $0 [-a] [-c] [-l] [-h]"
39 echo "e.g. $0 -a"
42 echo " -a Check code format of all files, default case"
[all …]
/third_party/rust/crates/clang-sys/src/
Dsupport.rs1 // SPDX-License-Identifier: Apache-2.0
19 /// A `clang` executable.
21 pub struct Clang { struct
22 /// The path to this `clang` executable.
24 /// The version of this `clang` executable if it could be parsed.
25 pub version: Option<CXVersion>, field
26 /// The directories searched by this `clang` executable for C headers if
29 /// The directories searched by this `clang` executable for C++ headers if
34 impl Clang { impl
35 fn new(path: impl AsRef<Path>, args: &[String]) -> Self { in new()
[all …]
/third_party/vixl/tools/
Dclang_format.py44 DEFAULT_CLANG_FORMAT = 'clang-format'
46 CLANG_TOOL_VERSION_MATCH = r"(clang-format|LLVM) version ([\d]+)\.[\d]+\.[\d]+.*$"
52 description = '''This tool runs `clang-format` on C++ files.
53 If no files are provided on the command-line, all C++ source files are
59 parser.add_argument('--clang-format', default=DEFAULT_CLANG_FORMAT,
60 help='Path to clang-format.')
61 parser.add_argument('--in-place', '-i',
64 parser.add_argument('--jobs', '-j', metavar = 'N', type = int, nargs = '?',
76 cmd = '%s -version' % tool
79 rc, version = util.getstatusoutput(cmd)
[all …]
/third_party/vk-gl-cts/external/amber/src/kokoro/check-format/
Dbuild.sh4 # Licensed under the Apache License, Version 2.0 (the "License");
8 # http://www.apache.org/licenses/LICENSE-2.0
16 set -e # fail on error
17 set -x # display commands
23 ./tools/git-sync-deps
26 ./tools/copyright.py --check;
30 ./tools/run-lint.sh;
33 # Check format adds a bunch of stuff to the repo so do that check last.
35 # Get clang-format-5.0.0.
36 # Once kokoro upgrades the Ubuntu VMs, we can use 'apt-get install clang-format'
[all …]
/third_party/skia/third_party/externals/spirv-tools/kokoro/check-format/
Dbuild.sh4 # Licensed under the Apache License, Version 2.0 (the "License");
8 # http://www.apache.org/licenses/LICENSE-2.0
19 set -e
21 set -x
24 SRC=$PWD/github/SPIRV-Tools
26 # Get clang-format-5.0.0.
27 # Once kokoro upgrades the Ubuntu VMs, we can use 'apt-get install clang-format'
28 curl -L http://releases.llvm.org/5.0.0/clang+llvm-5.0.0-linux-x86_64-ubuntu14.04.tar.xz -o clang-ll…
29 tar xf clang-llvm.tar.xz
30 export PATH=$PWD/clang+llvm-5.0.0-linux-x86_64-ubuntu14.04/bin:$PATH
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/kokoro/check-format/
Dbuild.sh4 # Licensed under the Apache License, Version 2.0 (the "License");
8 # http://www.apache.org/licenses/LICENSE-2.0
19 set -e
21 set -x
24 SRC=$PWD/github/SPIRV-Tools
26 # Get clang-format-5.0.0.
27 # Once kokoro upgrades the Ubuntu VMs, we can use 'apt-get install clang-format'
28 curl -L http://releases.llvm.org/5.0.0/clang+llvm-5.0.0-linux-x86_64-ubuntu14.04.tar.xz -o clang-ll…
29 tar xf clang-llvm.tar.xz
30 export PATH=$PWD/clang+llvm-5.0.0-linux-x86_64-ubuntu14.04/bin:$PATH
[all …]
/third_party/vk-gl-cts/external/amber/src/tools/
Dformat5 # Licensed under the Apache License, Version 2.0 (the "License");
9 # https://www.apache.org/licenses/LICENSE-2.0
17 find src -name "*.h" -exec clang-format -i {} \;
18 find src -name "*.cc" -exec clang-format -i {} \;
19 find samples -name "*.h" -exec clang-format -i {} \;
20 find samples -name "*.cc" -exec clang-format -i {} \;
21 find include -name "*.h" -exec clang-format -i {} \;
/third_party/mesa3d/docs/
Dcodingstyle.rst7 (.editorconfig) and/or Emacs (.dir-locals.el) file. Alternatively the
9 try following the format of existing, neighboring code.
11 ``clang-format``
12 ----------------
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``.
21 Since mass-reformatting commits can be an annoying extra jump to go
25 git config blame.ignoreRevsFile .git-blame-ignore-revs
[all …]
/third_party/vulkan-loader/
DCONTRIBUTING.md8 * [KhronosGroup/Vulkan-Loader](https://github.com/KhronosGroup/Vulkan-Loader)
14 * Examine the [issues list](https://github.com/KhronosGroup/Vulkan-Loader/issues)
40 [forking the repository](https://help.github.com/articles/fork-a-repo/),
42 [submitting a pull request](https://help.github.com/articles/using-pull-requests/).
44 [guidelines](#coding-conventions-and-formatting) enumerated below.
62 The clang-format tool will handle this. See below.
64 Again, the clang-format tool will handle this.
72 * Run **clang-format** on your changes to maintain consistent formatting
73 * There are `.clang-format` files present in the repository to define
74 clang-format settings which are found and used automatically by clang-format.
[all …]
/third_party/spirv-tools/kokoro/check-format/
Dbuild.sh4 # Licensed under the Apache License, Version 2.0 (the "License");
8 # http://www.apache.org/licenses/LICENSE-2.0
19 set -e
21 set -x
24 SRC=$PWD/github/SPIRV-Tools
29 git config --global --add safe.directory $SRC
31 # Get clang-format-5.0.0.
32 # Once kokoro upgrades the Ubuntu VMs, we can use 'apt-get install clang-format'
33 curl -L http://releases.llvm.org/5.0.0/clang+llvm-5.0.0-linux-x86_64-ubuntu14.04.tar.xz -o clang-ll…
34 tar xf clang-llvm.tar.xz
[all …]
/third_party/skia/third_party/externals/spirv-tools/test/opt/
Dstrip_debug_info_test.cpp3 // Licensed under the Apache License, Version 2.0 (the "License");
7 // http://www.apache.org/licenses/LICENSE-2.0
28 // clang-format off in TEST_F()
56 // clang-format on in TEST_F()
70 "OpSourceExtension \"save-the-world-extension\"", in TEST_F()
83 // clang-format off in TEST_F()
96 // clang-format on in TEST_F()
99 // clang-format off in TEST_F()
110 // clang-format on in TEST_F()
120 // clang-format off in TEST_F()
[all …]
/third_party/spirv-tools/test/opt/
Dstrip_debug_info_test.cpp3 // Licensed under the Apache License, Version 2.0 (the "License");
7 // http://www.apache.org/licenses/LICENSE-2.0
28 // clang-format off in TEST_F()
56 // clang-format on in TEST_F()
70 "OpSourceExtension \"save-the-world-extension\"", in TEST_F()
83 // clang-format off in TEST_F()
96 // clang-format on in TEST_F()
99 // clang-format off in TEST_F()
110 // clang-format on in TEST_F()
120 // clang-format off in TEST_F()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/
Dstrip_debug_info_test.cpp3 // Licensed under the Apache License, Version 2.0 (the "License");
7 // http://www.apache.org/licenses/LICENSE-2.0
28 // clang-format off in TEST_F()
56 // clang-format on in TEST_F()
70 "OpSourceExtension \"save-the-world-extension\"", in TEST_F()
83 // clang-format off in TEST_F()
96 // clang-format on in TEST_F()
99 // clang-format off in TEST_F()
110 // clang-format on in TEST_F()
120 // clang-format off in TEST_F()
[all …]
/third_party/skia/m133/
D.clang-format1 ---
3 # change. Make sure to install git-clang-format [1] by adding it to your
7 # $ git clang-format
8 # You can optionally use the "--" file filter to restrict formatting to certain
13 # Some clients are running on older versions of clang-format, so please limit
14 # flag choices to options supported by clang-format version 10 and below.
15 # - XcodeClangFormat: clang-format 10
16 # - bin/clang-format: clang-format 11
17 # - brew: clang-format 14
19 …//source.chromium.org/chromium/chromium/src/+/HEAD:third_party/clang-format/script/git-clang-format
[all …]
/third_party/skia/third_party/externals/spirv-tools/test/opt/loop_optimizations/
Dunroll_assumptions.cpp3 // Licensed under the Apache License, Version 2.0 (the "License");
7 // http://www.apache.org/licenses/LICENSE-2.0
44 for (Function& f : *context()->module()) { in Process()
49 LoopDescriptor& loop_descriptor = *context()->GetLoopDescriptor(&f); in Process()
65 #version 410 core
74 // clang-format off in TEST_F()
126 // clang-format on in TEST_F()
130 Module* module = context->module(); in TEST_F()
145 #version 410 core
156 // clang-format off in TEST_F()
[all …]
/third_party/spirv-tools/test/opt/loop_optimizations/
Dunroll_assumptions.cpp3 // Licensed under the Apache License, Version 2.0 (the "License");
7 // http://www.apache.org/licenses/LICENSE-2.0
43 for (Function& f : *context()->module()) { in Process()
48 LoopDescriptor& loop_descriptor = *context()->GetLoopDescriptor(&f); in Process()
64 #version 410 core
73 // clang-format off in TEST_F()
125 // clang-format on in TEST_F()
129 Module* module = context->module(); in TEST_F()
144 #version 410 core
155 // clang-format off in TEST_F()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/loop_optimizations/
Dunroll_assumptions.cpp3 // Licensed under the Apache License, Version 2.0 (the "License");
7 // http://www.apache.org/licenses/LICENSE-2.0
44 for (Function& f : *context()->module()) { in Process()
49 LoopDescriptor& loop_descriptor = *context()->GetLoopDescriptor(&f); in Process()
65 #version 410 core
74 // clang-format off in TEST_F()
126 // clang-format on in TEST_F()
130 Module* module = context->module(); in TEST_F()
145 #version 410 core
156 // clang-format off in TEST_F()
[all …]

12345678910>>...41