Home
last modified time | relevance | path

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

12345678910>>...43

/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-15.
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-14 in debian), either add it to PATH variable or add
[all …]
/third_party/protobuf/objectivec/Tests/
DGPBMessageTests+Merge.m1 // Protocol Buffers - Google's data interchange format
3 // https://developers.google.com/protocol-buffers/
50 - (void)testProto3MergingAndZeroValues {
193 - (void)testProto3MergingEnums {
251 - (void)testProto2MergeOneof {
261 //%PDDM-DEFINE MERGE2_TEST(SET_NAME, SET_VALUE, CLEARED_NAME, CLEARED_DEFAULT)
268 //%PDDM-EXPAND MERGE2_TEST(Int32, 10, Enum, Message2_Enum_Baz)
270 // clang-format off
278 // clang-format on
279 //%PDDM-EXPAND MERGE2_TEST(Int64, 11, Int32, 100)
[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/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/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/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/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/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/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/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/protobuf/objectivec/
DGPBUtilities_PackagePrivate.h1 // Protocol Buffers - Google's data interchange format
3 // https://developers.google.com/protocol-buffers/
118 // Decode a ZigZag-encoded 32-bit value. ZigZag encodes signed integers
120 // negative values must be sign-extended to 64 bits to be varint encoded,
123 return (int32_t)(GPBLogicalRightShift32((int32_t)n, 1) ^ -((int32_t)(n) & 1)); in GPBDecodeZigZag32()
126 // Decode a ZigZag-encoded 64-bit value. ZigZag encodes signed integers
128 // negative values must be sign-extended to 64 bits to be varint encoded,
131 return (int64_t)(GPBLogicalRightShift64((int64_t)n, 1) ^ -((int64_t)(n) & 1)); in GPBDecodeZigZag64()
134 // Encode a ZigZag-encoded 32-bit value. ZigZag encodes signed integers
136 // negative values must be sign-extended to 64 bits to be varint encoded,
[all …]
DGPBCodedOutputStream.m1 // Protocol Buffers - Google's data interchange format
3 // https://developers.google.com/protocol-buffers/
65 if (state->output == nil) {
67 [NSException raise:GPBCodedOutputStreamException_OutOfSpace format:@""];
69 if (state->position != 0) {
71 [state->output write:state->bytes maxLength:state->position];
72 if (written != (NSInteger)state->position) {
73 [NSException raise:GPBCodedOutputStreamException_WriteFailed format:@""];
75 state->position = 0;
80 if (state->position == state->size) {
[all …]
/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/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/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 …]
/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/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 …]

12345678910>>...43