mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-12 04:43:48 +00:00
![Krasimir Georgiev](/assets/img/avatar_default.png)
Summary: This patch adds a NamespaceEndCommentsFixer TokenAnalyzer for clang-format, which fixes end namespace comments. It currently supports inserting and updating existing wrong comments. Example source: ``` namespace A { int i; } namespace B { int j; } // namespace A ``` after formatting: ``` namespace A { int i; } // namespace A namespace B { int j; } // namespace B ``` Reviewers: klimek, djasper Reviewed By: djasper Subscribers: klimek, mgorny Differential Revision: https://reviews.llvm.org/D30269 llvm-svn: 296341
26 lines
443 B
CMake
26 lines
443 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
Support
|
|
)
|
|
|
|
add_clang_unittest(FormatTests
|
|
CleanupTest.cpp
|
|
FormatTest.cpp
|
|
FormatTestComments.cpp
|
|
FormatTestJS.cpp
|
|
FormatTestJava.cpp
|
|
FormatTestObjC.cpp
|
|
FormatTestProto.cpp
|
|
FormatTestSelective.cpp
|
|
NamespaceEndCommentsFixerTest.cpp
|
|
SortImportsTestJS.cpp
|
|
SortIncludesTest.cpp
|
|
)
|
|
|
|
target_link_libraries(FormatTests
|
|
clangBasic
|
|
clangFormat
|
|
clangFrontend
|
|
clangRewrite
|
|
clangToolingCore
|
|
)
|