diff options
author | Nico Weber <nicolasweber@gmx.de> | 2015-02-04 15:26:27 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2015-02-04 15:26:27 +0000 |
commit | fac2371be324d6a3aa0c9622f5147abbc707894e (patch) | |
tree | ab2798e1ac869f49f56ecef6739680977cc1eefd /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | e67d27f5ccebb22e238072afe0ea74bc3a7a653e (diff) | |
download | llvm-fac2371be324d6a3aa0c9622f5147abbc707894e.zip llvm-fac2371be324d6a3aa0c9622f5147abbc707894e.tar.gz llvm-fac2371be324d6a3aa0c9622f5147abbc707894e.tar.bz2 |
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
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions