llvm-project/clang/unittests
Emilia Dreamer 1fa115b569
[clang-format] Correctly indent closing brace of compound requires
When a compound requirement is too long to fit onto a single line, the
braces are split apart onto separate lines, and the contained expression
is indented. However, this indentation would also apply to the closing
brace and the trailing return type requirement thereof.
This was because the indentation level was being restored after all
trailing things were already read

With this change, the initial level of the opening brace is set before
attempting to read any trailing return type requirements

Fixes https://github.com/llvm/llvm-project/issues/57108

Reviewed By: HazardyKnusperkeks, owenpan, MyDeveloperDay

Differential Revision: https://reviews.llvm.org/D134626
2022-10-01 08:16:57 +03:00
..
AST [clang] initialize type qualifiers for FunctionNoProtoType 2022-09-26 09:48:54 -07:00
ASTMatchers Revert "[clang] Pass FoundDecl to DeclRefExpr creator for operator overloads" 2022-08-04 12:14:43 +02:00
Analysis [clang][dataflow] Add support for nested method calls. 2022-09-22 19:16:31 +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] Correctly indent closing brace of compound requires 2022-10-01 08:16:57 +03: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] Fix missing template arguments in AST of access to member variable template 2022-09-21 00:46:18 +02: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