Home
last modified time | relevance | path

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

12345678910>>...12

/external/clang/docs/
DClangFormat.rst13 :program:`clang-format` is located in `clang/tools/clang-format` and can be used
14 to format C/C++/Obj-C code.
16 .. code-block:: console
18 $ clang-format -help
19 OVERVIEW: A tool to format C/C++/Java/JavaScript/Objective-C/Protobuf code.
23 If <file>s are given, it reformats the files. If -i is specified
24 together with <file>s, the files are edited in-place. Otherwise, the
27 USAGE: clang-format [options] [<file> ...]
31 Clang-format options:
33 -assume-filename=<string> - When reading from stdin, clang-format assumes this
[all …]
/external/bcc/scripts/
Dgit-clang-format3 #===- git-clang-format - ClangFormat Git Integration ---------*- python -*--===#
7 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
9 #===------------------------------------------------------------------------===#
12 clang-format git integration
15 This file provides a clang-format integration for git. Put it somewhere in your
16 path and ensure that it is executable. Then, "git clang-format" will invoke
17 clang-format on the changes in current files or a specific commit.
20 git clang-format -h
35 usage = 'git clang-format [OPTIONS] [<commit>] [<commit>] [--] [<file>...]'
38 If zero or one commits are given, run clang-format on all lines that differ
[all …]
/external/clang/tools/clang-format/
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>] [<commit>] [--] [<file>...]'
38 If zero or one commits are given, run clang-format on all lines that differ
42 If two commits are given (requires --diff), run clang-format on all lines in the
[all …]
Dclang-format-diff.py3 #===- clang-format-diff.py - ClangFormat Diff Reformatter ----*- python -*--===#
10 #===------------------------------------------------------------------------===#
13 ClangFormat Diff Reformatter
16 This script reads input from a unified diff and reformats all the changed
20 git diff -U0 HEAD^ | clang-format-diff.py -p1 -i
21 svn diff --diff-cmd=diff -x-U0 | clang-format-diff.py -i
36 'Reformat changed lines in diff. Without -i '
37 'option just output the diff that would be '
39 parser.add_argument('-i', action='store_true', default=False,
40 help='apply edits to files instead of displaying a diff')
[all …]
DCMakeLists.txt3 add_clang_tool(clang-format
14 target_link_libraries(clang-format
22 install(PROGRAMS clang-format-bbedit.applescript
23 DESTINATION share/clang
24 COMPONENT clang-format)
25 install(PROGRAMS clang-format-diff.py
26 DESTINATION share/clang
27 COMPONENT clang-format)
28 install(PROGRAMS clang-format-sublime.py
29 DESTINATION share/clang
[all …]
/external/cronet/third_party/cpu_features/src/.github/workflows/
Dclang_format.yml1 name: clang-format Check
7 clang-format:
8 runs-on: ubuntu-latest
10 - uses: actions/checkout@v2
11 - name: Fetch origin/main
13 - name: List of changed file(s)
14 run: git diff --name-only FETCH_HEAD
16 - name: Build clang-format docker
17 run: cd .github/workflows && docker build --tag=linter .
18 - name: Check clang-format
[all …]
/external/cpu_features/.github/workflows/
Dclang_format.yml1 name: clang-format Check
7 clang-format:
8 runs-on: ubuntu-latest
10 - uses: actions/checkout@v4
11 - name: Fetch origin/main
13 - name: List of changed file(s)
14 run: git diff --name-only FETCH_HEAD
16 - name: Build clang-format docker
17 run: cd .github/workflows && docker build --tag=linter .
18 - name: Check clang-format
[all …]
/external/conscrypt/
D.travis.yml5 - BORINGSSL_HOME="$HOME/boringssl"
6 - CXXFLAGS="-std=c++11"
7 - GOOGLE_JAVA_FORMAT_VERSION=1.1
11 - $HOME/.gradle/caches/
12 - $HOME/.gradle/wrapper/dists/
19 - os: linux
23 - ANDROID_TOOLS_URL="https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip"
24 - ANDROID_HOME="$HOME/android-sdk-linux"
25 - JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
26 - JAVA11_HOME=/usr/lib/jvm/java-11-openjdk-amd64
[all …]
/external/expat/.github/workflows/
Dclang-format.yml8 # Copyright (c) 2021-2024 Sebastian Pipping <sebastian@pipping.org>
31 name: Enforce clang-format clean code
37 - cron: '0 2 * * 5' # Every Friday at 2am
45 name: Enforce clang-format clean code
46 runs-on: ubuntu-22.04
48 - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
50 - name: Install clang-format 18
51 run: |-
52 set -x
53 source /etc/os-release
[all …]
/external/deqp/external/openglcts/
DCONTRIBUTING.md8 ------------------------
9 - [Tips for developing new tests](#tips-for-developing-new-tests)
10 - [Test framework overview](#test-framework-overview)
11 - [Data Files](#data-files)
12 - [Adding tests to dEQP Framework](#adding-tests-to-deqp-framework)
13 - [Adding tests to GTF](#adding-tests-to-gtf)
14 - [Coding conventions](#coding-conventions)
15 - [Submitting changes](#submitting-changes)
18 ------------------------
30 1. `init()` - called when executor enters test node
[all …]
/external/deqp-deps/amber/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 …]
/external/jsoncpp/.travis_scripts/
Drun-clang-format.py2 """A wrapper script around clang-format, suitable for linting multiple files
4 This is an alternative API for the clang-format command line.
6 A diff output is produced and a sensible exit code is returned.
8 NOTE: pulled from https://github.com/Sarcasm/run-clang-format, which is
39 DIFF = 1 variable in ExitStatus
56 # by modifying it in-place,
80 fromfile='{}\t(original)'.format(file),
81 tofile='{}\t(reformatted)'.format(file),
105 raise UnexpectedError('{}: {}: {}'.format(file, e.__class__.__name__,
111 with io.open(file, 'r', encoding='utf-8') as f:
[all …]
/external/OpenCL-CTS/
Dcheck-format.sh3 # Arg used to specify non-'origin/main' comparison branch
4 ORIGIN_BRANCH=${1:-"origin/main"}
5 CLANG_BINARY=${2:-"`which clang-format-11`"}
7 # Run git-clang-format to check for violations
8 CLANG_FORMAT_OUTPUT=$(git-clang-format --diff $ORIGIN_BRANCH --extensions c,cpp,h,hpp --binary $CLA…
10 # Check for no-ops
11 grep '^no modified files to format$' <<<"$CLANG_FORMAT_OUTPUT" && exit 0
12 grep '^clang-format did not modify any files$' <<<"$CLANG_FORMAT_OUTPUT" && exit 0
14 # Dump formatting diff and signal failure
15 echo -e "\n==== FORMATTING VIOLATIONS DETECTED ====\n"
/external/vulkan-validation-layers/
D.travis.yml2 # https://travis-ci.org
12 - env: CHECK_COMMIT_FORMAT=ON
13 - env: VULKAN_BUILD_TARGET=GN
16 - os: linux
18 env: VULKAN_BUILD_TARGET=ANDROID ANDROID_TARGET=android-26 ANDROID_ABI=armeabi-v7a
19 # Android 64-bit build.
20 - os: linux
22 env: VULKAN_BUILD_TARGET=ANDROID ANDROID_TARGET=android-26 ANDROID_ABI=arm64-v8a
24 - os: linux
27 # Linux clang debug build.
[all …]
/external/deqp-deps/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 …]
/external/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
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 …]
/external/angle/third_party/spirv-tools/src/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 …]
/external/jazzer-api/
DBUILD.bazel36 "@platforms//os:macos": "@addlicense-darwin-universal//file:addlicense",
37 "@platforms//os:linux": "@addlicense-linux-amd64//file:addlicense",
50 diff_command = "diff -u",
58 diff_command = "diff -u",
66 name = "clang-format",
68 "@platforms//os:macos": "@clang-format-15-darwin-x64//file:clang-format",
69 "@platforms//os:linux": "@clang-format-15-linux-x64//file:clang-format",
/external/skia/infra/bots/task_drivers/codesize/
Dcodesize_test.go2 // Use of this source code is governed by a BSD-style license that can be
41 … = "2022/01/31/01/693abc06538769c662ca1871d347323b133a5d3c/Build-Debian10-Clang-x86_64-Release/dm…
42 …2/01/31/01/693abc06538769c662ca1871d347323b133a5d3c/Build-Debian10-Clang-x86_64-Release/dm.diff.tx…
43 …h = "2022/01/31/01/693abc06538769c662ca1871d347323b133a5d3c/Build-Debian10-Clang-x86_64-Release/dm…
45 …xpectedPerfFileGCSPath = "nano-json-v1/2022/01/31/01/693abc06538769c662ca1871d347323b133a5d3c/Buil…
51 "timestamp": "2022-01-31T01:02:03Z",
53 "swarming_server": "https://chromium-swarm.appspot.com",
55 "task_name": "CodeSize-dm-Debian10-Clang-x86_64-Release",
56 "compile_task_name": "Build-Debian10-Clang-x86_64-Release",
57 "compile_task_name_no_patch": "Build-Debian10-Clang-x86_64-Release-NoPatch",
[all …]
Dcodesize.go2 // Use of this source code is governed by a BSD-style license that can be
5 // This task driver takes a binary (e.g. "dm") built by a Build-* task (e.g.
6 // "Build-Debian10-Clang-x86_64-Release"), runs Bloaty against the binary, and uploads the resulting
9 // When running as a tryjob, this task driver performs a size diff of said binary built at the
10 // tryjob's changelist/patchset vs. built at tip-of-tree. The binary built at tip-of-tree is
11 // produced by a *-NoPatch task (e.g. "Build-Debian10-Clang-x86_64-Release-NoPatch"), whereas the
13 // without the "-NoPatch" suffix (e.g. "Build-Debian10-Clang-x86_64-Release"). The size diff is
15 …s://github.com/google/bloaty/blob/f01ea59bdda11708d74a3826c23d6e2db6c996f0/doc/using.md#size-diffs.
16 // The resulting diff is uploaded to the GCS bucket belonging to the https://codesize.skia.org
42 "go.skia.org/infra/perf/go/ingest/format"
[all …]
/external/webrtc/test/
Dmac_capturer.mm4 * Use of this source code is governed by a BSD-style license
25 - (void)capturer:(RTC_OBJC_TYPE(RTCVideoCapturer) *)capturer
30 _capturer->OnFrame(webrtc::VideoFrame::Builder()
46 for (AVCaptureDeviceFormat *format in formats) {
47 CMVideoDimensions dimension = CMVideoFormatDescriptionGetDimensions(format.formatDescription);
48 int diff =
49 std::abs((int64_t)width - dimension.width) + std::abs((int64_t)height - dimension.height);
50 if (diff < currentDiff) {
51 selectedFormat = format;
52 currentDiff = diff;
[all …]
/external/swiftshader/src/
Dclang-format-all.sh7 CLANG_FORMAT=${CLANG_FORMAT:-clang-format}
8 ${CLANG_FORMAT} --version
14 Usage: ./clang-format-all.sh [-ah]
15 Format files in the SwiftShader repository
16 -h, --help Display this message and exit
17 -a, --all Format all files (default is to format only files active in a git CL)
22 while [[ $# -gt 0 ]]
25 -a|--all)
29 -h|--help)
36 if [[ $all -eq 1 ]]
[all …]
/external/rust/crates/grpcio/.github/workflows/
Dci.yml7 - master
8 - v0.*
10 - cron: '0 22 * * *'
14 …# Some of the bindgen tests generate "deref-nullptr" warnings, see https://github.com/rust-lang/ru…
15 RUSTFLAGS: "--deny=warnings --allow deref-nullptr"
20 Linux-Format:
21 name: Linux-Format
22 runs-on: ubuntu-latest
24 - uses: actions/checkout@v2
25- run: which cargo && cargo version && clang --version && openssl version && which cmake && cmake
[all …]
/external/swiftshader/tests/
Dpresubmit.sh8 CLANG_FORMAT=${CLANG_FORMAT:-clang-format}
9 GOFMT=${GOFMT:-gofmt}
11 git config --global --add safe.directory '*'
13 if test -t 1; then
15 if test -n "$ncolors" && test $ncolors -ge 8; then
24 echo -n "Running check $name... "
32 if ! git diff --quiet HEAD; then
35 git --no-pager diff -p HEAD
46 # Grep flag '-L' print files that DO NOT match the copyright regex
48 …find ${SRC_DIR} -type f -name "*.${suffix}" | xargs grep -L "Copyright .* The SwiftShader Authors\…
[all …]
/external/openthread/script/
Dclang-format-check31 # clang-format does not return a non-zero exit code. This wrapper
32 # exits with a non-zero exit code if clang-format outputs any
36 set -euo pipefail
44 # from `man diff`:
49 …"$(dirname "$0")"/clang-format -style=file "${file}" | diff -u "${file}" - || die "${file} is not …
50 [ -z "$(tail -c1 "${file}")" ] || die "${file} misses EOF newline."

12345678910>>...12