[PATCH] D145302: [clangd] Add library for clangd main function
Mike Hommey via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 11 18:31:49 PDT 2023
glandium added a comment.
This broke building with `-DLLVM_LINK_LLVM_DYLIB=ON`:
/usr/bin/ld: tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/AddUsing.cpp.o: in function `clang::clangd::(anonymous namespace)::AddUsing::prepare(clang::clangd::Tweak::Selection const&)':
AddUsing.cpp:(.text._ZN5clang6clangd12_GLOBAL__N_18AddUsing7prepareERKNS0_5Tweak9SelectionE+0x1c): undefined reference to `clang::clangd::ParsedAST::getASTContext()'
/usr/bin/ld: AddUsing.cpp:(.text._ZN5clang6clangd12_GLOBAL__N_18AddUsing7prepareERKNS0_5Tweak9SelectionE+0x6d): undefined reference to `clang::clangd::ParsedAST::getASTContext() const'
/usr/bin/ld: AddUsing.cpp:(.text._ZN5clang6clangd12_GLOBAL__N_18AddUsing7prepareERKNS0_5Tweak9SelectionE+0x9a): undefined reference to `clang::clangd::isHeaderFile(llvm::StringRef, std::optional<clang::LangOptions>)'
/usr/bin/ld: AddUsing.cpp:(.text._ZN5clang6clangd12_GLOBAL__N_18AddUsing7prepareERKNS0_5Tweak9SelectionE+0xcc): undefined reference to `clang::clangd::SelectionTree::commonAncestor() const'
/usr/bin/ld: AddUsing.cpp:(.text._ZN5clang6clangd12_GLOBAL__N_18AddUsing7prepareERKNS0_5Tweak9SelectionE+0x391): undefined reference to `clang::clangd::printNamespaceScope[abi:cxx11](clang::DeclContext const&)'
etc.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145302/new/
https://reviews.llvm.org/D145302
More information about the cfe-commits
mailing list