Lines Matching +refs:clang +refs:format +refs:style
80 ``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**
211 **"select" format**
218 This format specifier is used to merge multiple related diagnostics together
221 gets an integer argument and the format string selects the numbered option.
229 **"plural" format**
260 **"ordinal" format**
272 **"objcclass" format**
283 **"objcinstance" format**
294 **"q" format**
304 **"diff" format**
317 It is really easy to add format specifiers to the Clang diagnostics system, but
322 **"sub" format**
342 This format specifier is used to avoid repeating strings verbatim in multiple
346 substituted text must itself be a valid format string before substitution.
381 picking a suitable wording, and providing the information needed to format it
496 replaces the format string for the diagnostic.
560 The clang Driver and library are documented :doc:`here <DriverInternals>`.
567 `LLVM bitstream format <https://llvm.org/docs/BitCodeFormat.html>`_.
589 the driver options in ``clang/Driver/Options.td``. The information making up an
634 ``clang/include/clang/Driver/Options.td``. This is done by instantiating the
661 the user requests help (e.g. via ``clang --help``).
744 ``clang -fpass-plugin=a -fpass-plugin=b`` and use the new member variable as
809 // clang/lib/Frontend/CompilerInvoation.cpp
824 #include "clang/Driver/Options.inc"
843 #include "clang/Driver/Options.inc"
1881 In presence of errors, clang uses a few error-recovery strategies to present the
1884 - correcting errors: in cases where clang is confident about the fix, it
1896 With these strategies, clang surfaces better diagnostics, and provides AST
1979 is resolved. Among other things, this means that clang doesn't emit more errors
2071 ASTImporter, e.g. the ``clang::Sema`` class uses it also.
2787 <//clang.llvm.org/docs/AttributeReference.html>`_.
2796 can take, such as GNU, C++11, and Microsoft style attributes, as well as other
2818 derived from ``clang::Attr``, information for the parser to use, automated
2822 ``include/clang/Basic/Attr.td``
2825 `include/clang/Basic/Attr.td
2826 <https://github.com/llvm/llvm-project/blob/main/clang/include/clang/Basic/Attr.td>`_.
2839 supported by another vendor but not supported by clang.
2859 ``GNU`` Spelled with a GNU-style ``__attribute__((attr))`` syntax and
2861 ``CXX11`` Spelled with a C++-style ``[[attr]]`` syntax with an optional
2863 ``C2x`` Spelled with a C-style ``[[attr]]`` syntax with an optional
2865 ``Declspec`` Spelled with a Microsoft-style ``__declspec(attr)`` syntax.
2868 ``GCC`` Specifies two or three spellings: the first is a GNU-style
2869 spelling, the second is a C++-style spelling with the ``gnu``
2870 namespace, and the third is an optional C-style spelling with
2873 ``Clang`` Specifies two or three spellings: the first is a GNU-style
2874 spelling, the second is a C++-style spelling with the ``clang``
2875 namespace, and the third is an optional C-style spelling with
2876 the ``clang`` namespace. By default, a C-style spelling is
2880 be used by Clang, it should set the namespace to ``"clang"``.
2896 <https://github.com/llvm/llvm-project/blob/main/clang/utils/TableGen/ClangAttrEmitter.cpp>`_
2917 stand-alone definition in `include/clang/Basic/AttrDocs.td
2918 <https://github.com/llvm/llvm-project/blob/main/clang/include/clang/Basic/AttrDocs.td>`_
2946 Local testing requires a fresh build of clang-tblgen. To generate the attribute
2949 …clang-tblgen -gen-attr-docs -I /path/to/clang/include /path/to/clang/include/clang/Basic/Attr.td -…
2969 <https://github.com/llvm/llvm-project/blob/main/clang/utils/TableGen/ClangAttrEmitter.cpp>`_
2981 <https://github.com/llvm/llvm-project/blob/main/clang/lib/Parse/ParseDecl.cpp>`_
3054 <https://github.com/llvm/llvm-project/blob/main/clang/lib/Sema/SemaDeclAttr.cpp>`_,
3068 `include/clang/Basic/DiagnosticGroups.td
3069 <https://github.com/llvm/llvm-project/blob/main/clang/include/clang/Basic/DiagnosticGroups.td>`_
3073 <https://github.com/llvm/llvm-project/blob/main/clang/include/clang/Basic/DiagnosticSemaKinds.td>`_
3087 The ``clang::Decl`` object can be queried for the presence or absence of an
3091 The ``clang::AttributedStmt`` object can be queried for the presence or absence
3189 * Inspect the generated AST by printing it using ``clang -cc1 -ast-print``,
3192 * Inspect the generated AST under ``clang -cc1 -ast-dump`` to verify that
3210 ``ConvertTypeForMem`` that convert Clang's types (``clang::Type*`` or
3211 ``clang::QualType``) to LLVM types. Use the former for values, and the
3227 * Testing is extremely important in IR generation. Use ``clang -cc1