Home
last modified time | relevance | path

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

12345678910>>...42

/third_party/mesa3d/
D.git-blame-ignore-revs3 # git config blame.ignoreRevsFile .git-blame-ignore-revs
5 # Per git-blame(1):
7 # per line, in git-blame. Whitespace and comments beginning with # are
13 # git log -1 --pretty=format:'%n# %s%n%H%n' >> .git-blame-ignore-revs $COMMIT
15 # pvr: Fix clang-format error.
18 # panfrost: Fix up some formatting for clang-format
21 # asahi: clang-format the world again
24 # perfetto: Add a .clang-format for the directory.
27 # panfrost/winsys: Clang-format
30 # panfrost: Re-run clang-format
[all …]
/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/nghttp2/doc/sources/
Dcontribute.rst24 ------------
26 We use clang-format to format source code consistently. The
27 clang-format configuration file .clang-format is located at the root
28 directory. Since clang-format produces slightly different results
29 between versions, we currently use clang-format-18.
32 pre-commit hook to check coding style of the changes you introduced.
33 The pre-commit file is located at the root directory. Copy it under
34 .git/hooks and make sure that it is executable. The pre-commit script
35 uses clang-format-diff.py to detect any style errors. If it is not in
37 clang-format-diff-18 in debian), either add it to PATH variable or add
[all …]
/third_party/mindspore/mindspore-src/source/scripts/pre_commit/
Dinstall_system_specific_tools.sh8 # 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
39 gem -v || (sudo apt-get install -y rubygems)
[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 …]
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 …]
/third_party/skia/third_party/externals/spirv-tools/test/opt/
Dstrip_debug_info_test.cpp7 // 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()
133 // clang-format on in TEST_F()
[all …]
Dstrength_reduction_test.cpp7 // http://www.apache.org/licenses/LICENSE-2.0
39 // clang-format off in TEST_F()
55 // clang-format on in TEST_F()
81 ; CHECK-DAG: [[five:%[a-zA-Z_\d]+]] = OpConstant %uint 5 in TEST_F()
83 ; We have RE2 regular expressions, so \w matches [_a-zA-Z0-9]. in TEST_F()
84 ; This shows the preferred pattern for matching SPIR-V identifiers. in TEST_F()
87 ; CHECK-DAG: [[four:%\w+]] = OpConstant %uint 4 in TEST_F()
94 ; CHECK-NEXT: OpShiftLeftLogical %uint [[five]] [[four]] in TEST_F()
96 ; CHECK-NOT: OpIMul in TEST_F()
109 // clang-format off in TEST_F()
[all …]
/third_party/spirv-tools/test/opt/
Dstrip_debug_info_test.cpp7 // 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()
133 // clang-format on in TEST_F()
[all …]
Dstrength_reduction_test.cpp7 // http://www.apache.org/licenses/LICENSE-2.0
34 // clang-format off in TEST_F()
50 // clang-format on in TEST_F()
76 ; CHECK-DAG: [[five:%[a-zA-Z_\d]+]] = OpConstant %uint 5 in TEST_F()
78 ; We have RE2 regular expressions, so \w matches [_a-zA-Z0-9]. in TEST_F()
79 ; This shows the preferred pattern for matching SPIR-V identifiers. in TEST_F()
82 ; CHECK-DAG: [[four:%\w+]] = OpConstant %uint 4 in TEST_F()
89 ; CHECK-NEXT: OpShiftLeftLogical %uint [[five]] [[four]] in TEST_F()
91 ; CHECK-NOT: OpIMul in TEST_F()
104 // clang-format off in TEST_F()
[all …]
Dremove_dontinline_test.cpp7 // http://www.apache.org/licenses/LICENSE-2.0
28 // clang-format off in TEST_F()
40 // clang-format on in TEST_F()
48 // clang-format off in TEST_F()
59 // clang-format on in TEST_F()
69 // clang-format off in TEST_F()
80 // clang-format on in TEST_F()
90 // clang-format off in TEST_F()
120 // clang-format on in TEST_F()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/
Dstrip_debug_info_test.cpp7 // 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()
133 // clang-format on in TEST_F()
[all …]
Dstrength_reduction_test.cpp7 // http://www.apache.org/licenses/LICENSE-2.0
39 // clang-format off in TEST_F()
55 // clang-format on in TEST_F()
81 ; CHECK-DAG: [[five:%[a-zA-Z_\d]+]] = OpConstant %uint 5 in TEST_F()
83 ; We have RE2 regular expressions, so \w matches [_a-zA-Z0-9]. in TEST_F()
84 ; This shows the preferred pattern for matching SPIR-V identifiers. in TEST_F()
87 ; CHECK-DAG: [[four:%\w+]] = OpConstant %uint 4 in TEST_F()
94 ; CHECK-NEXT: OpShiftLeftLogical %uint [[five]] [[four]] in TEST_F()
96 ; CHECK-NOT: OpIMul in TEST_F()
109 // clang-format off in TEST_F()
[all …]
/third_party/vk-gl-cts/external/amber/src/kokoro/check-format/
Dbuild.sh8 # 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'
37 curl -L http://releases.llvm.org/5.0.0/clang+llvm-5.0.0-linux-x86_64-ubuntu14.04.tar.xz -o clang-ll…
[all …]
/third_party/skia/third_party/externals/tint/
DDEPS22 'third_party/gpuweb-cts': Var('chromium_git') + Var('github') +
25 'third_party/spirv-headers': Var('chromium_git') + Var('github') +
26 '/KhronosGroup/SPIRV-Headers.git@' + Var('spirv_headers_revision'),
28 'third_party/spirv-tools': Var('chromium_git') + Var('github') +
29 '/KhronosGroup//SPIRV-Tools.git@' + Var('spirv_tools_revision'),
34 # Dependencies required to use GN/Clang in standalone
41 'tools/clang': Var('chromium_git') + '/chromium/src/tools/clang@' +
56 # Pull clang-format binaries using checked-in hashes.
62 '--no_resume',
63 '--platform=win32',
[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/kokoro/check-format/
Dbuild.sh8 # 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
33 git clone --depth=1 https://github.com/KhronosGroup/SPIRV-Headers external/spirv-headers
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/kokoro/check-format/
Dbuild.sh8 # 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
33 git clone --depth=1 https://github.com/KhronosGroup/SPIRV-Headers external/spirv-headers
[all …]
/third_party/skia/third_party/externals/angle2/src/tests/egl_tests/
DEGLIOSurfaceClientBufferTest.cpp3 // Use of this source code is governed by a BSD-style license that can be
81 ScopedIOSurfaceRef CreateIOSurface(int32_t format, const std::vector<IOSurfacePlaneInfo> &planes) in CreateIOSurface() argument
89 AddIntegerValue(dict, kIOSurfacePixelFormat, format); in CreateIOSurface()
125 int32_t format, in CreateSinglePlaneIOSurface() argument
129 return CreateIOSurface(format, planes); in CreateSinglePlaneIOSurface()
166 mConfig = getEGLWindow()->getConfig(); in testSetUp()
167 mDisplay = getEGLWindow()->getDisplay(); in testSetUp()
178 // clang-format off in createIOSurfacePbuffer()
190 // clang-format on in createIOSurfacePbuffer()
357 ASSERT_NE(-1, location); in doSampleTestWithTexture()
[all …]
/third_party/spirv-tools/kokoro/check-format/
Dbuild.sh8 # 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
35 export PATH=$PWD/clang+llvm-5.0.0-linux-x86_64-ubuntu14.04/bin:$PATH
[all …]
/third_party/spirv-tools/test/link/
Dbinary_version_test.cpp7 // http://www.apache.org/licenses/LICENSE-2.0
28 // clang-format off 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()
72 HasSubstr("Conflicting SPIR-V versions: 1.3 (input modules 1 " in TEST_F()
77 // clang-format off in TEST_F()
82 // clang-format on in TEST_F()
/third_party/skia/buildtools/clang_format/
DREADME.txt1 This folder contains clang-format scripts. The binaries will be automatically
8 python ~/depot_tools/upload_to_google_storage.py -b chromium-clang-format <FILENAME>
10 On Linux and Mac, check that clang-format has its +x bit set before you run this
16 python ~/depot_tools/download_from_google_storage.py -b chromium-clang-format -s <FILENAME>.sha1
19 python ~/depot_tools/third_party/gsutil/gsutil ls gs://chromium-clang-format/
25 username should be the one that is on the ACL for the "chromium-clang-format"
/third_party/nghttp2/
Dgit-clang-format3 #===- git-clang-format - ClangFormat Git Integration ---------*- python -*--===#
10 #===------------------------------------------------------------------------===#
13 clang-format git integration
16 This file provides a clang-format integration for git. Put it somewhere in your
17 path and ensure that it is executable. Then, "git clang-format" will invoke
18 clang-format on the changes in current files or a specific commit.
21 git clang-format -h
35 usage = 'git clang-format [OPTIONS] [<commit>] [--] [<file>...]'
38 Run clang-format on all lines that differ between the working directory
42 The following git-config settings set the default of the corresponding option:
[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/
DDEPS19 # 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',
43 'package': 'gn/gn/mac-${{arch}}',
51 'package': 'gn/gn/windows-amd64',
59 …'url': '{chromium_git}/external/github.com/llvm/llvm-project/libcxx.git@8fa87946779682841e21e2da97…
64 …'url': '{chromium_git}/external/github.com/llvm/llvm-project/libcxxabi.git@f4328ad7c0d8242d36cb5be…
68 'tools/clang': {
69 'url': '{chromium_git}/chromium/src/tools/clang@03ff857f12277f511e0a30aca44b80e8aaebafd7',
72 'tools/clang/dsymutil': {
[all …]

12345678910>>...42