Lines Matching +refs:clang +refs:format +refs:buffer

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"
1010 preprocessor is capable of reading from: a buffer lexer (provided by the
1026 front-end periodically needs to buffer tokens up for tentative parsing and
1042 compiler. By pointing into the original source buffer, it is always possible
1171 buffer and deciding what they mean. The ``Lexer`` is complicated by the fact
1197 that are local to a lexed buffer, which change as the buffer is lexed:
1206 <MultipleIncludeOpt>` object, which is used to detect whether the buffer uses
1208 inclusion. If a buffer does, subsequent includes can be ignored if the
1219 tokens from an arbitrary buffer of tokens. The later use is used by
1231 buffer uses this idiom and is subsequently ``#include``'d, the preprocessor can
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>`_.
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.
2874 spelling, the second is a C++-style spelling with the ``clang``
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
2949clang-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