llvm-project/clang/lib
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
..
ARCMigrate Fix layering violation: include/clang/Basic/PlistSupport.h should not include 2015-01-28 20:14:54 +00:00
AST Generalize r228066 to give all implicit global allocation functions default visibility. 2015-02-04 02:34:32 +00:00
ASTMatchers Add voidType() matcher. 2014-12-15 15:09:22 +00:00
Analysis Thread Safety Analysis: add support for before/after annotations on mutexes. 2015-02-03 22:11:04 +00:00
Basic Teaches the Clang driver to accept Cortex-A72 2015-02-04 13:31:56 +00:00
CodeGen Preserve early clobber flag when using named registers in inline assembly. 2015-02-04 14:25:47 +00:00
Driver Teaches the Clang driver to accept Cortex-A72 2015-02-04 13:31:56 +00:00
Edit Edit: Do not extend a removal to include trailing whitespace if we're at the end 2014-09-15 11:47:10 +00:00
Format clang-format: Add support for SEH __try / __except / __finally blocks. 2015-02-04 15:26:27 +00:00
Frontend Add cc1 option '-fmodule-feature' to add custom values for 'requires' decls 2015-02-02 21:56:15 +00:00
FrontendTool Provide a BuryPointer for unique_ptrs. 2014-08-29 16:53:14 +00:00
Headers Headers: Don't use attribute keywords which aren't reserved 2015-02-04 00:26:10 +00:00
Index [libclang] Use same USR encoding for 'char' regardless of what the target considers the sign to be. 2014-12-08 09:09:05 +00:00
Lex Allow objc_bridge(id) to be used on typedefs of [cv] void*. 2015-02-01 22:34:06 +00:00
Parse Parse: Handle __declspec in a lambda definition 2015-02-04 08:22:46 +00:00
Rewrite Trim some includes. NFC. 2014-10-29 22:13:46 +00:00
Sema Sema: Add support for __declspec(restrict) 2015-02-04 07:23:21 +00:00
Serialization [modules] If we already have a fake definition for one declaration of a class, 2015-02-04 01:23:46 +00:00
StaticAnalyzer Fix layering violation: include/clang/Basic/PlistSupport.h should not include 2015-01-28 20:14:54 +00:00
Tooling Adopt new cl::HideUnrelatedOptions API added r226729. 2015-01-21 23:26:11 +00:00
CMakeLists.txt Fix build with various feature flag combinations 2014-07-14 22:17:22 +00:00
Makefile Make clang's rewrite engine a core feature 2014-07-16 16:48:33 +00:00