xgupta created this revision. xgupta added reviewers: awarzynski, stephenkelly. xgupta requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits.
Example tutorial <https://clang.llvm.org/docs/RAVFrontendAction.html> giving undefine reference error while building with ```BUILD_SHARED_LIBS=ON```. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D95737 Files: clang/docs/RAVFrontendAction.rst Index: clang/docs/RAVFrontendAction.rst =================================================================== --- clang/docs/RAVFrontendAction.rst +++ clang/docs/RAVFrontendAction.rst @@ -207,7 +207,14 @@ add_clang_executable(find-class-decls FindClassDecls.cpp) - target_link_libraries(find-class-decls clangTooling) + target_link_libraries(find-class-decls + PRIVATE + clangAST + clangBasic + clangFrontend + clangSerialization + clangTooling + ) When running this tool over a small code snippet it will output all declarations of a class n::m::C it found:
Index: clang/docs/RAVFrontendAction.rst =================================================================== --- clang/docs/RAVFrontendAction.rst +++ clang/docs/RAVFrontendAction.rst @@ -207,7 +207,14 @@ add_clang_executable(find-class-decls FindClassDecls.cpp) - target_link_libraries(find-class-decls clangTooling) + target_link_libraries(find-class-decls + PRIVATE + clangAST + clangBasic + clangFrontend + clangSerialization + clangTooling + ) When running this tool over a small code snippet it will output all declarations of a class n::m::C it found:
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits