| /external/clang/tools/clang-format/ |
| D | clang-format.el | 1 ;;; 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 …]
|
| D | CMakeLists.txt | 3 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 …]
|
| D | clang-format.py | 1 # 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 …]
|
| D | ClangFormat.cpp | 1 //===-- 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/ |
| D | ClangFormat.rst | 13 :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 …]
|
| D | ClangFormatStyleOptions.rst | 2 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/ |
| D | math_grad.cc | 7 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/ |
| D | diag-format.c | 1 // 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/mesa3d/ |
| D | .git-blame-ignore-revs | 3 # git config blame.ignoreRevsFile .git-blame-ignore-revs 5 # Per git-blame(1): 7 # per line, in git-blame. Whitespace and comments beginning with # are 13 # git log -1 --pretty=format:'%n# %s%n%H%n' >> .git-blame-ignore-revs $COMMIT 15 # pvr: Fix clang-format error. 18 # panfrost: Fix up some formatting for clang-format 21 # asahi: clang-format the world again 24 # perfetto: Add a .clang-format for the directory. 27 # panfrost/winsys: Clang-format 30 # panfrost: Re-run clang-format [all …]
|
| /external/mesa3d/docs/ |
| D | codingstyle.rst | 7 (.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 …]
|
| /external/openscreen/discovery/mdns/ |
| D | mdns_reader_unittest.cc | 2 // 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/ |
| D | GPBMessageTests+Merge.m | 1 // 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/ |
| D | GPBMessageTests+Merge.m | 1 // 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/clang/test/Format/ |
| D | style-on-command-line.cpp | 1 // 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/webrtc/common_audio/ |
| D | wav_header_unittest.cc | 4 * 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/cronet/net/third_party/quiche/src/quiche/http2/decoder/ |
| D | http2_structure_decoder_test.cc | 2 // 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 …]
|
| /external/llvm/test/CodeGen/PowerPC/ |
| D | BreakableToken-reduced.ll | 1 ; 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"*,… 35 …clang::format::FormatToken" = type <{ %"class.clang::Token", i32, i8, [3 x i8], %"class.clang::Sou… [all …]
|
| /external/pigweed/pw_bluetooth_sapphire/host/gatt/ |
| D | server_test.cc | 7 // https://www.apache.org/licenses/LICENSE-2.0 27 #pragma clang diagnostic ignored "-Wshadow" 64 att_ = att::Bearer::Create(fake_att_chan_->GetWeakPtr(), dispatcher()); in SetUp() 66 kTestPeerId, local_services_->GetWeakPtr(), att_->GetWeakPtr()); in SetUp() 93 svc->AddCharacteristic(std::move(chr)); in RegisterSvcWithSingleChrc() 94 return local_services_->RegisterService( in RegisterSvcWithSingleChrc() 119 att::Database::WeakPtr db() const { return local_services_->database(); } in db() 139 for (auto& grouping : db()->groupings()) { in SetCCCs() 166 // but running the loop here makes this more future-proof. in SetCCCs() 187 // clang-format off in TEST_F() [all …]
|
| /external/tensorflow/tensorflow/core/kernels/image/ |
| D | resize_nearest_neighbor_op_test.cc | 7 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/third_party/boringssl/src/pki/ |
| D | signature_algorithm_unittest.cc | 2 // Use of this source code is governed by a BSD-style license that can be 34 // clang-format off in TEST() 40 // clang-format on in TEST() 50 // clang-format off in TEST() 57 // clang-format on in TEST() 67 // clang-format off in TEST() 73 // clang-format on in TEST() 85 // clang-format off in TEST() 92 // clang-format on in TEST() 102 // clang-format off in TEST() [all …]
|
| /external/clang/tools/clang-format-vs/ClangFormat/ |
| D | ClangFormatPackage.cs | 1 //===-- 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/webrtc/stats/ |
| D | rtcstats_objects.cc | 4 * 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/swiftshader/third_party/SPIRV-Tools/test/opt/ |
| D | strip_debug_info_test.cpp | 7 // 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/ |
| D | strip_debug_info_test.cpp | 7 // 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/angle/third_party/spirv-tools/src/test/opt/ |
| D | strip_debug_info_test.cpp | 7 // 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 …]
|