• Home
  • Raw
  • Download

Lines Matching +refs:clang +refs:format +refs:binary

62   t.c:38:15: error: invalid operands to binary expression ('int *' and '_Complex float')
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:
136 "binary integer literals are an extension"
137 "format string contains '\\0' within the string body"
139 "invalid operands to binary expression (%0 and %1)"
140 "overloaded '%0' must be a %select{unary|binary|unary or binary}2 operator"
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**
214 ``"must be a %select{unary|binary|unary or binary}2 operator"``
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.
223 it is 0, it prints "unary", if it is 1 it prints "binary" if it is 2, it
224 prints "unary or binary". This allows other language translations to
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
333 For example, the binary expression error comes from code like this:
355 picking a suitable wording, and providing the information needed to format it
467 replaces the format string for the diagnostic.
531 The clang Driver and library are documented :doc:`here <DriverInternals>`.
539 `LLVM bitstream format <http://llvm.org/docs/BitCodeFormat.html>`_.
1597 Attributes in clang come in two forms: parsed form, and semantic form. Both
1602 ``include/clang/Basic/Attr.td``
1605 First, add your attribute to the `include/clang/Basic/Attr.td
1606 <http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/Attr.td?view=markup>`_
1619 supported by another vendor, but not supported by clang.
1642 found in `include/clang/Sema/AttributeList.h
1643 <http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/AttributeList.h?view=markup>`_
1735 is a stand-alone definition in `include/clang/Basic/AttrDocs.td
1736 <http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/AttdDocs.td?view=markup>`_
1761 `include/clang/Basic/DiagnosticGroups.td
1762 <http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticGroups.td?view=markup>…
1766 <http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?view=mark…
1874 * Inspect the generated AST by printing it using ``clang -cc1 -ast-print``,
1877 * Inspect the generated AST under ``clang -cc1 -ast-dump`` to verify that
1895 ``ConvertTypeForMem`` that convert Clang's types (``clang::Type*`` or
1896 ``clang::QualType``) to LLVM types. Use the former for values, and the
1912 * Testing is extremely important in IR generation. Use ``clang -cc1