Author: lebedevri Date: Thu Apr 12 03:01:20 2018 New Revision: 329892 URL: http://llvm.org/viewvc/llvm-project?rev=329892&view=rev Log: [clang-apply-replacements] Don't forget to link to clangToolingRefactor
Fixes build: [1/3] Linking CXX shared library lib/libclangApplyReplacements.so.7svn FAILED: lib/libclangApplyReplacements.so.7svn <...> /usr/local/bin/ld.lld: error: undefined symbol: clang::tooling::AtomicChange::replace(clang::SourceManager const&, clang::SourceLocation, unsigned int, llvm::StringRef) >>> referenced by ApplyReplacements.cpp >>> >>> tools/clang/tools/extra/clang-apply-replacements/CMakeFiles/clangApplyReplacements.dir/lib/Tooling/ApplyReplacements.cpp.o:(clang::replace::mergeAndDeduplicate(std::vector<clang::tooling::TranslationUnitReplacements, >>> std::allocator<clang::tooling::TranslationUnitReplacements> > const&, >>> std::vector<clang::tooling::TranslationUnitDiagnostics, >>> std::allocator<clang::tooling::TranslationUnitDiagnostics> > const&, >>> llvm::DenseMap<clang::FileEntry const*, >>> std::vector<clang::tooling::AtomicChange, >>> std::allocator<clang::tooling::AtomicChange> >, >>> llvm::DenseMapInfo<clang::FileEntry const*>, >>> llvm::detail::DenseMapPair<clang::FileEntry const*, >>> std::vector<clang::tooling::AtomicChange, >>> std::allocator<clang::tooling::AtomicChange> > > >&, clang::SourceManager&)) /usr/local/bin/ld.lld: error: undefined symbol: clang::tooling::applyAtomicChanges[abi:cxx11](llvm::StringRef, llvm::StringRef, llvm::ArrayRef<clang::tooling::AtomicChange>, clang::tooling::ApplyChangesSpec const&) >>> referenced by ApplyReplacements.cpp >>> >>> tools/clang/tools/extra/clang-apply-replacements/CMakeFiles/clangApplyReplacements.dir/lib/Tooling/ApplyReplacements.cpp.o:(clang::replace::applyChanges[abi:cxx11](llvm::StringRef, >>> std::vector<clang::tooling::AtomicChange, >>> std::allocator<clang::tooling::AtomicChange> > const&, >>> clang::tooling::ApplyChangesSpec const&, clang::DiagnosticsEngine&)) clang: error: linker command failed with exit code 1 (use -v to see invocation) Refs. D43764, rL329813 Modified: clang-tools-extra/trunk/clang-apply-replacements/CMakeLists.txt Modified: clang-tools-extra/trunk/clang-apply-replacements/CMakeLists.txt URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-apply-replacements/CMakeLists.txt?rev=329892&r1=329891&r2=329892&view=diff ============================================================================== --- clang-tools-extra/trunk/clang-apply-replacements/CMakeLists.txt (original) +++ clang-tools-extra/trunk/clang-apply-replacements/CMakeLists.txt Thu Apr 12 03:01:20 2018 @@ -10,6 +10,7 @@ add_clang_library(clangApplyReplacements clangBasic clangRewrite clangToolingCore + clangToolingRefactor ) include_directories( _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits