/external/llvm-project/clang/tools/clang-format/ |
D | clang-format.el | 1 ;;; 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 …]
|
D | CMakeLists.txt | 3 add_clang_tool(clang-format 14 clang_target_link_libraries(clang-format 23 install(PROGRAMS clang-format-bbedit.applescript 24 DESTINATION share/clang 25 COMPONENT clang-format) 26 install(PROGRAMS clang-format-diff.py 27 DESTINATION share/clang 28 COMPONENT clang-format) 29 install(PROGRAMS clang-format-sublime.py 30 DESTINATION share/clang [all …]
|
D | clang-format-test.el | 1 ;;; clang-format-test.el --- unit tests for clang-format.el -*- lexical-binding: t; -*- 9 ;; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 13 ;; Unit tests for clang-format.el. Not run by lit, run as: 14 ;; emacs -Q -batch -l clang/tools/clang-format/clang-format.el -l clang/tools/clang-format/clang-fo… 18 (require 'clang-format) 20 (require 'cl-lib) 24 (ert-deftest clang-format-buffer--buffer-encoding () 26 (cl-letf* ((call-process-args nil) 27 ((symbol-function 'call-process-region) 29 (push args call-process-args) [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: 6 # map <C-I> :pyf <path-to-this-file>/clang-format.py<cr> 7 # imap <C-I> <c-o>:pyf <path-to-this-file>/clang-format.py<cr> 9 # map <C-I> :py3f <path-to-this-file>/clang-format.py<cr> 10 # imap <C-I> <c-o>:py3f <path-to-this-file>/clang-format.py<cr> 13 # The if-elseif-endif conditional should pick either the python3 or python2 16 # The first mapping enables clang-format for NORMAL and VISUAL mode, the second 17 # mapping adds support for INSERT mode. Change "C-I" to another binding if you [all …]
|
/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 …]
|
/external/llvm-project/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++/Java/JavaScript/Objective-C/Protobuf/C# code. 16 .. code-block:: console 18 $ clang-format -help 19 OVERVIEW: A tool to format C/C++/Java/JavaScript/Objective-C/Protobuf/C# 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 --Werror - If set, changes formatting warnings to errors [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 …]
|
/external/adhd/ |
D | .clang-format | 1 # 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/ |
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/llvm-project/clang/test/Misc/ |
D | diag-format.c | 1 // RUN: %clang -fsyntax-only %s 2>&1 | FileCheck %s --strict-whitespace -check-prefix=DEFAULT 2 // RUN: %clang -fsyntax-only -fdiagnostics-format=clang %s 2>&1 | FileCheck %s --strict-whitespace … 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 %s… 8 …clang -fsyntax-only -fdiagnostics-format=msvc -fms-compatibility-version=13.00 -target x86_64-pc-w… 9 …clang -fsyntax-only -fdiagnostics-format=msvc -fmsc-version=1300 -target x86_64-pc-win32 -fshow-co… 10 … RUN: %clang -fsyntax-only -fdiagnostics-format=msvc -fmsc-version=1800 -target x86_64-pc-win32 %s… 11 // RUN: %clang -fsyntax-only -fdiagnostics-format=msvc -target x86_64-pc-win32 %s 2>&1 | FileCheck … [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/llvm-project/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: not clang-format -style="{BasedOnStyle: invalid, IndentWidth: 7}" -fallback-style=LLVM %s 2… 4 // RUN: not clang-format -style="{lsjd}" %s -fallback-style=LLVM 2>&1 | FileCheck -strict-whitespac… 5 // RUN: mkdir -p %t 6 // RUN: printf "BasedOnStyle: google\nIndentWidth: 5\n" > %t/.clang-format 7 // RUN: clang-format -style=file -assume-filename=%t/foo.cpp < %s | FileCheck -strict-whitespace -c… 8 // RUN: printf "\n" > %t/.clang-format 9 // RUN: not clang-format -style=file -fallback-style=webkit -assume-filename=%t/foo.cpp < %s 2>&1 |… 10 // RUN: rm %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/llvm-project/utils/arcanist/ |
D | clang-format.sh | 3 set -euo pipefail 5 # "script-and-regex.regex": "/^(?P<severity>.*?)\n(?P<message>.*?)\n(?P<line>\\d),(?P<char>\\d)(\n(… 7 # Arcanist linter that invokes clang-format via clang/tools/clang-format/clang-format-diff.py 11 # To skip running all linters when creating/updating a diff, use `arc diff --nolint`. 13 # advice severity level is completely non-disruptive. 15 if ! hash clang-format >/dev/null; then 17 echo "clang-format not found in user's PATH; not linting file." 21 if ! git rev-parse --git-dir >/dev/null; then 34 cp -p "${src_file}" "${original_file}" 35 cp -p "${src_file}" "${formatted_file}" [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/llvm-project/clang/test/Driver/ |
D | opt-record.c | 1 // RUN: %clang -### -S -o FOO -fsave-optimization-record %s 2>&1 | FileCheck %s 2 // RUN: %clang -### -c -o FOO -fsave-optimization-record %s 2>&1 | FileCheck %s 3 // RUN: %clang -### -c -o FOO.o -fsave-optimization-record %s 2>&1 | FileCheck %s 4 // RUN: %clang -### -save-temps -S -o FOO -fsave-optimization-record %s 2>&1 | FileCheck %s 5 // RUN: %clang -### -save-temps -c -o FOO.o -fsave-optimization-record %s 2>&1 | FileCheck %s 6 // RUN: %clang -### -c -fsave-optimization-record %s 2>&1 | FileCheck %s -check-prefix=CHECK-NO-O 7 // RUN: %clang -### -save-temps -c -fsave-optimization-record %s 2>&1 | FileCheck %s -check-prefix=… 8 // RUN: %clang -### -fsave-optimization-record %s 2>&1 | FileCheck %s -check-prefix=CHECK-NO-O 9 …N: %clang -### -S -fsave-optimization-record -x cuda -nocudainc -nocudalib %s 2>&1 | FileCheck %s … 10 …RUN: %clang -### -fsave-optimization-record -x cuda -nocudainc -nocudalib %s 2>&1 | FileCheck %s -… [all …]
|
/external/llvm-project/clang/tools/clang-rename/ |
D | clang-rename.el | 1 ;;; clang-rename.el --- Renames every occurrence of a symbol found at <offset>. -*- lexical-bindin… 7 ;; To install clang-rename.el make sure the directory of this file is in your 8 ;; `load-path' and add 10 ;; (require 'clang-rename) 16 (defgroup clang-rename nil 17 "Integration with clang-rename" 20 (defcustom clang-rename-binary "clang-rename" 21 "Path to clang-rename executable." 22 :type '(file :must-match t) 23 :group 'clang-rename) [all …]
|
/external/llvm-project/clang/tools/clang-format-vs/ClangFormat/ |
D | ClangFormatPackage.cs | 1 //===-- ClangFormatPackages.cs - VSPackage for clang-format ------*- C# -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 9 // This class contains a VS extension package that runs clang-format over a 12 //===----------------------------------------------------------------------===// 88 [Category("Format Options")] 91 … " - Predefined styles ('LLVM', 'Google', 'Chromium', 'Mozilla', 'WebKit').\n" + 92 " - 'file' to search for a YAML .clang-format or _clang-format\n" + 94 " - A YAML configuration snippet.\n\n" + 96 " Searches for a .clang-format or _clang-format configuration file\n" + [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/llvm-project/llvm/test/CodeGen/PowerPC/ |
D | BreakableToken-reduced.ll | 1 ; 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"*,… 35 …clang::format::FormatToken" = type <{ %"class.clang::Token", i32, i8, [3 x i8], %"class.clang::Sou… [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/llvm-project/llvm/docs/ |
D | Contributing.rst | 8 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 -------------------------- 43 There is a separate process to submit security-related bugs, see :ref:`report-security-issue`. 46 --------------------- 58 …oc:`CodingStandards`. You can use the `clang-format-diff.py`_ or `git-clang-format`_ tools to auto… 65 formatted properly. We use ``clang-format`` for this, which has git integration [all …]
|