mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-23 13:35:42 -04:00

when needed This commit implements the semicolon insertion logic into the extract refactoring. The following rules are used: - extracting expression: add terminating ';' to the extracted function. - extracting statements that don't require terminating ';' (e.g. switch): add terminating ';' to the callee. - extracting statements with ';': move (if possible) the original ';' from the callee and add terminating ';'. - otherwise, add ';' to both places. Differential Revision: https://reviews.llvm.org/D39441 llvm-svn: 317343
26 lines
491 B
CMake
26 lines
491 B
CMake
set(LLVM_LINK_COMPONENTS Support)
|
|
|
|
add_clang_library(clangToolingRefactor
|
|
ASTSelection.cpp
|
|
ASTSelectionRequirements.cpp
|
|
AtomicChange.cpp
|
|
Extract/Extract.cpp
|
|
Extract/SourceExtraction.cpp
|
|
RefactoringActions.cpp
|
|
Rename/RenamingAction.cpp
|
|
Rename/SymbolOccurrences.cpp
|
|
Rename/USRFinder.cpp
|
|
Rename/USRFindingAction.cpp
|
|
Rename/USRLocFinder.cpp
|
|
|
|
LINK_LIBS
|
|
clangAST
|
|
clangASTMatchers
|
|
clangBasic
|
|
clangFormat
|
|
clangIndex
|
|
clangLex
|
|
clangRewrite
|
|
clangToolingCore
|
|
)
|