Home
last modified time | relevance | path

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

12345678910>>...17

/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 …]
Dtoken-feature-extractor_test.cc8 * http://www.apache.org/licenses/LICENSE-2.0
17 #include "smartselect/token-feature-extractor.h"
34 options.chargram_orders = std::vector<int>{1, 2, 3}; in TEST()
48 // clang-format off in TEST()
65 // clang-format on in TEST()
76 // clang-format off in TEST()
96 // clang-format on in TEST()
98 EXPECT_THAT(dense_features, testing::ElementsAreArray({-1.0, 0.0})); in TEST()
104 options.chargram_orders = std::vector<int>{1, 2, 3}; in TEST()
118 // clang-format off 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/tools/clang-format/
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 …]
Dclang-format-diff.py3 #===- clang-format-diff.py - ClangFormat Diff Reformatter ----*- python -*--===#
10 #===------------------------------------------------------------------------===#
20 git diff -U0 HEAD^ | clang-format-diff.py -p1 -i
21 svn diff --diff-cmd=diff -x-U0 | clang-format-diff.py -i
36 'Reformat changed lines in diff. Without -i '
39 parser.add_argument('-i', action='store_true', default=False,
41 parser.add_argument('-p', metavar='NUM', default=0,
43 parser.add_argument('-regex', metavar='PATTERN', default=None,
45 '(case sensitive, overrides -iregex)')
46 parser.add_argument('-iregex', metavar='PATTERN', default=
[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/libvpx/libvpx/
DREADME1 README - 26 January 2017
14 * Building the documentation requires Doxygen[3]. If you do not
15 have this package, the install-docs option will be disabled.
25 [3]: http://www.doxygen.org
29 2. Out-of-tree builds
39 3. Configuration options
40 The 'configure' script supports a number of options. The --help option can be
42 $ ../libvpx/configure --help
45 For cross development, the most notable option is the --target option. The
46 most up-to-date list of supported targets can be found at the bottom of the
[all …]
/external/vixl/src/
Dcompiler-intrinsics-vixl.h31 #include "globals-vixl.h"
54 // clang-format off
60 // clang-format on
64 // https://gcc.gnu.org/onlinedocs/gcc-$MAJOR.$MINOR.$PATCHLEVEL/gcc//Other-Builtins.html
66 // clang-format off
68 # define COMPILER_HAS_BUILTIN_CLZ (GCC_VERSION_OR_NEWER(3, 4, 0))
69 # define COMPILER_HAS_BUILTIN_CTZ (GCC_VERSION_OR_NEWER(3, 4, 0))
70 # define COMPILER_HAS_BUILTIN_FFS (GCC_VERSION_OR_NEWER(3, 4, 0))
71 # define COMPILER_HAS_BUILTIN_POPCOUNT (GCC_VERSION_OR_NEWER(3, 4, 0))
72 // clang-format on
[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/vixl/examples/aarch64/
Dswap4.cc29 #define __ masm->
65 simulator.WriteXRegister(3, 0x4444444444444444); in main()
67 // clang-format off in main()
74 simulator.ReadXRegister(2), simulator.ReadXRegister(3)); in main()
75 // clang-format on in main()
79 // clang-format off in main()
86 simulator.ReadXRegister(2), simulator.ReadXRegister(3)); in main()
87 // clang-format on in main()
/external/clang/docs/
DUsersManual.rst2 Clang Compiler User's Manual
11 The Clang Compiler is an open-source compiler for the C family of
13 these languages. Clang builds on the LLVM optimizer and code generator,
14 allowing it to provide high-quality optimization and code generation
16 `Clang Web Site <http://clang.llvm.org>`_ or the `LLVM Web
19 This document describes important notes about using Clang as a compiler
20 for an end-user, documenting the supported features, command line
21 options, etc. If you are interested in using Clang to build a tool that
23 `Clang Static Analyzer <http://clang-analyzer.llvm.org>`_, please see its web
26 Clang is designed to support the C family of programming languages,
[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 …]
DSourceBasedCodeCoverage.rst2 Source-based Code Coverage
11 This document explains how to use clang's source-based code coverage feature.
12 It's called "source-based" because it operates on AST and preprocessor
15 Clang ships two other code coverage implementations:
17 * :doc:`SanitizerCoverage` - A low-overhead tool meant for use alongside the
18 various sanitizers. It can provide up to edge-level coverage.
20 * gcov - A GCC-compatible coverage implementation which operates on DebugInfo.
22 From this point onwards "code coverage" will refer to the source-based kind.
35 The next few sections work through a complete, copy-'n-paste friendly example
38 .. code-block:: cpp
[all …]
/external/vixl/
DREADME.md22 3. A **simulator** that can simulate any instruction emitted by the A64
46 3. GCC 4.8+ or Clang 3.4+
48 A 64-bit host machine is required, implementing an LP64 data model. VIXL has
49 been tested using GCC on AArch64 Debian, GCC and Clang on amd64 Ubuntu
57 3. clang-format-3.6
75 [list of supported A64 instructions](doc/aarch64/supported-instructions-aarch64.md).
77 The VIXL simulator was developed to run on 64-bit amd64 platforms. Whilst it
78 builds and mostly works for 32-bit x86 platforms, there are a number of
79 floating-point operations which do not work correctly, and a number of tests
82 VIXL may not build using Clang 3.7, due to a compiler warning. A workaround is
[all …]
/external/fmtlib/doc/
Dindex.rst4 **fmt** (formerly cppformat) is an open-source formatting library.
10 <div class="panel panel-default">
11 <div class="panel-heading">What users say:</div>
12 <div class="panel-body">
14 time. I’ve used both boost::format and loki::SPrintf, and neither felt
19 .. _format-api:
21 Format API
22 ----------
24 The replacement-based Format API provides a safe alternative to ``printf``,
26 <http://zverovich.net/2013/09/07/integer-to-string-conversion-in-cplusplus.html>`_.
[all …]
/external/clang/www/
Ddiagnostics.html1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
5 <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
6 <title>Clang - Expressive Diagnostics</title>
10 .loc { font-weight: bold; }
11 .err { color:red; font-weight: bold; }
12 .warn { color:magenta; font-weight: bold; }
13 .note { color:gray; font-weight: bold; }
14 .msg { font-weight: bold; }
15 .cmd { font-style: italic; }
17 .point { color:green; font-weight: bold; }
[all …]
/external/clang/unittests/Format/
DCleanupTest.cpp1 //===- unittest/Format/CleanupTest.cpp - Code cleanup unit tests ----------===//
8 //===----------------------------------------------------------------------===//
10 #include "clang/Format/Format.h"
13 #include "clang/Tooling/Core/Replacement.h"
17 namespace clang { namespace
18 namespace format { namespace
26 tooling::Replacements Replaces = format::cleanup(Style, Code, Ranges); in cleanup()
142 std::string Code = "void f() { std::vector<int> v = {1,2,,,3,{4,5}}; }"; in TEST_F()
143 std::string Expected = "void f() { std::vector<int> v = {1,2,3,{4,5}}; }"; in TEST_F()
149 Code = "int main() { f(1,,2,3,,4);}"; in TEST_F()
[all …]
/external/clang/lib/Analysis/
DObjCNoReturn.cpp1 //= ObjCNoReturn.cpp - Handling of Cocoa APIs known not to return --*- C++ -*---
8 //===----------------------------------------------------------------------===//
13 //===----------------------------------------------------------------------===//
15 #include "clang/AST/ASTContext.h"
16 #include "clang/AST/ExprObjC.h"
17 #include "clang/Analysis/DomainSpecific/ObjCNoReturn.h"
19 using namespace clang;
24 if (Class->getIdentifier() == II) in isSubclass()
26 return isSubclass(Class->getSuperClass(), II); in isSubclass()
34 SmallVector<IdentifierInfo*, 3> II; in ObjCNoReturn()
[all …]
/external/llvm/docs/
DCoverageMappingFormat.rst1 .. role:: raw-html(raw)
2 :format: html
5 LLVM Code Coverage Mapping Format
14 LLVM's code coverage mapping format is used to provide code coverage
15 analysis using LLVM's and Clang's instrumenation based profiling
16 (Clang's ``-fprofile-instr-generate`` option).
20 to know how it works under the hood. A prior knowledge of how Clang's profile
23 We start by showing how to use LLVM and Clang for code coverage analysis,
24 then we briefly desribe LLVM's code coverage mapping format and the
25 way that Clang and LLVM's code coverage tool work with this format. After
[all …]
DLibFuzzer.rst2 libFuzzer – a library for coverage-guided fuzz testing.
11 LibFuzzer is a library for in-process, coverage-guided, evolutionary fuzzing
15 all of its fuzzing inside a single process. This in-process fuzzing can be more
17 for process start-up.
32 version of Clang is the only supported variant.
34 (If `building Clang from trunk`_ is too time-consuming or difficult, then
35 the Clang binaries that the Chromium developers build are likely to be
38 .. code-block:: console
42 git clone https://chromium.googlesource.com/chromium/src/tools/clang
44 TMP_CLANG/clang/scripts/update.py
[all …]
/external/libvpx/libvpx/vpx_dsp/
Dsad.c4 * Use of this source code is governed by a BSD-style license
26 for (x = 0; x < width; x++) sad += abs(a[x] - b[x]); in sad()
48 // de-dup with 4D below.
70 /* clang-format off */
73 sadMxNxK(64, 64, 3)
87 sadMxNxK(32, 32, 3)
101 sadMxNxK(16, 16, 3)
107 sadMxNxK(16, 8, 3)
113 sadMxNxK(8, 16, 3)
119 sadMxNxK(8, 8, 3)
[all …]
/external/clang/lib/Basic/
DBuiltins.cpp1 //===--- Builtins.cpp - Builtin function implementation -------------------===//
8 //===----------------------------------------------------------------------===//
12 //===----------------------------------------------------------------------===//
14 #include "clang/Basic/Builtins.h"
15 #include "clang/Basic/IdentifierTable.h"
16 #include "clang/Basic/LangOptions.h"
17 #include "clang/Basic/TargetInfo.h"
19 using namespace clang;
29 #include "clang/Basic/Builtins.def"
35 assert(((ID - Builtin::FirstTSBuiltin) < in getRecord()
[all …]
/external/vixl/src/aarch64/
Dinstructions-aarch64.h30 #include "../globals-vixl.h"
31 #include "../utils-vixl.h"
33 #include "constants-aarch64.h"
37 // ISA constants. --------------------------------------------------------------
52 const unsigned kBRegSizeLog2 = 3;
54 const unsigned kBRegSizeInBytesLog2 = kBRegSizeLog2 - 3;
58 const unsigned kHRegSizeInBytesLog2 = kHRegSizeLog2 - 3;
62 const unsigned kWRegSizeInBytesLog2 = kWRegSizeLog2 - 3;
66 const unsigned kXRegSizeInBytesLog2 = kXRegSizeLog2 - 3;
70 const unsigned kSRegSizeInBytesLog2 = kSRegSizeLog2 - 3;
[all …]
/external/clang/tools/scan-build-py/libscanbuild/
Danalyze.py1 # -*- coding: utf-8 -*-
6 """ This module implements the 'scan-build' command API.
10 -- Intercept: capture the compilation command during the build,
11 -- Analyze: run the analyzer against the captured commands,
12 -- Report: create a cover report from the analyzer outputs. """
27 from libscanbuild.clang import get_checkers
32 COMPILER_WRAPPER_CC = 'analyze-cc'
33 COMPILER_WRAPPER_CXX = 'analyze-c++'
38 """ Entry point for 'analyze-build' and 'scan-build'. """
88 To run `scan-build` against the configure step might be neccessary,
[all …]
/external/clang/utils/check_cfc/
Dcheck_cfc.py3 """Check CFC - Check Compile Flow Consistency
10 -Ensure that the compiler under test (i.e. clang, clang++) is on the PATH
11 -On Linux copy this script to the name of the compiler
12 e.g. cp check_cfc.py clang && cp check_cfc.py clang++
13 -On Windows use setup.py to generate check_cfc.exe and copy that to clang.exe
14 and clang++.exe
15 -Enable the desired checks in check_cfc.cfg (in the same directory as the
22 -The wrapper can be run using its absolute path or added to PATH before the
25 -Compile as normal. The wrapper intercepts normal -c compiles and will return
26 non-zero if the check fails.
[all …]

12345678910>>...17