llvm-project/clang/lib/Format
Saleem Abdulrasool d170c4b57a Add -f[no-]declspec to control recognition of __declspec as a keyword
In versions of clang prior to r238238, __declspec was recognized as a keyword in
all modes.  It was then changed to only be enabled when Microsoft or Borland
extensions were enabled (and for CUDA, as a temporary measure).  There is a
desire to support __declspec in Playstation code, and possibly other
environments.  This commit adds a command-line switch to allow explicit
enabling/disabling of the recognition of __declspec as a keyword.  Recognition
is enabled by default in Microsoft, Borland, CUDA, and PS4 environments, and
disabled in all other environments.

Patch by Warren Ristow!

llvm-svn: 249279
2015-10-04 17:51:05 +00:00
..
BreakableToken.cpp clang-format: clang-format (NFC) 2015-06-17 13:08:06 +00:00
BreakableToken.h Fix assertion in BreakableBlockComment (http://llvm.org/PR21916). 2015-01-12 13:11:12 +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: Don't let a leading "template <..>" lead to wrapped initializers. 2015-08-27 11:59:31 +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 Add -f[no-]declspec to control recognition of __declspec as a keyword 2015-10-04 17:51:05 +00:00
FormatToken.cpp clang-format: Add initial #include sorting capabilities. 2015-09-23 08:30:47 +00:00
FormatToken.h clang-format: [JS] handle let (ES6) 2015-09-28 14:28:08 +00:00
Makefile
TokenAnnotator.cpp clang-format: Add a new brace style "custom" as well as flags to 2015-09-29 14:57:55 +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: Add a new brace style "custom" as well as flags to 2015-09-29 14:57:55 +00:00
UnwrappedLineFormatter.h clang-format: clang-format (NFC) 2015-06-17 13:08:06 +00:00
UnwrappedLineParser.cpp clang-format: Add a new brace style "custom" as well as flags to 2015-09-29 14:57:55 +00:00
UnwrappedLineParser.h clang-format: NFC. Cleanup after r237895. 2015-05-31 08:51:54 +00:00
WhitespaceManager.cpp SourceRanges are small and trivially copyable, don't them by reference. 2015-10-04 04:53:55 +00:00
WhitespaceManager.h SourceRanges are small and trivially copyable, don't them by reference. 2015-10-04 04:53:55 +00:00