llvm-project/clang/lib
Krasimir Georgiev 6a1c9d51fa [clang-format] Fix regression about short functions after #else
Summary:
This patch fixes a regression introduced in r312904, where the formatter confuses
the `else` in `#else` with an `else` of an `if-else` statement.
For example, formatting this code with google style
```
#ifdef A
int f() {}
#else
int f() {}
#endif
```
resulted in
```
#ifdef A
int f() {}
#else
int f() {
}
#endif
```

Reviewers: sammccall

Reviewed By: sammccall

Subscribers: klimek, cfe-commits

Differential Revision: https://reviews.llvm.org/D37973

llvm-svn: 314683
2017-10-02 15:53:37 +00:00
..
ARCMigrate Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. 2017-06-03 06:23:19 +00:00
AST Dependent Address Space Support 2017-10-02 06:25:51 +00:00
ASTMatchers Add objcImplementationDecl matcher 2017-09-10 21:00:15 +00:00
Analysis [Analysis] Remove unused makeLvalueToRValue variant. 2017-09-30 21:49:15 +00:00
Basic [AMDGPU] Allow flexible register names in inline asm constraints 2017-09-28 19:07:59 +00:00
CodeGen [OPENMP] Simplify codegen for non-offloading code. 2017-10-02 14:20:58 +00:00
CrossTU Fix implicit-fallthrough warning by adding missing break 2017-09-24 15:17:46 +00:00
Driver [PS4] Tidy up some debug-tuning v. triple decision-making. 2017-09-29 21:25:07 +00:00
Edit [clang] Fix format specifiers fixits for nested macros 2017-06-20 20:46:58 +00:00
Format [clang-format] Fix regression about short functions after #else 2017-10-02 15:53:37 +00:00
Frontend [PS4] Tidy up some debug-tuning v. triple decision-making. 2017-09-29 21:25:07 +00:00
FrontendTool Update after LLVM change r309087 2017-07-26 09:10:17 +00:00
Headers [CUDA] Work around conflicting function definitions in CUDA-9 headers. 2017-09-27 19:07:15 +00:00
Index [index] Generate class & metaclass manglings for objc 2017-09-22 16:58:57 +00:00
Lex [NFC] Add assertion that we assume a valid macro argument index. 2017-09-30 19:34:27 +00:00
Parse [X86][MS-InlineAsm] Extended support for variables / identifiers on memory / immediate expressions 2017-09-29 07:02:49 +00:00
Rewrite [Analyzer] Add support for displaying cross-file diagnostic paths in HTML output 2017-08-03 18:12:22 +00:00
Sema Dependent Address Space Support 2017-10-02 06:25:51 +00:00
Serialization Dependent Address Space Support 2017-10-02 06:25:51 +00:00
StaticAnalyzer [analyzer] Match more patterns in bugreporter::getDerefExpr() API. 2017-09-27 09:50:45 +00:00
Tooling [refactor] Use CommonOptionsParser in clang-refactor 2017-09-14 13:16:14 +00:00
CMakeLists.txt Add Cross Translation Unit support library 2017-09-22 11:11:01 +00:00