Home
last modified time | relevance | path

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

123456

/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/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/bcc/scripts/
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 …]
Dstyle-check.sh3 # Runs clang-format on the files changed between HEAD and $1, which defaults to
6 # to pick up git-clang-format from scripts/
9 CLANG_FORMAT=${CLANG_FORMAT:-clang-format}
10 GITREF=${1:-origin/master}
13 echo "Could not find clang-format tool" 1>&2
17 cmd="git clang-format $GITREF --binary $CLANG_FORMAT --diff --extensions h,c,cc"
19 n=$($cmd --quiet | wc -l)
20 if [ $n -gt 0 ]; then
21 $cmd -v
/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
24 - ANDROID_TOOLS_URL="https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip"
25 - ANDROID_HOME="$HOME/android-sdk-linux"
26 - ANDROID_NDK_HOME="$ANDROID_HOME/ndk-bundle"
27 - JAVA7_HOME=/usr/lib/jvm/java-7-openjdk-amd64
[all …]
/external/vulkan-validation-layers/
D.travis.yml2 # https://travis-ci.org
12 - env: CHECK_COMMIT_FORMAT=ON
15 - os: linux
17 env: VULKAN_BUILD_TARGET=ANDROID ANDROID_TARGET=android-26 ANDROID_ABI=armeabi-v7a
18 # Android 64-bit build.
19 - os: linux
21 env: VULKAN_BUILD_TARGET=ANDROID ANDROID_TARGET=android-26 ANDROID_ABI=arm64-v8a
23 - os: linux
26 # Linux clang debug build.
27 - os: linux
[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/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 …]
/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
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 …]
/external/syzkaller/
D.travis.yml5 - "1.9"
6 - "1.10"
9 - echo $PATH
10 - export PATH=`echo $PATH | sed -e 's/:\/usr\/local\/clang-[0-9].[0-9].[0-9]\/bin//'`
11- wget http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/libstdc++6_5.4.0-6ubuntu1~16.04.10_amd6…
12 - mkdir ./libc
13 - dpkg-deb -x ./libstdc++6_5.4.0-6ubuntu1~16.04.10_amd64.deb ./libc
14 - export LD_LIBRARY_PATH=`pwd`/libc/usr/lib/x86_64-linux-gnu/
15 - wget http://releases.llvm.org/6.0.1/clang+llvm-6.0.1-x86_64-linux-gnu-ubuntu-14.04.tar.xz
16 - tar -xf ./clang+llvm-6.0.1-x86_64-linux-gnu-ubuntu-14.04.tar.xz
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/docs/
DContributing.rst8 have questions, you can either use the `Developer's List (llvm-dev)`_
21 -----------
27 ---------
37 a debug build (`-DCMAKE_BUILD_TYPE=Debug`) or a build with assertions
38 (`-DLLVM_ENABLE_ASSERTIONS=On`, enabled for Debug builds).
41 ---------------------
54 …oc:`CodingStandards`. You can use the `clang-format-diff.py`_ or `git-clang-format`_ tools to auto…
59 be done using `LLVM's Phabricator`_ or the llvm-commits mailing list.
60 Please follow :ref:`Phabricator#requesting-a-review-via-the-web-interface <phabricator-request-rev…
67 when creating a review and if you are using `llvm-commits`, add them to the CC of
[all …]
/external/v8/tools/clang/scripts/
Dpackage.py3 # Use of this source code is governed by a BSD-style license that can be
6 """This script will check out llvm and clang, and then package the results up
24 LLVM_BOOTSTRAP_DIR = os.path.join(THIRD_PARTY_DIR, 'llvm-bootstrap')
26 'llvm-bootstrap-install')
27 LLVM_BUILD_DIR = os.path.join(THIRD_PARTY_DIR, 'llvm-build')
29 EU_STRIP = os.path.join(THIRD_PARTY_DIR, 'eu-strip', 'bin', 'eu-strip')
65 '--print-revision']
78 'http://dev.chromium.org/developers/how-tos/install-depot-tools'
90 gsutil_args = ['-q', 'stat',
91 'gs://chromium-browser-clang-staging/%s/%s.tgz' %
[all …]
/external/vulkan-validation-layers/scripts/
Dcheck_code_format.sh2 # Copyright (c) 2017-2019 Google Inc.
9 # http://www.apache.org/licenses/LICENSE-2.0
27 FILES_TO_CHECK=$(git diff --name-only master | grep -v -E "^include/vulkan" | grep -E ".*\.(cpp|cc|…
28 COPYRIGHTED_FILES_TO_CHECK=$(git diff --name-only master | grep -v -E "^include/vulkan")
30 if [ -z "${FILES_TO_CHECK}" ]; then
31 echo -e "${GREEN}No source code to check for formatting.${NC}"
33 # Check source files in PR for clang-format errors
34 …FORMAT_DIFF=$(git diff -U0 master -- ${FILES_TO_CHECK} | python ./scripts/clang-format-diff.py -p1…
36 if [ ! -z "${FORMAT_DIFF}" ]; then
37 echo -e "${RED}Found formatting errors!${NC}"
[all …]
/external/libvpx/libvpx/
DREADME1 README - 31 January 2019
15 have this package, the install-docs option will be disabled.
26 yasm-<version>-<arch>.exe to yasm.exe and place it in:
33 2. Out-of-tree builds
44 The 'configure' script supports a number of options. The --help option can be
46 $ ../libvpx/configure --help
58 For cross development, the most notable option is the --target option. The
59 most up-to-date list of supported targets can be found at the bottom of the
60 --help output of the configure script. As of this writing, the list of
63 arm64-android-gcc
[all …]
/external/conscrypt/srcgen/
Dgenerate_android_src.sh8 # http://www.apache.org/licenses/LICENSE-2.0
16 if [[ -z "${ANDROID_BUILD_TOP}" ]]; then
28 benchmark-android \
29 benchmark-base \
32 openjdk-integ-tests \
36 DEFAULT_CONSTRUCTORS_FILE=${CONSCRYPT_DIR}/srcgen/default-constructors.txt
44 source ${ANDROID_BUILD_TOP}/tools/currysrc/scripts/repackage-common.sh
47 rm -fr ${REPACKAGED_DIR}/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/ConscryptSuite…
48 rm -fr ${REPACKAGED_DIR}/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/ConscryptJava7…
50 echo "Reformatting generated code to adhere to format required by the preupload check"
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/tools/llvm-cov/
Dmultithreaded-report.test3 RUN: llvm-cov report -num-threads=1 \
4 RUN: -path-equivalence=/tmp,%S/Inputs \
5 RUN: -instr-profile %S/Inputs/multithreaded_report/main.profdata \
8 RUN: llvm-cov report -num-threads=10 \
9 RUN: -path-equivalence=/tmp,%S/Inputs \
10 RUN: -instr-profile %S/Inputs/multithreaded_report/main.profdata \
13 RUN: diff %t.1.report %t.2.report
16 RUN: llvm-cov export -num-threads=1 \
17 RUN: -path-equivalence=/tmp,%S/Inputs \
18 RUN: -instr-profile %S/Inputs/multithreaded_report/main.profdata \
[all …]
/external/libaom/libaom/
DREADME.md4 1. [Building the lib and applications](#building-the-library-and-applications)
5 - [Prerequisites](#prerequisites)
6 - [Get the code](#get-the-code)
7 - [Basics](#basic-build)
8 - [Configuration options](#configuration-options)
9 - [Dylib builds](#dylib-builds)
10 - [Debugging](#debugging)
11 - [Cross compiling](#cross-compiling)
12 - [Sanitizer support](#sanitizers)
13 - [MSVC builds](#microsoft-visual-studio-builds)
[all …]
/external/clang/
DAndroid.mk1 LOCAL_PATH := $(call my-dir)
4 .PHONY: clang-toolchain-minimal clang-toolchain-full llvm-tools
5 clang-toolchain-minimal: \
6 clang
8 clang-toolchain-full: \
9 clang-toolchain-minimal \
11 clang-check \
12 clang-format \
13 clang-tidy \
15 llvm-as \
[all …]
/external/clang/utils/check_cfc/
Dcheck_cfc.py3 """Check CFC - Check Compile Flow Consistency
10 -Ensure that the compiler under test (i.e. clang, clang++) is on the PATH
11 -On Linux copy this script to the name of the compiler
12 e.g. cp check_cfc.py clang && cp check_cfc.py clang++
13 -On Windows use setup.py to generate check_cfc.exe and copy that to clang.exe
14 and clang++.exe
15 -Enable the desired checks in check_cfc.cfg (in the same directory as the
22 -The wrapper can be run using its absolute path or added to PATH before the
25 -Compile as normal. The wrapper intercepts normal -c compiles and will return
26 non-zero if the check fails.
[all …]
/external/swiftshader/third_party/SPIRV-Tools/utils/
Dcheck_code_format.sh8 # http://www.apache.org/licenses/LICENSE-2.0
21 FILES_TO_CHECK=$(git diff --name-only master | grep -E ".*\.(cpp|cc|c\+\+|cxx|c|h|hpp)$")
23 if [ -z "${FILES_TO_CHECK}" ]; then
28 FORMAT_DIFF=$(git diff -U0 master -- ${FILES_TO_CHECK} | python ./utils/clang-format-diff.py -p1 -s…
30 if [ -z "${FORMAT_DIFF}" ]; then
/external/deqp-deps/SPIRV-Tools/utils/
Dcheck_code_format.sh8 # http://www.apache.org/licenses/LICENSE-2.0
21 FILES_TO_CHECK=$(git diff --name-only master | grep -E ".*\.(cpp|cc|c\+\+|cxx|c|h|hpp)$")
23 if [ -z "${FILES_TO_CHECK}" ]; then
28 FORMAT_DIFF=$(git diff -U0 master -- ${FILES_TO_CHECK} | python ./utils/clang-format-diff.py -p1 -s…
30 if [ -z "${FORMAT_DIFF}" ]; then
/external/swiftshader/third_party/SPIRV-Tools/
D.gitignore8 /external/SPIRV-Headers
9 /external/spirv-headers
14 /third_party/llvm-build/
16 /tools/clang/
17 /utils/clang-format-diff.py
20 [._]*.s[a-w][a-z]
23 # C-Lion
25 cmake-build-debug
/external/deqp-deps/SPIRV-Tools/
D.gitignore8 /external/SPIRV-Headers
9 /external/spirv-headers
14 /third_party/llvm-build/
16 /tools/clang/
17 /utils/clang-format-diff.py
20 [._]*.s[a-w][a-z]
23 # C-Lion
25 cmake-build-debug

123456