llvm-project/clang/lib/Format
Nico Weber fac2371be3 clang-format: Add support for SEH __try / __except / __finally blocks.
This lets clang-format format

    __try {
    } __except(0) {
    }

and

    __try {
    } __finally {
    }

correctly. __try and __finally are keywords if `LangOpts.MicrosoftExt` is set,
so this turns this on.  This also enables a few other keywords, but it
shouldn't overly perturb regular clang-format operation.  __except is a
context-sensitive keyword, so `AdditionalKeywords` needs to be passed around to
a few more places.

Fixes PR22321.

llvm-svn: 228148
2015-02-04 15:26:27 +00:00
..
BreakableToken.cpp clang-format: Fix crasher when splitting incomplete escape sequences. 2015-01-21 19:50:35 +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: Fix incorrect handling of leading whitespace. 2015-01-31 07:05:46 +00:00
ContinuationIndenter.h clang-format: Revamp nested block formatting. 2014-12-12 09:40:58 +00:00
Encoding.h Header guard canonicalization, clang part. 2014-08-13 16:25:19 +00:00
Format.cpp clang-format: Add support for SEH __try / __except / __finally blocks. 2015-02-04 15:26:27 +00:00
FormatToken.cpp clang-format: Fix crash on invalid code. 2015-01-19 10:51:42 +00:00
FormatToken.h clang-format: Add support for SEH __try / __except / __finally blocks. 2015-02-04 15:26:27 +00:00
Makefile
TokenAnnotator.cpp clang-format: Add support for SEH __try / __except / __finally blocks. 2015-02-04 15:26:27 +00:00
TokenAnnotator.h clang-format: Fix crasher caused by incorrect resetting of token info. 2015-01-21 18:35:47 +00:00
UnwrappedLineFormatter.cpp clang-format: Add support for SEH __try / __except / __finally blocks. 2015-02-04 15:26:27 +00:00
UnwrappedLineFormatter.h clang-format: Add support for SEH __try / __except / __finally blocks. 2015-02-04 15:26:27 +00:00
UnwrappedLineParser.cpp clang-format: Add support for SEH __try / __except / __finally blocks. 2015-02-04 15:26:27 +00:00
UnwrappedLineParser.h clang-format: [Java] Support Java enums. 2014-11-13 15:56:28 +00:00
WhitespaceManager.cpp clang-format: Fix crasher caused by not properly setting dry-run. 2015-01-29 10:47:14 +00:00
WhitespaceManager.h Header guard canonicalization, clang part. 2014-08-13 16:25:19 +00:00