Home
last modified time | relevance | path

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

12345678910>>...44

/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 …]
/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/libnl/
D.clang-format1 # SPDX-License-Identifier: GPL-2.0
3 # clang-format configuration file. Intended for clang-format >= 4.
7 # Documentation/process/clang-format.rst
8 # https://clang.llvm.org/docs/ClangFormat.html
9 # https://clang.llvm.org/docs/ClangFormatStyleOptions.html
11 ---
12 AccessModifierOffset: -4
16 #AlignEscapedNewlines: Left # Unknown to clang-format-4.0
40 #AfterExternBlock: false # Unknown to clang-format-5.0
44 #SplitEmptyFunction: true # Unknown to clang-format-4.0
[all …]
/external/tensorflow/tensorflow/core/ops/
Dmath_grad.cc7 http://www.apache.org/licenses/LICENSE-2.0
47 // clang-format off in AbsGrad()
52 // clang-format on in AbsGrad()
57 // clang-format off in NegGrad()
61 // clang-format on in NegGrad()
66 // clang-format off in InvGrad()
73 // clang-format on in InvGrad()
79 // clang-format off in SquareGrad()
86 // clang-format on in SquareGrad()
91 // clang-format off in SqrtGrad()
[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/openscreen/discovery/mdns/
Dmdns_reader_unittest.cc2 // Use of this source code is governed by a BSD-style license that can be
135 // clang-format off in TEST()
142 // clang-format on in TEST()
147 // clang-format off in TEST()
152 // clang-format on in TEST()
155 RawRecordRdata(kRawRecordRdata + 2, sizeof(kRawRecordRdata) - 2)); in TEST()
159 // clang-format off in TEST()
164 // clang-format on in TEST()
177 // clang-format off in TEST()
181 // clang-format on in TEST()
[all …]
/external/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 …]
/external/cronet/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 …]
/external/cronet/buildtools/third_party/libc++/trunk/docs/Status/
DFormatPaper.csv3 ….link/time.syn>`_,"Formatter ``chrono::duration<Rep, Period>``",,Mark de Wever,|Complete|, Clang 16
4 …g21.link/time.syn>`_,"Formatter ``chrono::sys_time<Duration>``",,Mark de Wever,|Complete|, Clang 17
10 `[time.syn] <https://wg21.link/time.syn>`_,"Formatter ``chrono::local-time-format-t<Duration>``",A …
11 …syn] <https://wg21.link/time.syn>`_,"Formatter ``chrono::day``",,Mark de Wever,|Complete|, Clang 16
12 …n] <https://wg21.link/time.syn>`_,"Formatter ``chrono::month``",,Mark de Wever,|Complete|, Clang 16
13 …yn] <https://wg21.link/time.syn>`_,"Formatter ``chrono::year``",,Mark de Wever,|Complete|, Clang 16
14 … <https://wg21.link/time.syn>`_,"Formatter ``chrono::weekday``",,Mark de Wever,|Complete|, Clang 16
15 …//wg21.link/time.syn>`_,"Formatter ``chrono::weekday_indexed``",,Mark de Wever,|Complete|, Clang 16
16 …ps://wg21.link/time.syn>`_,"Formatter ``chrono::weekday_last``",,Mark de Wever,|Complete|, Clang 16
17 …https://wg21.link/time.syn>`_,"Formatter ``chrono::month_day``",,Mark de Wever,|Complete|, Clang 16
[all …]
/external/webrtc/common_audio/
Dwav_header_unittest.cc4 * Use of this source code is governed by a BSD-style license
40 const size_t bytes_remaining = size_ - pos_; in Read()
59 const size_t bytes_remaining = size_ - pos_; in SeekForward()
104 WavFormat format = WavFormat::kWavFormatPcm; in TEST() local
115 // clang-format off in TEST()
116 // clang formatting doesn't respect inline comments. in TEST()
118 0xbd, 0xd0, 0x5b, 0x07, // size of whole file - 8: 123457689 + 44 - 8 in TEST()
121 16, 0, 0, 0, // size of fmt block - 8: 24 - 8 in TEST()
122 1, 0, // format: PCM (1) in TEST()
130 // clang-format on in TEST()
[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/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/cronet/net/third_party/quiche/src/quiche/http2/decoder/
Dhttp2_structure_decoder_test.cc2 // Use of this source code is governed by a BSD-style license that can be
59 uint32_t old_remaining = b->Remaining(); in StartDecoding()
61 EXPECT_EQ(old_remaining - S::EncodedSize(), b->Remaining()); in StartDecoding()
66 EXPECT_EQ(0u, b->Remaining()); in StartDecoding()
67 EXPECT_EQ(old_remaining - structure_decoder_.offset(), b->Remaining()); in StartDecoding()
76 uint32_t avail = b->Remaining(); in ResumeDecoding()
79 EXPECT_EQ(b->Remaining(), avail - (S::EncodedSize() - old_offset)); in ResumeDecoding()
84 EXPECT_EQ(0u, b->Remaining()); in ResumeDecoding()
104 DecodeStatus /*status*/) -> AssertionResult { in DecodeLeadingStructure()
163 // random input. Lather-rinse-and-repeat.
[all …]
/external/tensorflow/tensorflow/core/kernels/image/
Dresize_nearest_neighbor_op_test.cc7 http://www.apache.org/licenses/LICENSE-2.0
109 // clang-format off in TEST_P()
112 // clang-format on in TEST_P()
127 // clang-format off in TEST_P()
130 // clang-format on in TEST_P()
144 // clang-format off in TEST_P()
150 // clang-format on in TEST_P()
165 // clang-format off in TEST_P()
171 // clang-format on in TEST_P()
187 // clang-format off in TEST_P()
[all …]
/external/cronet/base/test/android/junit/src/org/chromium/base/test/
DTestListInstrumentationRunListenerTest.java2 // Use of this source code is governed by a BSD-style license that can be
39 // clang-format off
45 // clang-format on
64 // clang-format off in testGetTestMethodJSON_testA()
71 // clang-format on in testGetTestMethodJSON_testA()
81 // clang-format off in testGetTestMethodJSON_testB()
92 // clang-format on in testGetTestMethodJSON_testB()
103 // clang-format off in testGetTestMethodJSONForInheritedClass()
114 // clang-format on in testGetTestMethodJSONForInheritedClass()
122 // clang-format off in testGetAnnotationJSONForParentClass()
[all …]
/external/cronet/net/cert/pki/
Dsignature_algorithm_unittest.cc2 // Use of this source code is governed by a BSD-style license that can be
35 // clang-format off in TEST()
41 // clang-format on in TEST()
51 // clang-format off in TEST()
58 // clang-format on in TEST()
68 // clang-format off in TEST()
74 // clang-format on in TEST()
86 // clang-format off in TEST()
93 // clang-format on in TEST()
103 // clang-format off in TEST()
[all …]
/external/webrtc/stats/
Drtcstats_objects.cc4 * Use of this source code is governed by a BSD-style license
27 const char* const RTCStatsIceCandidatePairState::kInProgress = "in-progress";
46 // https://w3c.github.io/webrtc-stats/#dom-rtcnetworktype
55 // https://w3c.github.io/webrtc-stats/#dom-rtcqualitylimitationreason
61 // https://webrtc.org/experiments/rtp-hdrext/video-content-type/
65 // https://w3c.github.io/webrtc-stats/#dom-rtcdtlsrole
75 // https://www.w3.org/TR/webrtc/#dom-rtcicetransportstate
84 // clang-format off
90 // clang-format on
107 // clang-format off
[all …]
/external/AFLplusplus/
D.custom-format.py3 # american fuzzy lop++ - custom code formatter
4 # --------------------------------------------
9 # Copyright 2019-2022 AFLplusplus Project. All rights reserved.
15 # http://www.apache.org/licenses/LICENSE-2.0
25 with open(".clang-format") as f:
32 p = subprocess.Popen(["clang-format-11", "--version"], stdout=subprocess.PIPE)
34 o = str(o, "utf-8")
36 # o = o[len("clang-format version "):].strip()
40 print("clang-format-11 is needed. Aborted.")
43 # if subprocess.call(['which', 'clang-format-7'], stdout=subprocess.PIPE) == 0:
[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/angle/third_party/vulkan-deps/spirv-tools/src/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 …]
/external/deqp-deps/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 …]

12345678910>>...44