Home
last modified time | relevance | path

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

12345678910>>...31

/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 …]
Dgit-clang-format3 #===- git-clang-format - ClangFormat Git Integration ---------*- python -*--===#
10 #===------------------------------------------------------------------------===#
13 clang-format git integration
16 This file provides a clang-format integration for git. Put it somewhere in your
17 path and ensure that it is executable. Then, "git clang-format" will invoke
18 clang-format on the changes in current files or a specific commit.
21 git clang-format -h
35 usage = 'git clang-format [OPTIONS] [<commit>] [<commit>] [--] [<file>...]'
38 If zero or one commits are given, run clang-format on all lines that differ
42 If two commits are given (requires --diff), run clang-format on all lines in the
[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 …]
DClangTools.rst5 Clang Tools are standalone command line (and potentially GUI) tools
7 Clang as their compiler. These tools provide developer-oriented
12 primary Clang Subversion project. The rest of the tools are kept in a
13 side-project so that developers who don't want or need to build them
14 don't. If you want to get access to the extra Clang Tools repository,
15 simply check it out into the tools tree of your Clang checkout and
17 LLVM/Clang checkout:
19 - With Subversion:
21 - ``cd llvm/tools/clang/tools``
22 - ``svn co http://llvm.org/svn/llvm-project/clang-tools-extra/trunk extra``
[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/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/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/libtextclassifier/tests/
Dfeature-processor_test.cc8 * http://www.apache.org/licenses/LICENSE-2.0
17 #include "smartselect/feature-processor.h"
35 // clang-format off in TEST()
42 // clang-format on in TEST()
52 // clang-format off in TEST()
58 // clang-format on in TEST()
68 // clang-format off in TEST()
74 // clang-format on in TEST()
84 // clang-format off in TEST()
89 // clang-format on in TEST()
[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/conscrypt/
D.travis.yml5 - BORINGSSL_HOME="$HOME/boringssl"
6 - CC=clang
7 - CXX=clang++
8 - GOOGLE_JAVA_FORMAT_VERSION=1.1
12 - $HOME/.gradle/caches/
13 - $HOME/.gradle/wrapper/dists/
20 - os: linux
25 - ANDROID_TOOLS_URL="https://dl.google.com/android/repository/tools_r25.2.3-linux.zip"
26 - ANDROID_HOME="$HOME/android-sdk-linux"
27 - ANDROID_NDK_HOME="$ANDROID_HOME/ndk-bundle"
[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 …]
Dupdate-prebuilts.py9 # http://www.apache.org/licenses/LICENSE-2.0
18 """Update the prebuilt clang from the build server."""
32 BRANCH = 'aosp-llvm'
49 '-b', '--bug', type=int,
53 '--use-current-branch', action='store_true',
88 return 'manifest_{}.xml'.format(build_number)
95 'clang-1234-linux-x86.tar.bz2'
97 return 'clang-{}-{}-x86.tar.bz2'.format(build_number, host)
111 url_base = 'https://android-build-uber.corp.google.com'
112 path = 'builds/{branch}-{build_host}-{build_name}/{build_num}'.format(
[all …]
/external/pdfium/
DDEPS54 "tools/clang":
55 Var('chromium_git') + "/chromium/src/tools/clang@" + Var('clang_revision'),
78 …Var('chromium_git') + "/external/github.com/catapult-project/catapult.git@" + Var('catapult_revisi…
110 '--no_resume',
111 '--platform=win32',
112 '--no_auth',
113 '--bucket', 'chromium-gn',
114 '-s', 'pdfium/buildtools/win/gn.exe.sha1',
121 '--no_resume',
122 '--platform=darwin',
[all …]
/external/v8/tools/clang/scripts/
Dupload_revision.py3 # Use of this source code is governed by a BSD-style license that can be
6 """This script takes a Clang revision as an argument, it then
8 a CL, triggers Clang Upload try bots, and tells what to do next"""
29 m = re.search("CLANG_REVISION = '([0-9]+)'", content)
31 content = re.sub("CLANG_REVISION = '[0-9]+'",
32 "CLANG_REVISION = '{}'".format(clang_revision),
34 content = re.sub("CLANG_SUB_REVISION=[0-9]+",
35 "CLANG_SUB_REVISION={}".format(clang_sub_revision),
47 parser = argparse.ArgumentParser(description='upload new clang revision')
50 help='Clang revision to build the toolchain for.')
[all …]
/external/clang/lib/Tooling/
DRefactoring.cpp1 //===--- Refactoring.cpp - Framework for clang refactoring tools ----------===//
8 //===----------------------------------------------------------------------===//
12 //===----------------------------------------------------------------------===//
14 #include "clang/Basic/DiagnosticOptions.h"
15 #include "clang/Basic/FileManager.h"
16 #include "clang/Basic/SourceManager.h"
17 #include "clang/Format/Format.h"
18 #include "clang/Frontend/TextDiagnosticPrinter.h"
19 #include "clang/Lex/Lexer.h"
20 #include "clang/Rewrite/Core/Rewriter.h"
[all …]
/external/clang/tools/clang-format/fuzzer/
DClangFormatFuzzer.cpp1 //===-- ClangFormatFuzzer.cpp - Fuzz the Clang format tool ----------------===//
8 //===----------------------------------------------------------------------===//
11 /// \brief This file implements a function that runs Clang format on a single
14 //===----------------------------------------------------------------------===//
16 #include "clang/Format/Format.h"
21 auto Style = getGoogleStyle(clang::format::FormatStyle::LK_Cpp); in LLVMFuzzerTestOneInput()
23 applyAllReplacements(s, clang::format::reformat( in LLVMFuzzerTestOneInput()
24 Style, s, {clang::tooling::Range(0, s.size())})); in LLVMFuzzerTestOneInput()
/external/swiftshader/third_party/subzero/pydir/
Dcrosstest.py14 """Builds a cross-test binary for comparing Subzero and llc translation.
16 Each --test argument is compiled once by llc and once by Subzero. C/C++
17 tests are first compiled down to PNaCl bitcode using pnacl-clang and
18 pnacl-opt. The --prefix argument ensures that symbol names are different
21 There is also a --driver argument that specifies the C/C++ file that calls
33 # For ARM, test a large stack offset as well. +/- 4095 is
35 'arm32': ['--test-stack-extra', '4084'],
36 'mips32': ['--test-stack-extra', '4084']
39 # Use sse2 instructions regardless of input -mattr
42 'x8632': ['-mattr=sse2'],
[all …]
Dsz_driver.py15 args = [('{atype} a{num}').format(atype=atype, num=i) for
19 ).format(ftype=subs[func]['sig'][0],
24 ).format(func=func, sub=subs[func]['sub']))
28 '#line 1 "{src}"'.format(src=src)]
32 """Passes its arguments directly to pnacl-clang.
34 If -fsanitize-address is specified, extra information is passed to
35 pnacl-clang to ensure that later instrumentation in pnacl-sz can be
36 performed. For example, clang automatically inlines many memory allocation
38 they can be correctly instrumented by pnacl-sz.
47 ).format(root=pnacl_root)
[all …]
/external/v8/
DDEPS35 …Var("chromium_url") + "/v8/deps/third_party/mozilla-tests.git" + "@" + "f6c578a10ea707b1a8ab0b8894…
39 …Var("chromium_url") + "/external/github.com/test262-utils/test262-harness-py.git" + "@" + "0f2acdd…
40 "v8/tools/clang":
41 …Var("chromium_url") + "/chromium/src/tools/clang.git" + "@" + "9913fb19b687b0c858f697efd7bd2468d78…
42 "v8/test/wasm-js":
51 …Var('chromium_url') + "/external/github.com/catapult-project/catapult.git" + "@" + "246a39a82c2213…
90 # Pull clang-format binaries using checked-in hashes.
95 "--no_resume",
96 "--platform=win32",
97 "--no_auth",
[all …]
/external/clang/tools/
DCMakeLists.txt1 create_subdirectory_options(CLANG TOOL)
5 add_clang_subdirectory(clang-format)
6 add_clang_subdirectory(clang-format-vs)
7 add_clang_subdirectory(clang-fuzzer)
9 add_clang_subdirectory(c-index-test)
12 add_clang_subdirectory(arcmt-test)
13 add_clang_subdirectory(c-arcmt-test)
17 add_clang_subdirectory(clang-check)
18 add_clang_subdirectory(scan-build)
19 add_clang_subdirectory(scan-view)
[all …]

12345678910>>...31