diff --git a/clang/docs/RAVFrontendAction.rst b/clang/docs/RAVFrontendAction.rst --- a/clang/docs/RAVFrontendAction.rst +++ b/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: