llvm-project/clang/lib/Format
Richard Smith e301ba2b48 Add support for GCC's '__auto_type' extension, per the GCC manual:
https://gcc.gnu.org/onlinedocs/gcc/Typeof.html

Differences from the GCC extension:
 * __auto_type is also permitted in C++ (but only in places where
   it could appear in C), allowing its use in headers that might
   be shared across C and C++, or used from C++98
 * __auto_type can be combined with a declarator, as with C++ auto
   (for instance, "__auto_type *p")
 * multiple variables can be declared in a single __auto_type
   declaration, with the C++ semantics (the deduced type must be
   the same in each case)

This patch also adds a missing restriction on applying typeof to
a bit-field, which GCC has historically rejected in C (due to
lack of clarity as to whether the operand should be promoted).
The same restriction also applies to __auto_type in C (in both
GCC and Clang).

This also fixes PR25449.

Patch by Nicholas Allegra!

llvm-svn: 252690
2015-11-11 02:02:15 +00:00
..
BreakableToken.cpp clang-format: clang-format (NFC) 2015-06-17 13:08:06 +00:00
BreakableToken.h Roll-back r250822. 2015-10-20 13:23:58 +00:00
CMakeLists.txt clang-format: Factor out UnwrappedLineFormatter into a separate file. 2014-12-10 19:00:42 +00:00
ContinuationIndenter.cpp clang-format: Undo unwanted format change done in r251405. 2015-10-27 13:42:08 +00:00
ContinuationIndenter.h [clang-format] Use in-class initializers to simplify constructor. 2015-06-12 14:39:08 +00:00
Encoding.h clang-format: Fix crasher when a UTF8 character is found in an escape 2015-07-20 23:28:07 +00:00
Format.cpp clang-format: Turn on wrapping before "else" for WebKit style. 2015-11-04 22:49:32 +00:00
FormatToken.cpp clang-format: Add an additional value to AlignAfterOpenBracket: AlwaysBreak. 2015-10-27 12:38:37 +00:00
FormatToken.h clang-format: Undo unwanted format change done in r251405. 2015-10-27 13:42:08 +00:00
Makefile
TokenAnnotator.cpp Add support for GCC's '__auto_type' extension, per the GCC manual: 2015-11-11 02:02:15 +00:00
TokenAnnotator.h clang-format: NFC. Add a function to test whether an annotated line 2015-06-17 09:43:56 +00:00
UnwrappedLineFormatter.cpp clang-format: Simplify and improve stop condition for formatting 2015-11-02 20:02:49 +00:00
UnwrappedLineFormatter.h clang-format: clang-format (NFC) 2015-06-17 13:08:06 +00:00
UnwrappedLineParser.cpp Format: support inline namespaces 2015-10-30 05:07:56 +00:00
UnwrappedLineParser.h Roll-back r250822. 2015-10-20 13:23:58 +00:00
WhitespaceManager.cpp [clang-format] Stop alignment sequences on open braces and parens when 2015-10-07 15:03:26 +00:00
WhitespaceManager.h SourceRanges are small and trivially copyable, don't them by reference. 2015-10-04 04:53:55 +00:00