llvm-project/clang/unittests
mydeveloperday 95b3947111 [clang-format] JSON formatting add new option for controlling newlines in json arrays
Working in a mixed environment of both vscode/vim with a team configured prettier configuration, this can leave clang-format and prettier fighting each other over the formatting of arrays, both simple arrays of elements.

This review aims to add some "control knobs" to the Json formatting in clang-format to help align the two tools so they can be used interchangeably.

This will allow simply arrays `[1, 2, 3]` to remain on a single line but will break those arrays based on context within that array.

Happy to change the name of the option (this is the third name I tried)

Reviewed By: HazardyKnusperkeks, owenpan

Differential Revision: https://reviews.llvm.org/D133589
2022-09-19 17:54:39 +01:00
..
AST [clang] Fix AST representation of expanded template arguments. 2022-09-17 01:24:46 +02:00
ASTMatchers Revert "[clang] Pass FoundDecl to DeclRefExpr creator for operator overloads" 2022-08-04 12:14:43 +02:00
Analysis Revert "[clang][dataflow] Replace `transfer(const Stmt *, ...)` with `transfer(const CFGElement *, ...)` in `Analysis/FlowSensitive/Models/UncheckedOptionalAccessModel`." 2022-09-16 18:07:35 +00:00
Basic Add support for specifying the severity of a SARIF Result 2022-08-19 07:14:50 -04:00
CodeGen [CGDebugInfo] Access the current working directory from the `VFS` 2022-07-26 13:48:39 -07:00
CrossTU [analyzer][ctu] Fix wrong 'multiple definitions' errors caused by space characters in lookup names when parsing the ctu index file 2022-03-22 10:28:42 +08:00
DirectoryWatcher [clang] Use value instead of getValue (NFC) 2022-07-13 23:39:33 -07:00
Driver [Clang] Use virtual FS in processing config files 2022-09-09 18:24:45 +07:00
Format [clang-format] JSON formatting add new option for controlling newlines in json arrays 2022-09-19 17:54:39 +01:00
Frontend Fix lack of cc1 flag in llvmcmd sections when assertions are enabled 2022-07-29 18:51:48 -07:00
Index [clang] Visit enum base specifiers in libIndex 2021-10-25 13:16:14 +02:00
Interpreter [clang-repl] Disable building when LLVM_STATIC_LINK_CXX_STDLIB is ON. 2022-07-31 05:42:57 +09:00
Introspection [clang] Implement ElaboratedType sugaring for types written bare 2022-07-27 11:10:54 +02:00
Lex [Lex/DependencyDirectivesScanner] Handle the case where the source line starts with a `tok::hashhash` 2022-09-13 15:48:50 -07:00
Rename Bump googletest to 1.10.0 2021-05-14 19:16:31 +02:00
Rewrite
Sema [NFC] Make MultiplexExternalSemaSource own sources 2022-09-02 13:57:39 -05:00
Serialization [Serialization] Add missing includes for CHAR_BIT 2022-05-19 10:04:25 +02:00
StaticAnalyzer [clang] Implement ElaboratedType sugaring for types written bare 2022-07-27 11:10:54 +02:00
Tooling [clang] Use std::size instead of llvm::array_lengthof 2022-09-08 17:20:25 -06:00
libclang Expose QualType::getNonReferenceType in libclang 2022-09-02 09:54:10 -04:00
CMakeLists.txt [clang-repl] Disable building when LLVM_STATIC_LINK_CXX_STDLIB is ON. 2022-07-31 05:42:57 +09:00