Home
last modified time | relevance | path

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

12345678910>>...22

/aosp_15_r20/external/clang/docs/
H A 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 …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/bin/
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>|--staged] '
36 '[--] [<file>...]')
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/bin/
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>|--staged] '
36 '[--] [<file>...]')
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-stable/bin/
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>|--staged] '
36 '[--] [<file>...]')
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/bin/
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>|--staged] '
36 '[--] [<file>...]')
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/bin/
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>|--staged] '
36 '[--] [<file>...]')
[all …]
/aosp_15_r20/tools/repohooks/rh/
H A Dhooks.py7 # http://www.apache.org/licenses/LICENSE-2.0
30 # pylint: disable=wrong-import-position
48 def __init__(self, diff=()): argument
52 diff: The list of files that changed.
54 self.diff = diff
74 prev_arg = ret[-1]
75 ret = ret[0:-1]
80 prefix = arg[0:-len('${PREUPLOAD_FILES_PREFIXED}')]
129 return [x.file for x in self.diff if x.status != 'D']
143 """The root of the repo (sub-manifest) checkout."""
[all …]
/aosp_15_r20/external/bcc/scripts/
H A 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 …]
/aosp_15_r20/external/clang/tools/clang-format/
H A 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 …]
H A 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 …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/share/clang/
Dclang-format-diff.py3 # ===- clang-format-diff.py - ClangFormat Diff Reformatter ----*- python -*--===#
7 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
9 # ===------------------------------------------------------------------------===#
12 This script reads input from a unified diff and reformats all the changed
16 git diff -U0 --no-color --relative HEAD^ | {clang_format_diff} -p1 -i
17 svn diff --diff-cmd=diff -x-U0 | {clang_format_diff} -i
19 It should be noted that the filename contained in the diff is used unmodified
21 should be careful to ensure that the path in the diff is correct relative to the
40 description=__doc__.format(clang_format_diff="%(prog)s"),
44 "-i",
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-stable/share/clang/
Dclang-format-diff.py3 # ===- clang-format-diff.py - ClangFormat Diff Reformatter ----*- python -*--===#
7 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
9 # ===------------------------------------------------------------------------===#
12 This script reads input from a unified diff and reformats all the changed
16 git diff -U0 --no-color --relative HEAD^ | {clang_format_diff} -p1 -i
17 svn diff --diff-cmd=diff -x-U0 | {clang_format_diff} -i
19 It should be noted that the filename contained in the diff is used unmodified
21 should be careful to ensure that the path in the diff is correct relative to the
40 description=__doc__.format(clang_format_diff="%(prog)s"),
44 "-i",
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/share/clang/
Dclang-format-diff.py3 # ===- clang-format-diff.py - ClangFormat Diff Reformatter ----*- python -*--===#
7 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
9 # ===------------------------------------------------------------------------===#
12 This script reads input from a unified diff and reformats all the changed
16 git diff -U0 --no-color --relative HEAD^ | {clang_format_diff} -p1 -i
17 svn diff --diff-cmd=diff -x-U0 | {clang_format_diff} -i
19 It should be noted that the filename contained in the diff is used unmodified
21 should be careful to ensure that the path in the diff is correct relative to the
40 description=__doc__.format(clang_format_diff="%(prog)s"),
44 "-i",
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/share/clang/
Dclang-format-diff.py3 # ===- clang-format-diff.py - ClangFormat Diff Reformatter ----*- python -*--===#
7 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
9 # ===------------------------------------------------------------------------===#
12 This script reads input from a unified diff and reformats all the changed
16 git diff -U0 --no-color --relative HEAD^ | {clang_format_diff} -p1 -i
17 svn diff --diff-cmd=diff -x-U0 | {clang_format_diff} -i
19 It should be noted that the filename contained in the diff is used unmodified
21 should be careful to ensure that the path in the diff is correct relative to the
40 description=__doc__.format(clang_format_diff="%(prog)s"),
44 "-i",
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/share/clang/
Dclang-format-diff.py3 # ===- clang-format-diff.py - ClangFormat Diff Reformatter ----*- python -*--===#
7 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
9 # ===------------------------------------------------------------------------===#
12 This script reads input from a unified diff and reformats all the changed
16 git diff -U0 --no-color --relative HEAD^ | {clang_format_diff} -p1 -i
17 svn diff --diff-cmd=diff -x-U0 | {clang_format_diff} -i
19 It should be noted that the filename contained in the diff is used unmodified
21 should be careful to ensure that the path in the diff is correct relative to the
40 description=__doc__.format(clang_format_diff="%(prog)s"),
44 "-i",
[all …]
/aosp_15_r20/packages/modules/Bluetooth/floss/build/
Dllvm-rename.sh3 # Rename all llvm binaries using update-alternatives
10 update-alternatives \
11--install /usr/bin/llvm-config llvm-config /usr/bin/llvm-config-${version} ${priority} \
12 --slave /usr/bin/llvm-ar llvm-ar /usr/bin/llvm-ar-${version} \
13 --slave /usr/bin/llvm-as llvm-as /usr/bin/llvm-as-${version} \
14 --slave /usr/bin/llvm-bcanalyzer llvm-bcanalyzer /usr/bin/llvm-bcanalyzer-${version} \
15 --slave /usr/bin/llvm-cov llvm-cov /usr/bin/llvm-cov-${version} \
16 --slave /usr/bin/llvm-diff llvm-diff /usr/bin/llvm-diff-${version} \
17 --slave /usr/bin/llvm-dis llvm-dis /usr/bin/llvm-dis-${version} \
18 --slave /usr/bin/llvm-dwarfdump llvm-dwarfdump /usr/bin/llvm-dwarfdump-${version} \
[all …]
/aosp_15_r20/external/coreboot/util/lint/
H A Dcheck-style2 # git pre-commit hook that runs an clang-format stylecheck.
4 # - abort commit when commit does not comply with the style guidelines
5 # - create a patch of the proposed style changes
7 # modifications for clang-format by [email protected]
8 # Link: https://github.com/githubbrowser/Pre-commit-hooks
15 # set path to clang-format binary
16 CLANG_FORMAT="$(command -v clang-format)"
23 # if false every changed file in the commit will be parsed with clang-format.
24 # if true only files matching one of the extensions are parsed with clang-format.
35 …ence: http://stackoverflow.com/questions/1055671/how-can-i-get-the-behavior-of-gnus-readlink-f-on-
[all …]
H A Dlint-stable-022-clang-format3 # SPDX-License-Identifier: GPL-2.0-only
5 # DESCR: Run clang-format on white-listed directories
8 cd -- "$(dirname "$0")" > /dev/null 2>&1 || return
9 pwd -P
15 # Until we require this by default, we need a list of opted-in directories
17 if [ ! -f .clang-format-scope ] || [ "${IN_GIT_TREE}" -eq 0 ]; then
21 files_to_check=$(${GIT} log HEAD~..HEAD --format= --name-only $(cat .clang-format-scope) | grep "\.…
24 if [ -z "$files_to_check" ]; then
28 if [ $(clang-format $files_to_check | wc -l) -gt 0 ]; then
29 if [ "$(${GIT} diff --no-prefix HEAD~..HEAD -- $files_to_check | clang-format-diff)" != "" ]; then
[all …]
/aosp_15_r20/system/tools/aidl/
Daidl-format.sh9 # http://www.apache.org/licenses/LICENSE-2.0
17 set -e
19 clang_format=clang-format
22 # - could we make this work with git-clang-format instead?
23 # - should we have our own formatter?
25 function _aidl-format() (
26 # Find .aidl-format file to use. The file is located in one of the parent
28 function find-aidl-format-style() {
32 if find "$path" -maxdepth 1 -mindepth 1 -name .aidl-format | grep "."; then
35 path="$(readlink -f "$path"/..)"
[all …]
/aosp_15_r20/external/skia/infra/bots/task_drivers/codesize/
H A 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 …]
H A 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 …]
/aosp_15_r20/external/jsoncpp/.travis_scripts/
H A 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 …]
/aosp_15_r20/external/pytorch/.devcontainer/scripts/
H A Dupdate_alternatives_clang.sh14 cmdln="--verbose --install ${path}${master} ${master} ${path}${master}-${version} ${priority}"
16 cmdln="${cmdln} --slave ${path}${slave} ${slave} ${path}${slave}-${version}"
18 sudo update-alternatives ${cmdln}
21 if [[ ${#} -ne 2 ]]; then
30 master="llvm-config"
31-addr2line llvm-ar llvm-as llvm-bcanalyzer llvm-bitcode-strip llvm-cat llvm-cfi-verify llvm-cov ll…
35 master="clang"
36-build asan_symbolize bugpoint c-index-test clang++ clang-apply-replacements clang-change-namespac…
/aosp_15_r20/external/cpu_features/.github/workflows/
H A 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 …]
/aosp_15_r20/external/deqp/external/openglcts/
H A 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 …]

12345678910>>...22