Home
last modified time | relevance | path

Searched +refs:clang +refs:format +refs:style (Results 1 – 25 of 46) sorted by relevance

12

/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.
18 $ clang-format -help
19 OVERVIEW: A tool to format C/C++/Java/JavaScript/Objective-C/Protobuf code.
27 USAGE: clang-format [options] [<file> ...]
31 Clang-format options:
33 -assume-filename=<string> - When reading from stdin, clang-format assumes this
34 filename to look for a style config file (with
35 -style=file) and to determine the language.
37 clang-format from an editor integration
[all …]
DClangFormatStyleOptions.rst5 :doc:`ClangFormatStyleOptions` describes configurable formatting 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
11 custom style by configuring specific style options.
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
[all …]
DLibFormat.rst7 as some basic style discussions.
9 If you just want to use `clang-format` as a tool or integrated into an editor,
31 formatting. A list of options can be found under :ref:`style-options`.
39 The style options describe specific formatting options that can be used in
40 order to make `ClangFormat` comply with different style guides. Currently,
41 two style guides are hard-coded:
45 /// \brief Returns a format style complying with the LLVM coding standards:
49 /// \brief Returns a format style complying with Google's C++ style guide:
54 through the `-style` option.
DClangTools.rst21 - ``cd llvm/tools/clang/tools``
22 - ``svn co http://llvm.org/svn/llvm-project/clang-tools-extra/trunk extra``
26 - ``cd llvm/tools/clang/tools``
27 - ``git clone http://llvm.org/git/clang-tools-extra.git extra``
50 common refactoring and rewriting toolkit-style library is also part of
73 ``clang-check``
81 fixit-hints offered by clang. See :doc:`HowToSetupToolingForLLVM` for
82 instructions on how to setup and used `clang-check`.
84 ``clang-format``
87 Clang-format is both a :doc:`library <LibFormat>` and a :doc:`stand-alone tool
[all …]
DTooling.rst7 the different ways to write clang tools, and their pros and cons.
12 `LibClang <http://clang.llvm.org/doxygen/group__CINDEX.html>`_ is a stable high
13 level C interface to clang. When in doubt LibClang is probably the interface
24 * want to interface with clang from other languages than C++
43 * special lint-style warnings or errors for your project
64 tools, as well as integrating into services that run clang tools. Canonical
92 * Syntax checking (:program:`clang-check`)
93 * Automatic fixing of compile errors (:program:`clang-fixit`)
94 * Automatic code formatting (:program:`clang-format`)
DUsersManual.rst16 `Clang Web Site <http://clang.llvm.org>`_ or the `LLVM Web
23 `Clang Static Analyzer <http://clang-analyzer.llvm.org>`_, please see its web
47 Clang also provides an alternative driver, :ref:`clang-cl`, that is designed
154 output format of the diagnostics that it generates.
225 …<b><span style="color:black">test.c:28:8: <span style="color:magenta">warning</span>: extra tokens…
227 <span style="color:green">^</span>
228 <span style="color:green">//</span>
245 .. option:: -fdiagnostics-format=clang/msvc/vi
247 Changes diagnostic output format to better match IDEs and command line tools.
249 This option controls the output format of the filename, line number,
[all …]
DInternalsManual.rst80 ``clang/Basic/Diagnostic*Kinds.td`` files, depending on what library will be
82 diagnostic, the severity of the diagnostic and the English translation + format
129 The format string for the diagnostic is very simple, but it has some power. It
132 some simple format strings:
137 "format string contains '\\0' within the string body"
143 These examples show some important points of format strings. You can use any
156 order as they are specified, you could have a format string with "``%1 %0``"
161 Here are some "best practices" for writing the English format string:
182 including variable names, types, labels, etc. The "``select``" format can be
198 **"s" format**
[all …]
Ddoxygen.cfg.in10 # The format is:
35 PROJECT_NAME = clang
64 # directories (in 2 levels) under the output directory of each output format and
166 # first line (until the first dot) of a Javadoc-style comment as the brief
167 # description. If set to NO, the Javadoc-style will behave just like regular Qt-
168 # style comments (thus requiring an explicit @brief command for a brief
175 # line (until the first dot) of a Qt-style comment as the brief description. If
176 # set to NO, the Qt-style will behave just like regular Qt-style comments (thus
262 # using this tag. The format is ext=language, where ext is a file extension, and
276 # according to the Markdown format, which allows for more readable
[all …]
/external/vulkan-validation-layers/
DCONTRIBUTING.md32 * Try to follow any existing style in the file. "When in Rome..."
33 * Run clang-format on your changes to maintain formatting.
34 * There are `.clang-format files` throughout the repository to define clang-format settings
35 which are found and used automatically by clang-format.
40 > $ clang-format -style=file -i < list of changed code files >
41 > # Check to see if clang-format made any changes and if they are OK.
84 any new files need to have the Khronos license (MIT style) and copyright included.
/external/libweave/
D.clang-format3 # Usage: git clang-format -f m/master --style=file
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/
Disac_test.gypi3 # Use of this source code is governed by a BSD-style license
29 ['OS=="win" and clang==1', {
35 '-Wno-format',
/external/llvm/docs/
DCoverageMappingFormat.rst2 :format: html
14 LLVM's code coverage mapping format is used to provide code coverage
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
26 the basics are down, more advanced features of the coverage mapping format
40 ``clang -o test -fprofile-instr-generate -fcoverage-mapping test.c``
56 LLVM's code coverage mapping format is designed to be a self contained
57 data format, that can be embedded into the LLVM IR and object files.
58 It's described in this document as a **mapping** format because its goal is
65 1. When clang compiles a source file with ``-fcoverage-mapping``, it
[all …]
/external/llvm/docs/HistoricalNotes/
D2007-OriginalClangReadme.txt8 clang: noun
70 clang - An example driver, client of the libraries at various levels.
88 family must be correctly supported (trigraphs, preprocessor arcana, K&R-style
92 II. Usage of clang driver:
95 - Help: clang --help
127 For more information on getting Graphviz to work with clang/LLVM,
133 * Column numbers are fully tracked (no 256 col limit, no GCC-style pruning).
136 * Full diagnostic customization by client (can format diagnostics however they
/external/clang/include/clang/Basic/
DDiagnosticGroups.td19 // Empty DiagGroups are recognized by clang but ignored.
129 def FormatExtraArgs : DiagGroup<"format-extra-args">;
130 def FormatZeroLength : DiagGroup<"format-zero-length">;
248 def : DiagGroup<"missing-format-attribute">;
279 def OldStyleCast : DiagGroup<"old-style-cast">;
280 def : DiagGroup<"old-style-definition">;
396 def ObjCCStringFormat : DiagGroup<"cstring-format-directive">;
488 def VectorConversion : DiagGroup<"vector-conversion">; // clang specific
584 def FormatInvalidSpecifier : DiagGroup<"format-invalid-specifier">;
585 def FormatSecurity : DiagGroup<"format-security">;
[all …]
DAttrDocs.td13 NOTE: This file is automatically generated by running clang-tblgen
124 …let Heading = "assert_capability (assert_shared_capability, clang::assert_capability, clang::asser…
133 …let Heading = "acquire_capability (acquire_shared_capability, clang::acquire_capability, clang::ac…
141 …= "try_acquire_capability (try_acquire_shared_capability, clang::try_acquire_capability, clang::tr…
152 …let Heading = "release_capability (release_shared_capability, clang::release_capability, clang::re…
186 a future version of clang. Also, the ABI is not standardized and the name
276 instruct clang to call ``__builtin_object_size(param, Type)`` at each callsite
489 // void nodupfunc() [[clang::noduplicate]];
729 The ``clang::fallthrough`` attribute is used along with the
752 [[clang::fallthrough]];
[all …]
/external/webrtc/talk/build/
Dcommon.gypi35 # flood of chromium-style warnings.
78 '-Wno-format',
81 ['clang==1', {
/external/tcpdump/
Daclocal.m481 dnl that defines __GNUC__, which means clang, for example, counts as "gcc".
121 # This is assumed either to be GCC or clang, both
132 # +We, and doesn't handle GCC-style -W flags, so we
133 # don't want to try using GCC-style -W flags.
143 # so, and doesn't handle GCC-style -W flags, so we
144 # don't want to try using GCC-style -W flags.
179 # so, and doesn't handle GCC-style -W flags, so we
180 # don't want to try using GCC-style -W flags.
247 dnl Makefile-style dependency lines
286 # MIPS C for IRIX, DEC C, and clang all use -M.
[all …]
/external/google-breakpad/src/client/mac/sender/
Dcrash_report_sender.m131 // Resizes to fit the label using IB-style size-to-fit metrics and enforcing a
558 // Local variable to pacify clang's -Wformat-extra-args.
559 NSString* format = NSLocalizedString(@"noCrashDialogHeader", @"");
560 return [NSString stringWithFormat:format, displayName];
562 // Local variable to pacify clang's -Wformat-extra-args.
563 NSString* format = NSLocalizedString(@"crashDialogHeader", @"");
564 return [NSString stringWithFormat:format, displayName];
579 // Local variable to pacify clang's -Wformat-extra-args.
580 NSString* format = NSLocalizedString(@"noCrashDialogMsg", @"");
581 return [NSString stringWithFormat:format, vendor, displayName];
[all …]
/external/libpcap/
Daclocal.m481 dnl that defines __GNUC__, which means clang, for example, counts as "gcc".
113 # This is assumed either to be GCC or clang, both
124 # +We, and doesn't handle GCC-style -W flags, so we
125 # don't want to try using GCC-style -W flags.
135 # so, and doesn't handle GCC-style -W flags, so we
136 # don't want to try using GCC-style -W flags.
171 # so, and doesn't handle GCC-style -W flags, so we
172 # don't want to try using GCC-style -W flags.
231 # We're assuming this is clang, where
269 dnl Makefile-style dependency lines
[all …]
/external/clang/docs/CommandGuide/
Dclang.rst1 clang - the Clang C, C++, and Objective-C compiler
7 :program:`clang` [*options*] *filename ...*
12 :program:`clang` is a C, C++, and Objective-C compiler which encompasses
20 The clang executable is actually a small driver which controls the overall
63 the same driver. Please see <http://clang-analyzer.llvm.org> for more details
138 Enable support for Pascal-style strings with "\\pfoo".
263 types defined in clang modules or precompiled headers instead of
265 This option implies `-fmodule-format=obj`.
315 assembly files, otherwise this generates LLVM bitcode format object files
450 Do not search clang's builtin directory for include files.
/external/llvm/docs/CommandGuide/
Dllvm-cov.rst14 work with ``gcov``\-style coverage or with ``clang``\'s instrumentation
180 ``clang`` use the ``-fprofile-instr-generate`` and ``-fcoverage-mapping``
181 flags. If linking with the ``clang`` driver, pass ``-fprofile-instr-generate``
188 typically called ``default.profraw``, which can be converted to a format that
/external/clang/include/clang/Driver/
DCC1Options.td1 //===--- CC1Options.td - Options for clang -cc1 ---------------------------===//
10 // This file defines the options accepted by clang -cc1 and clang -cc1as.
170 HelpText<"Emit newer GNU style pubnames">;
174 HelpText<"Generate debug info with external references to clang modules"
281 HelpText<"Print cl.exe style /showIncludes to stdout">;
291 HelpText<"File for serializing diagnostics in a binary format">;
293 def fdiagnostics_format : Separate<["-"], "fdiagnostics-format">,
392 def fmodule_format_EQ : Joined<["-"], "fmodule-format=">,
393 HelpText<"Select the container format for clang modules and PCH. "
505 HelpText<"Use SjLj style exceptions">;
/external/bison/
DChangeLog92 Adjust with style changes in the output (State 0, not state 0).
597 because "clang-mp-2.9 -o test -g test.c" launches "/usr/bin/dsymutil
838 doc: minor style change
978 NEWS: warnings with clang
979 warnings: avoid warnings from clang
982 skeletons: style changes
1019 NEWS: warnings with clang
1024 warnings: avoid warnings from clang
1056 This is Apple clang version 3.1 (tags/Apple/clang-318.0.61).
1062 * data/glr.c (LONGJMP): abort after longjmp to pacify clang.
[all …]
/external/parameter-framework/upstream/doc/
DDoxyfile.in10 # The format is:
64 # directories (in 2 levels) under the output directory of each output format and
174 # first line (until the first dot) of a Javadoc-style comment as the brief
175 # description. If set to NO, the Javadoc-style will behave just like regular Qt-
176 # style comments (thus requiring an explicit @brief command for a brief
183 # line (until the first dot) of a Qt-style comment as the brief description. If
184 # set to NO, the Qt-style will behave just like regular Qt-style comments (thus
270 # using this tag. The format is ext=language, where ext is a file extension, and
272 # C#, C, C++, D, PHP, Objective-C, Python, Fortran (fixed format Fortran:
287 # according to the Markdown format, which allows for more readable
[all …]
/external/curl/m4/
Dcurl-compilers.m478 dnl Verify if compiler being used is clang.
82 AC_MSG_CHECKING([if compiler is clang])
560 dnl Disable warnings for unused arguments, otherwise clang will
870 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
877 dnl Only clang 1.1 or later
944 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
978 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
988 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
1369 dnl All versions of clang support -fvisibility=

12