llvm-project/clang/unittests
Krystian Kuzniarek 6ca52815fb [clang-format][PR47290] Add ShortNamespaceLines format option
clang-format documentation states that having enabled
FixNamespaceComments one may expect below code:

c++
namespace a {
foo();
}

to be turned into:

c++
namespace a {
foo();
} // namespace a

In reality, no "// namespace a" was added. The problem was too high
value of kShortNamespaceMaxLines, which is used while deciding whether
a namespace is long enough to be formatted.

As with 9163fe2, clang-format idempotence is preserved.

Differential Revision: https://reviews.llvm.org/D87587
2021-03-01 21:28:14 +01:00
..
AST [clang][DeclPrinter] Pass Context into StmtPrinter whenever possible 2021-02-23 09:42:19 +01:00
ASTMatchers Revert "Revert "Revert "Implement nullPointerConstant() using a better API.""" 2021-02-22 14:37:03 +01:00
Analysis [analyzer] Introduce MacroExpansionContext to libAnalysis 2021-02-22 11:11:57 +01:00
Basic [clang][cli] Generate and round-trip language options 2021-02-09 10:18:55 +01:00
CodeGen Reland "Move the test compiler setup in a common place. NFCI" 2020-11-16 13:22:10 +00:00
CrossTU [analyzer][CTU] API for CTU macro expansions 2021-02-22 11:12:22 +01:00
DirectoryWatcher Revert "DirectoryWatcher: add an implementation for Windows" 2020-10-13 12:35:22 -07:00
Driver [Driver] Add callback to Command execution 2020-11-05 12:21:40 +07:00
Format [clang-format][PR47290] Add ShortNamespaceLines format option 2021-03-01 21:28:14 +01:00
Frontend [clang][cli] Add explicit round-trip test 2021-02-16 14:56:26 +01:00
Index [clang] Do not consider the template arguments of bases to be bases themselves 2020-09-01 19:18:03 -04:00
Lex [clang] Make sure argument expansion locations are correct in presence of predefined buffer 2020-04-22 21:01:52 +02:00
Rename [OpenMP] "UnFix" layering problem with FrontendOpenMP 2020-04-07 14:41:18 -05:00
Rewrite [Rewrite][NFC] Add FIXMEs and tests for RemoveLineIfEmpty bug 2019-08-15 21:17:48 +00:00
Sema [clang][CodeComplete] Fix crash on ParenListExprs 2021-02-08 13:16:49 +01:00
Serialization Revert "[modules] Do not cache invalid state for modules that we attempted to load." 2020-03-10 10:59:26 -07:00
StaticAnalyzer [Analyzer] Fix for `ExprEngine::computeObjectUnderConstruction()` for base and delegating consturctor initializers 2020-09-25 13:28:22 +02:00
Tooling [clangd] Use flags from open files when opening headers they include 2021-03-01 09:43:59 +01:00
libclang [libclang] Add CXRewriter to libclang API 2020-09-04 14:17:03 -07:00
CMakeLists.txt clang: Build and run FrontendTests with CLANG_ENABLE_STATIC_ANALYZER=OFF too 2020-12-23 14:27:09 -05:00