mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-05 07:32:36 +00:00
e336b74c99
Summary: The MacroExpander allows to expand simple (non-resursive) macro definitions from a macro identifier token and macro arguments. It annotates the tokens with a newly introduced MacroContext that keeps track of the role a token played in expanding the macro in order to be able to reconstruct the macro expansion from an expanded (formatted) token stream. Made Token explicitly copy-able to enable copying tokens from the parsed macro definition. Reviewers: sammccall Subscribers: mgorny, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D83296
26 lines
509 B
CMake
26 lines
509 B
CMake
set(LLVM_LINK_COMPONENTS support)
|
|
|
|
add_clang_library(clangFormat
|
|
AffectedRangeManager.cpp
|
|
BreakableToken.cpp
|
|
ContinuationIndenter.cpp
|
|
Format.cpp
|
|
FormatToken.cpp
|
|
FormatTokenLexer.cpp
|
|
MacroExpander.cpp
|
|
NamespaceEndCommentsFixer.cpp
|
|
SortJavaScriptImports.cpp
|
|
TokenAnalyzer.cpp
|
|
TokenAnnotator.cpp
|
|
UnwrappedLineFormatter.cpp
|
|
UnwrappedLineParser.cpp
|
|
UsingDeclarationsSorter.cpp
|
|
WhitespaceManager.cpp
|
|
|
|
LINK_LIBS
|
|
clangBasic
|
|
clangLex
|
|
clangToolingCore
|
|
clangToolingInclusions
|
|
)
|