llvm-project/clang/lib
Martin Probst 384232766b clang-format: [JS] Correctly Indent Nested JavaScript Literals.
Nested literals are sometimes only indented by 2 spaces, instead of
respecting the IndentWidth option.
There are existing unit tests (FormatTestJS.ArrayLiterals) that only
pass because the style used to test them uses an IndentWidth of 2.
This change removes the magic 2 and always uses the IndentWidth.
I've added 6 tests. The first 4 of these tests fail before this change,
while the last 2 already pass, but were added just to make sure it the
change works with all types of braces.

Patch originally by Jared Neil, thanks!

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

llvm-svn: 304791
2017-06-06 12:38:29 +00:00
..
ARCMigrate Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. 2017-06-03 06:23:19 +00:00
AST [OpenCL] Fix pipe size in TypeInfo. 2017-06-05 11:27:03 +00:00
ASTMatchers Add cxxStdInitializerListExpr AST matcher 2017-05-05 21:01:12 +00:00
Analysis Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. 2017-06-03 06:23:51 +00:00
Basic [ARM] Add support for target("arm") and target("thumb"). 2017-06-06 09:26:15 +00:00
CodeGen Add support for #pragma clang section 2017-06-05 10:11:57 +00:00
Driver [Driver] Don't force .exe suffix for lld 2017-06-06 02:06:28 +00:00
Edit Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. 2017-06-03 06:30:08 +00:00
Format clang-format: [JS] Correctly Indent Nested JavaScript Literals. 2017-06-06 12:38:29 +00:00
Frontend Retain header search and preprocessing options from AST file when emitting 2017-06-06 00:32:01 +00:00
FrontendTool unique_ptrify createDriverOptTable 2017-01-13 17:34:15 +00:00
Headers [PPC] Make altivec conversion function macros. 2017-05-30 11:37:29 +00:00
Index [index] The references to explicit class properties should be recorded 2017-05-24 14:23:40 +00:00
Lex Factor out and unify emission of "module is unavailable" diagnostics. 2017-06-05 18:57:56 +00:00
Parse PR33318: Add missing full-expression checking to static_assert expression. 2017-06-06 01:34:24 +00:00
Rewrite Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. 2017-06-03 06:29:40 +00:00
Sema PR33318: Add missing full-expression checking to static_assert expression. 2017-06-06 01:34:24 +00:00
Serialization Retain header search and preprocessing options from AST file when emitting 2017-06-06 00:32:01 +00:00
StaticAnalyzer [analyzer] Don't add arrow to the inlined function's decl when it has no body. 2017-06-05 13:36:28 +00:00
Tooling Method loadFromCommandLine should be able to report errors 2017-05-24 11:57:37 +00:00
CMakeLists.txt