Home
last modified time | relevance | path

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

12345678910>>...43

/external/clang/tools/clang-format/
Dclang-format.el1 ;;; clang-format.el --- Format code using clang-format
4 ;; Package-Requires: ((cl-lib "0.3"))
8 ;; This package allows to filter code through clang-format to fix its formatting.
9 ;; clang-format is a tool that formats C/C++/Obj-C code according to a set of
10 ;; style options, see <http://clang.llvm.org/docs/ClangFormatStyleOptions.html>.
11 ;; Note that clang-format 3.4 or newer is required.
13 ;; clang-format.el is available via MELPA and can be installed via
15 ;; M-x package-install clang-format
18 ;; `package-archives'. Alternatively, ensure the directory of this
19 ;; file is in your `load-path' and add
[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 …]
Dclang-format.py1 # This file is a minimal clang-format vim-integration. To install:
2 # - Change 'binary' if clang-format is not on the path (see below).
3 # - Add to your .vimrc:
5 # map <C-I> :pyf <path-to-this-file>/clang-format.py<cr>
6 # imap <C-I> <c-o>:pyf <path-to-this-file>/clang-format.py<cr>
8 # The first line enables clang-format for NORMAL and VISUAL mode, the second
9 # line adds support for INSERT mode. Change "C-I" to another binding if you
10 # need clang-format on a different key (C-I stands for Ctrl+i).
12 # With this integration you can press the bound key and clang-format will
13 # format the current line in NORMAL and INSERT mode or the selected region in
[all …]
DClangFormat.cpp1 //===-- clang-format/ClangFormat.cpp - Clang format tool ------------------===//
8 //===----------------------------------------------------------------------===//
11 /// \brief This file implements a clang-format tool that automatically formats
14 //===----------------------------------------------------------------------===//
16 #include "clang/Basic/Diagnostic.h"
17 #include "clang/Basic/DiagnosticOptions.h"
18 #include "clang/Basic/FileManager.h"
19 #include "clang/Basic/SourceManager.h"
20 #include "clang/Basic/Version.h"
21 #include "clang/Format/Format.h"
[all …]
Dclang-format-sublime.py1 # This file is a minimal clang-format sublime-integration. To install:
2 # - Change 'binary' if clang-format is not on the path (see below).
3 # - Put this file into your sublime Packages directory, e.g. on Linux:
4 # ~/.config/sublime-text-2/Packages/User/clang-format-sublime.py
5 # - Add a key binding:
8 # With this integration you can press the bound key and clang-format will
9 # format the current lines and selections for all cursor positions. The lines
20 # Change this to the full path if clang-format is not on the path.
21 binary = 'clang-format'
23 # Change this to format according to other formatting styles. See the output of
[all …]
/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 …]
DClangFormatStyleOptions.rst2 Clang-Format Style Options
8 When using :program:`clang-format` command line utility or
9 ``clang::format::reformat(...)`` functions from code, one can either use one of
14 Configuring Style with clang-format
17 :program:`clang-format` supports two ways to provide custom style options:
18 directly specify style configuration in the ``-style=`` command line option or
19 use ``-style=file`` and put style configuration in the ``.clang-format`` or
20 ``_clang-format`` file in the project directory.
22 When using ``-style=file``, :program:`clang-format` for each input file will
23 try to find the ``.clang-format`` file located in the closest parent directory
[all …]
/external/tensorflow/tensorflow/core/ops/
Dmath_grad.cc7 http://www.apache.org/licenses/LICENSE-2.0
44 // clang-format off in AbsGrad()
49 // clang-format on in AbsGrad()
54 // clang-format off in NegGrad()
58 // clang-format on in NegGrad()
63 // clang-format off in InvGrad()
70 // clang-format on in InvGrad()
76 // clang-format off in SquareGrad()
83 // clang-format on in SquareGrad()
88 // clang-format off in SqrtGrad()
[all …]
Dnn_grad.cc7 http://www.apache.org/licenses/LICENSE-2.0
26 // clang-format off in SoftmaxGrad()
40 FDH::Const<int32>("indices", {-1}), in SoftmaxGrad()
45 // clang-format on in SoftmaxGrad()
51 // clang-format off in LogSoftmaxGrad()
64 FDH::Const<int32>("indices", {-1}), in LogSoftmaxGrad()
70 // clang-format on in LogSoftmaxGrad()
76 // clang-format off in ReluGrad()
88 // clang-format on in ReluGrad()
94 // clang-format off in Relu6Grad()
[all …]
/external/clang/test/Misc/
Ddiag-format.c1 // RUN: %clang -fsyntax-only %s 2>&1 | FileCheck %s -check-prefix=DEFAULT
2 // RUN: %clang -fsyntax-only -fdiagnostics-format=clang %s 2>&1 | FileCheck %s -check-prefix=DEFAULT
3 // RUN: %clang -fsyntax-only -fdiagnostics-format=clang -target x86_64-pc-win32 %s 2>&1 | FileCheck…
5 // RUN: %clang -fsyntax-only -fdiagnostics-format=msvc -fmsc-version=1300 %s 2>&1 | FileCheck %s -
6 // RUN: %clang -fsyntax-only -fdiagnostics-format=msvc -fms-compatibility-version=13.00 %s 2>&1 | …
7 // RUN: %clang -fsyntax-only -fdiagnostics-format=msvc -fmsc-version=1300 -target x86_64-pc-win32 %…
8 // RUN: %clang -fsyntax-only -fdiagnostics-format=msvc -fms-compatibility-version=13.00 -target x86…
9 // RUN: %clang -fsyntax-only -fdiagnostics-format=msvc -fmsc-version=1300 -target x86_64-pc-win32 -
10 // RUN: %clang -fsyntax-only -fdiagnostics-format=msvc -fmsc-version=1800 -target x86_64-pc-win32 %…
11 // RUN: %clang -fsyntax-only -fdiagnostics-format=msvc -target x86_64-pc-win32 %s 2>&1 | FileCheck …
[all …]
/external/tensorflow/tensorflow/core/kernels/
Dresize_nearest_neighbor_op_test.cc7 http://www.apache.org/licenses/LICENSE-2.0
83 // clang-format off in TEST_F()
86 // clang-format on in TEST_F()
101 // clang-format off in TEST_F()
104 // clang-format on in TEST_F()
118 // clang-format off in TEST_F()
124 // clang-format on in TEST_F()
139 // clang-format off in TEST_F()
145 // clang-format on in TEST_F()
161 // clang-format off in TEST_F()
[all …]
/external/clang/test/Format/
Dstyle-on-command-line.cpp1 // RUN: clang-format -style="{BasedOnStyle: Google, IndentWidth: 8}" %s | FileCheck -strict-whitesp…
2 // RUN: clang-format -style="{BasedOnStyle: LLVM, IndentWidth: 7}" %s | FileCheck -strict-whitespac…
3 // RUN: clang-format -style="{BasedOnStyle: invalid, IndentWidth: 7}" -fallback-style=LLVM %s 2>&1 …
4 // RUN: clang-format -style="{lsjd}" %s -fallback-style=LLVM 2>&1 | FileCheck -strict-whitespace -c…
5 // RUN: printf "BasedOnStyle: google\nIndentWidth: 5\n" > %T/.clang-format
6 // RUN: clang-format -style=file -assume-filename=%T/foo.cpp < %s | FileCheck -strict-whitespace -c…
7 // RUN: printf "\n" > %T/.clang-format
8 // RUN: clang-format -style=file -fallback-style=webkit -assume-filename=%T/foo.cpp < %s 2>&1 | Fil…
9 // RUN: rm %T/.clang-format
10 // RUN: printf "BasedOnStyle: google\nIndentWidth: 6\n" > %T/_clang-format
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/PowerPC/
DBreakableToken-reduced.ll1 ; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 -enable-shrink-w…
3 ; Test the use of a non-R0 register to save/restore the LR in function
14 ; llc -stop-after stack-slot-coloring BreakableToken-reduced.ll > BreakableToken-reduced.mir
18 ; llc -start-after stack-slot-coloring -stop-after prologepilog BreakableToken-reduced.mir
28 target datalayout = "e-m:e-i64:64-n32:64"
29 target triple = "powerpc64le-unknown-linux-gnu"
31 %"class.clang::format::BreakableStringLiteral" = type { %"class.clang::format::BreakableSingleLineT…
32 %"class.clang::format::BreakableSingleLineToken" = type { %"class.clang::format::BreakableToken", i…
33 %"class.clang::format::BreakableToken" = type { i32 (...)**, %"struct.clang::format::FormatToken"*,…
35clang::format::FormatToken" = type <{ %"class.clang::Token", i32, i8, [3 x i8], %"class.clang::Sou…
[all …]
/external/llvm/test/CodeGen/PowerPC/
DBreakableToken-reduced.ll1 ; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 -enable-shrink-wrap=true %s -o - | Fil…
3 ; Test the use of a non-R0 register to save/restore the LR in function
14 ; llc -stop-after stack-slot-coloring BreakableToken-reduced.ll > BreakableToken-reduced.mir
18 ; llc -start-after stack-slot-coloring -stop-after prologepilog BreakableToken-reduced.mir
28 target datalayout = "e-m:e-i64:64-n32:64"
29 target triple = "powerpc64le-unknown-linux-gnu"
31 %"class.clang::format::BreakableStringLiteral" = type { %"class.clang::format::BreakableSingleLineT…
32 %"class.clang::format::BreakableSingleLineToken" = type { %"class.clang::format::BreakableToken", i…
33 %"class.clang::format::BreakableToken" = type { i32 (...)**, %"struct.clang::format::FormatToken"*,…
35clang::format::FormatToken" = type <{ %"class.clang::Token", i32, i8, [3 x i8], %"class.clang::Sou…
[all …]
/external/clang/tools/clang-format-vs/ClangFormat/
DClangFormatPackage.cs1 //===-- ClangFormatPackages.cs - VSPackage for clang-format ------*- C# -*-===//
8 //===----------------------------------------------------------------------===//
10 // This class contains a VS extension package that runs clang-format over a
13 //===----------------------------------------------------------------------===//
77 [Category("LLVM/Clang")]
80 … " - Predefined styles ('LLVM', 'Google', 'Chromium', 'Mozilla', 'WebKit').\n" +
81 " - 'file' to search for a YAML .clang-format or _clang-format\n" +
83 " - A YAML configuration snippet.\n\n" +
85 " Searches for a .clang-format or _clang-format configuration file\n" +
88 " The content of a .clang-format configuration file, as string.\n" +
[all …]
/external/flatbuffers/tests/
Dtest_builder.h48 // clang-format off
50 // clang-format on
71 // clang-format off
73 // clang-format on
79 // clang-format off
81 // clang-format on
163 // clang-format off
165 // clang-format on
206 // clang-format off
208 // clang-format on
[all …]
/external/swiftshader/third_party/SPIRV-Tools/test/opt/
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 …]
Dir_loader_test.cpp7 // http://www.apache.org/licenses/LICENSE-2.0
25 #include "spirv-tools/libspirv.hpp"
38 context->module()->ToBinary(&binary, /* skip_nop = */ false); in DoRoundTripCheck()
50 // clang-format off in TEST()
89 // clang-format on in TEST()
107 // clang-format off in TEST()
129 // clang-format on in TEST()
145 // float lv1 = gv1 - gv2; in TEST()
148 // clang-format off in TEST()
199 // clang-format on in TEST()
[all …]
/external/deqp-deps/SPIRV-Tools/test/opt/
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 …]
Dir_loader_test.cpp7 // http://www.apache.org/licenses/LICENSE-2.0
25 #include "spirv-tools/libspirv.hpp"
38 context->module()->ToBinary(&binary, /* skip_nop = */ false); in DoRoundTripCheck()
50 // clang-format off in TEST()
89 // clang-format on in TEST()
107 // clang-format off in TEST()
129 // clang-format on in TEST()
145 // float lv1 = gv1 - gv2; in TEST()
148 // clang-format off in TEST()
199 // clang-format on in TEST()
[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
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/tensorflow/tensorflow/core/grappler/graph_analyzer/
Dgraph_analyzer_test.cc7 http://www.apache.org/licenses/LICENSE-2.0
38 Status BuildMap() { return gran_->BuildMap(); } in BuildMap()
40 void FindSubgraphs() { gran_->FindSubgraphs(); } in FindSubgraphs()
42 void DropInvalidSubgraphs() { gran_->DropInvalidSubgraphs(); } in DropInvalidSubgraphs()
44 Status CollateResult() { return gran_->CollateResult(); } in CollateResult()
46 void ExtendSubgraph(Subgraph* parent) { gran_->ExtendSubgraph(parent); } in ExtendSubgraph()
50 gran_->ExtendSubgraphPortAllOrNone(parent, node, port); in ExtendSubgraphPortAllOrNone()
54 gran_->ExtendSubgraphAllOrNone(parent, node); in ExtendSubgraphAllOrNone()
57 std::vector<string> DumpRawSubgraphs() { return gran_->DumpRawSubgraphs(); } in DumpRawSubgraphs()
61 for (const auto& it : gran_->partial_) { in DumpPartials()
[all …]
/external/clang/
Dbuild.py9 # http://www.apache.org/licenses/LICENSE-2.0
17 """Builds the Android Clang toolchain."""
37 # pylint: disable=missing-docstring
47 # Set True to skip all actions (log only). Controlled by --dry-run.
77 """Proxy for subprocess.check_call with logging and dry-run support."""
85 extra_env = dict(set(kwargs['env'].items()) - set(os.environ.items()))
94 """Proxy for shutil.copy2 with logging and dry-run support."""
102 """Proxy for shutil.copytree with logging and dry-run support."""
110 """Proxy for shutil.rmtree with logging and dry-run support."""
118 """Proxy for os.rename with logging and dry-run support."""
[all …]
/external/deqp-deps/SPIRV-Tools/
DDEPS25 'external/spirv-headers':
26 Var('github') + '/KhronosGroup/SPIRV-Headers.git@' +
42 'tools/clang':
43 Var('chromium_git') + '/chromium/src/tools/clang@' + Var('clang_revision')
55 '--no_resume',
56 '--platform=win32',
57 '--no_auth',
58 '--bucket', 'chromium-gn',
59 '-s', 'SPIRV-Tools/buildtools/win/gn.exe.sha1',
66 '--no_resume',
[all …]
/external/swiftshader/third_party/SPIRV-Tools/
DDEPS25 'external/spirv-headers':
26 Var('github') + '/KhronosGroup/SPIRV-Headers.git@' +
42 'tools/clang':
43 Var('chromium_git') + '/chromium/src/tools/clang@' + Var('clang_revision')
55 '--no_resume',
56 '--platform=win32',
57 '--no_auth',
58 '--bucket', 'chromium-gn',
59 '-s', 'SPIRV-Tools/buildtools/win/gn.exe.sha1',
66 '--no_resume',
[all …]

12345678910>>...43