summaryrefslogtreecommitdiffstats
path: root/clang/docs
diff options
context:
space:
mode:
Diffstat (limited to 'clang/docs')
-rw-r--r--clang/docs/LibASTMatchersTutorial.rst1
-rw-r--r--clang/docs/RAVFrontendAction.rst4
2 files changed, 2 insertions, 3 deletions
diff --git a/clang/docs/LibASTMatchersTutorial.rst b/clang/docs/LibASTMatchersTutorial.rst
index fe36511a0cf..603b2faf01d 100644
--- a/clang/docs/LibASTMatchersTutorial.rst
+++ b/clang/docs/LibASTMatchersTutorial.rst
@@ -108,7 +108,6 @@ CMakeLists.txt should have the following contents:
::
set(LLVM_LINK_COMPONENTS support)
- set(LLVM_USED_LIBS clangTooling clangBasic clangAST)
add_clang_executable(loop-convert
LoopConvert.cpp
diff --git a/clang/docs/RAVFrontendAction.rst b/clang/docs/RAVFrontendAction.rst
index ec5d5d54ff9..c37d3c0e812 100644
--- a/clang/docs/RAVFrontendAction.rst
+++ b/clang/docs/RAVFrontendAction.rst
@@ -205,10 +205,10 @@ following CMakeLists.txt to link it:
::
- set(LLVM_USED_LIBS clangTooling)
-
add_clang_executable(find-class-decls FindClassDecls.cpp)
+ target_link_libraries(find-class-decls clangTooling)
+
When running this tool over a small code snippet it will output all
declarations of a class n::m::C it found:
OpenPOWER on IntegriCloud