Lines Matching +refs:clang +refs:format +refs:replace
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
195 It is really easy to add format specifiers to the Clang diagnostics system, but
203 **"s" format**
217 ``mice``. You can use the "plural" format specifier to handle such situations.
219 **"select" format**
226 This format specifier is used to merge multiple related diagnostics together
229 gets an integer argument and the format string selects the numbered option.
237 **"plural" format**
268 **"ordinal" format**
280 **"objcclass" format**
291 **"objcinstance" format**
302 **"q" format**
312 **"diff" format**
325 **"sub" format**
345 This format specifier is used to avoid repeating strings verbatim in multiple
349 substituted text must itself be a valid format string before substitution.
384 picking a suitable wording, and providing the information needed to format it
499 replaces the format string for the diagnostic.
563 The clang Driver and library are documented :doc:`here <DriverInternals>`.
570 `LLVM bitstream format <https://llvm.org/docs/BitCodeFormat.html>`_.
592 the driver options in ``clang/Driver/Options.td``. The information making up an
637 ``clang/include/clang/Driver/Options.td``. This is done by instantiating the
664 the user requests help (e.g. via ``clang --help``).
747 ``clang -fpass-plugin=a -fpass-plugin=b`` and use the new member variable as
812 // clang/lib/Frontend/CompilerInvoation.cpp
827 #include "clang/Driver/Options.inc"
846 #include "clang/Driver/Options.inc"
1164 methods will maximally form the specified annotation tokens and replace the
1884 In presence of errors, clang uses a few error-recovery strategies to present the
1887 - correcting errors: in cases where clang is confident about the fix, it
1899 With these strategies, clang surfaces better diagnostics, and provides AST
1982 is resolved. Among other things, this means that clang doesn't emit more errors
2074 ASTImporter, e.g. the ``clang::Sema`` class uses it also.
2694 "``foo() || 1``" always evaluates to ``true``, but we can't replace the
2790 <//clang.llvm.org/docs/AttributeReference.html>`_.
2821 derived from ``clang::Attr``, information for the parser to use, automated
2825 ``include/clang/Basic/Attr.td``
2828 `include/clang/Basic/Attr.td
2829 <https://github.com/llvm/llvm-project/blob/main/clang/include/clang/Basic/Attr.td>`_.
2842 supported by another vendor but not supported by clang.
2877 spelling, the second is a C++-style spelling with the ``clang``
2879 the ``clang`` namespace. By default, a C-style spelling is
2883 be used by Clang, it should set the namespace to ``"clang"``.
2899 <https://github.com/llvm/llvm-project/blob/main/clang/utils/TableGen/ClangAttrEmitter.cpp>`_
2920 stand-alone definition in `include/clang/Basic/AttrDocs.td
2921 <https://github.com/llvm/llvm-project/blob/main/clang/include/clang/Basic/AttrDocs.td>`_
2949 Local testing requires a fresh build of clang-tblgen. To generate the attribute
2952 …clang-tblgen -gen-attr-docs -I /path/to/clang/include /path/to/clang/include/clang/Basic/Attr.td -…
2972 <https://github.com/llvm/llvm-project/blob/main/clang/utils/TableGen/ClangAttrEmitter.cpp>`_
2984 <https://github.com/llvm/llvm-project/blob/main/clang/lib/Parse/ParseDecl.cpp>`_
3057 <https://github.com/llvm/llvm-project/blob/main/clang/lib/Sema/SemaDeclAttr.cpp>`_,
3071 `include/clang/Basic/DiagnosticGroups.td
3072 <https://github.com/llvm/llvm-project/blob/main/clang/include/clang/Basic/DiagnosticGroups.td>`_
3076 <https://github.com/llvm/llvm-project/blob/main/clang/include/clang/Basic/DiagnosticSemaKinds.td>`_
3090 The ``clang::Decl`` object can be queried for the presence or absence of an
3094 The ``clang::AttributedStmt`` object can be queried for the presence or absence
3192 * Inspect the generated AST by printing it using ``clang -cc1 -ast-print``,
3195 * Inspect the generated AST under ``clang -cc1 -ast-dump`` to verify that
3213 ``ConvertTypeForMem`` that convert Clang's types (``clang::Type*`` or
3214 ``clang::QualType``) to LLVM types. Use the former for values, and the
3230 * Testing is extremely important in IR generation. Use ``clang -cc1