Home
last modified time | relevance | path

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

12345678910>>...61

/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/share/clang/
Dclang-format.el1 ;;; clang-format.el --- Format code using clang-format -*- lexical-binding: t; -*-
5 ;; Package-Requires: ((cl-lib "0.3"))
6 ;; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
10 ;; This package allows to filter code through clang-format to fix its formatting.
11 ;; clang-format is a tool that formats C/C++/Obj-C code according to a set of
12 ;; style options, see <http://clang.llvm.org/docs/ClangFormatStyleOptions.html>.
13 ;; Note that clang-format 3.4 or newer is required.
15 ;; clang-format.el is available via MELPA and can be installed via
17 ;; M-x package-install clang-format
20 ;; `package-archives'. Alternatively, ensure the directory of this
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/share/clang/
Dclang-format.el1 ;;; clang-format.el --- Format code using clang-format -*- lexical-binding: t; -*-
5 ;; Package-Requires: ((cl-lib "0.3"))
6 ;; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
10 ;; This package allows to filter code through clang-format to fix its formatting.
11 ;; clang-format is a tool that formats C/C++/Obj-C code according to a set of
12 ;; style options, see <http://clang.llvm.org/docs/ClangFormatStyleOptions.html>.
13 ;; Note that clang-format 3.4 or newer is required.
15 ;; clang-format.el is available via MELPA and can be installed via
17 ;; M-x package-install clang-format
20 ;; `package-archives'. Alternatively, ensure the directory of this
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/share/clang/
Dclang-format.el1 ;;; clang-format.el --- Format code using clang-format -*- lexical-binding: t; -*-
5 ;; Package-Requires: ((cl-lib "0.3"))
6 ;; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
10 ;; This package allows to filter code through clang-format to fix its formatting.
11 ;; clang-format is a tool that formats C/C++/Obj-C code according to a set of
12 ;; style options, see <http://clang.llvm.org/docs/ClangFormatStyleOptions.html>.
13 ;; Note that clang-format 3.4 or newer is required.
15 ;; clang-format.el is available via MELPA and can be installed via
17 ;; M-x package-install clang-format
20 ;; `package-archives'. Alternatively, ensure the directory of this
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/share/clang/
Dclang-format.el1 ;;; clang-format.el --- Format code using clang-format -*- lexical-binding: t; -*-
4 ;; Package-Requires: ((cl-lib "0.3"))
5 ;; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
9 ;; This package allows to filter code through clang-format to fix its formatting.
10 ;; clang-format is a tool that formats C/C++/Obj-C code according to a set of
11 ;; style options, see <http://clang.llvm.org/docs/ClangFormatStyleOptions.html>.
12 ;; Note that clang-format 3.4 or newer is required.
14 ;; clang-format.el is available via MELPA and can be installed via
16 ;; M-x package-install clang-format
19 ;; `package-archives'. Alternatively, ensure the directory of this
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-stable/share/clang/
Dclang-format.el1 ;;; clang-format.el --- Format code using clang-format -*- lexical-binding: t; -*-
5 ;; Package-Requires: ((cl-lib "0.3"))
6 ;; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
10 ;; This package allows to filter code through clang-format to fix its formatting.
11 ;; clang-format is a tool that formats C/C++/Obj-C code according to a set of
12 ;; style options, see <http://clang.llvm.org/docs/ClangFormatStyleOptions.html>.
13 ;; Note that clang-format 3.4 or newer is required.
15 ;; clang-format.el is available via MELPA and can be installed via
17 ;; M-x package-install clang-format
20 ;; `package-archives'. Alternatively, ensure the directory of this
[all …]
/aosp_15_r20/external/clang/tools/clang-format/
H A 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 …]
/aosp_15_r20/frameworks/minikin/tests/unittest/
H A DOptimalLineBreakerTest.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
44 constexpr float ASCENT = -80.0f;
48 constexpr float CUSTOM_ASCENT = -160.0f;
52 // The expected line break of phrase and non-phrase cases are:
54 // Non-Phrase: | \u672C | \u65E5 | \u306F | \u6674 | \u5929 | \u306A | \u308A\u3002 |
64 mHyphenationPattern = readWholeFile("/system/usr/hyphen-data/hyph-en-us.hyb"); in SetUp()
67 2 /* min prefix */, 2 /* min suffix */, "en-US"); in SetUp()
68 HyphenatorMap::add("en-US", hyphenator); in SetUp()
121 paint.localeListId = LocaleListCache::getId("en-US"); in doLineBreakWithNoHyphenSpan()
127 paint.localeListId = LocaleListCache::getId("en-US"); in doLineBreakWithNoHyphenSpan()
[all …]
H A DGreedyLineBreakerTest.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
44 constexpr float ASCENT = -80.0f;
48 constexpr float CUSTOM_ASCENT = -160.0f;
52 // The expected line break of phrase and non-phrase cases are:
54 // Non-Phrase: | \u672C | \u65E5 | \u306F | \u6674 | \u5929 | \u306A | \u308A\u3002 |
58 // The phrase based line break breaks at spaces, non-phrase based line break breaks at grapheme.
69 mHyphenationPattern = readWholeFile("/system/usr/hyphen-data/hyph-en-us.hyb"); in SetUp()
72 2 /* min prefix */, 2 /* min suffix */, "en-US"); in SetUp()
73 HyphenatorMap::add("en-US", hyphenator); in SetUp()
82 return doLineBreak(textBuffer, doHyphenation, "en-US", lineWidth); in doLineBreak()
[all …]
/aosp_15_r20/external/tensorflow/tensorflow/core/ops/
H A 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 …]
/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/external/pigweed/pw_cpu_exception_cortex_m/
H A Dcrash.cc7 // https://www.apache.org/licenses/LICENSE-2.0
45 // The expression (n & (n - 1)) is 0 if n is a power of 2, i.e. n has in AnalyzeCpuStateAndCrash()
47 const bool has_multiple_faults = (active_faults & (active_faults - 1)) != 0; in AnalyzeCpuStateAndCrash()
49 // This provides a high-level assessment of the cause of the exception. in AnalyzeCpuStateAndCrash()
62 // clang-format off in AnalyzeCpuStateAndCrash()
65 // clang-format on in AnalyzeCpuStateAndCrash()
76 // clang-format off in AnalyzeCpuStateAndCrash()
79 // clang-format on in AnalyzeCpuStateAndCrash()
102 // clang-format off in AnalyzeCpuStateAndCrash()
105 //clang-format on in AnalyzeCpuStateAndCrash()
[all …]
/aosp_15_r20/external/executorch/kernels/test/
H A Dop_index_put_test.cpp5 * This source code is licensed under the BSD-style license found in the
54 // clang-format off in test_dtype()
70 // clang-format on in test_dtype()
235 // clang-format off in TEST_F()
245 -1., -2., -3., -4., // [1, 0, :] in TEST_F()
246 -5., -6., -7., -8., // [1, 1, :] in TEST_F()
247 -9., -10., -11., -12., // [1, 2, :] in TEST_F()
249 // clang-format on in TEST_F()
251 // clang-format off in TEST_F()
265 // clang-format on in TEST_F()
[all …]
H A Dop_tril_test.cpp5 * This source code is licensed under the BSD-style license found in the
29 // Assert `self` and `out` as zero tensors is a no-op.
34 // clang-format off in test_tril_out_zeros()
44 // clang-format on in test_tril_out_zeros()
50 // clang-format off in test_tril_out_zeros()
60 // clang-format on in test_tril_out_zeros()
65 // Assert `out` as a non-zero tensor yields correct results.
70 // clang-format off in test_tril_out_ones()
80 // clang-format on in test_tril_out_ones()
86 // clang-format off in test_tril_out_ones()
[all …]
H A Dop_embedding_test.cpp5 * This source code is licensed under the BSD-style license found in the
48 // clang-format off in test_dtype()
60 // clang-format on in test_dtype()
117 // clang-format off in TEST_F()
124 // clang-format on in TEST_F()
127 // clang-format off in TEST_F()
129 // clang-format on in TEST_F()
138 // weight.index_select(indices.reshape(-1)), in this test, out = weight[1] in TEST_F()
156 // clang-format off in TEST_F()
166 // clang-format on in TEST_F()
[all …]
/aosp_15_r20/external/openscreen/discovery/mdns/
H A 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 …]
/aosp_15_r20/external/pigweed/pw_bluetooth_sapphire/host/gatt/
H A Dserver_test.cc7 // https://www.apache.org/licenses/LICENSE-2.0
62 att_ = att::Bearer::Create(fake_att_chan_->GetWeakPtr(), dispatcher()); in SetUp()
64 kTestPeerId, local_services_->GetWeakPtr(), att_->GetWeakPtr()); in SetUp()
91 svc->AddCharacteristic(std::move(chr)); in RegisterSvcWithSingleChrc()
92 return local_services_->RegisterService( in RegisterSvcWithSingleChrc()
117 att::Database::WeakPtr db() const { return local_services_->database(); } in db()
137 for (auto& grouping : db()->groupings()) { in SetCCCs()
164 // but running the loop here makes this more future-proof. in SetCCCs()
185 // clang-format off in TEST_F()
193 // clang-format on in TEST_F()
[all …]
/aosp_15_r20/external/cronet/third_party/protobuf/objectivec/Tests/
H A 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 …]
/aosp_15_r20/external/protobuf/objectivec/Tests/
H A 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 …]
/aosp_15_r20/external/cronet/third_party/boringssl/src/pki/
H A Dsignature_algorithm_unittest.cc2 // Use of this source code is governed by a BSD-style license that can be
33 // clang-format off in TEST()
39 // clang-format on in TEST()
49 // clang-format off in TEST()
56 // clang-format on in TEST()
66 // clang-format off in TEST()
72 // clang-format on in TEST()
84 // clang-format off in TEST()
91 // clang-format on in TEST()
101 // clang-format off in TEST()
[all …]
/aosp_15_r20/external/mesa3d/docs/
H A Dcodingstyle.rst7 (.editorconfig) and/or Emacs (.dir-locals.el) file. Alternatively the
9 try following the format of existing, neighboring code.
11 ``clang-format``
12 ----------------
14 A growing number of drivers and components are adopting ``clang-format``
17 You can re-format the code for the components that have opted-in to the
18 formatting enforcement (listed in ``.clang-format-include``) by simply
19 running ``ninja -C build/ clang-format``.
21 Since mass-reformatting commits can be an annoying extra jump to go
25 git config blame.ignoreRevsFile .git-blame-ignore-revs
[all …]
/aosp_15_r20/external/llvm/test/CodeGen/PowerPC/
H A 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 …]
/aosp_15_r20/external/webrtc/common_audio/
H A 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 …]
/aosp_15_r20/external/pigweed/pw_protobuf/
H A Dstream_decoder_test.cc7 // https://www.apache.org/licenses/LICENSE-2.0
27 // Non-seekable wrapper for MemoryReader for testing behavior when seeking is
50 // clang-format off in TEST()
54 // type=sint32, k=2, v=-13 in TEST()
64 // type=sfixed32, k=7, v=-50 in TEST()
66 // type=sfixed64, k=8, v=-1647993274 in TEST()
71 // clang-format on in TEST()
86 EXPECT_EQ(sint32.value(), -13); in TEST()
118 EXPECT_EQ(sfixed32.value(), -50); in TEST()
124 EXPECT_EQ(sfixed64.value(), -1647993274); in TEST()
[all …]
/aosp_15_r20/external/tensorflow/tensorflow/core/kernels/image/
H A 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 …]
/aosp_15_r20/external/cronet/net/third_party/quiche/src/quiche/http2/decoder/
H A Dhttp2_structure_decoder_test.cc2 // Use of this source code is governed by a BSD-style license that can be
60 uint32_t old_remaining = b->Remaining(); in StartDecoding()
62 EXPECT_EQ(old_remaining - S::EncodedSize(), b->Remaining()); in StartDecoding()
67 EXPECT_EQ(0u, b->Remaining()); in StartDecoding()
68 EXPECT_EQ(old_remaining - structure_decoder_.offset(), b->Remaining()); in StartDecoding()
77 uint32_t avail = b->Remaining(); in ResumeDecoding()
80 EXPECT_EQ(b->Remaining(), avail - (S::EncodedSize() - old_offset)); in ResumeDecoding()
85 EXPECT_EQ(0u, b->Remaining()); in ResumeDecoding()
105 DecodeStatus /*status*/) -> AssertionResult { in DecodeLeadingStructure()
164 // random input. Lather-rinse-and-repeat.
[all …]

12345678910>>...61