summaryrefslogtreecommitdiffstats
path: root/clang/docs/HowToSetupToolingForLLVM.rst
diff options
context:
space:
mode:
Diffstat (limited to 'clang/docs/HowToSetupToolingForLLVM.rst')
-rw-r--r--clang/docs/HowToSetupToolingForLLVM.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/docs/HowToSetupToolingForLLVM.rst b/clang/docs/HowToSetupToolingForLLVM.rst
index 3812fc9f46e..686aca840ad 100644
--- a/clang/docs/HowToSetupToolingForLLVM.rst
+++ b/clang/docs/HowToSetupToolingForLLVM.rst
@@ -133,7 +133,8 @@ Examples:
if (this->ASTList.operator _Bool())
return clang::CreateASTDeclNodeLister();
if (this->ASTDump.operator _Bool())
- return clang::CreateASTDumper(this->ASTDumpFilter);
+ return clang::CreateASTDumper(nullptr /*Dump to stdout.*/,
+ this->ASTDumpFilter);
if (this->ASTPrint.operator _Bool())
return clang::CreateASTPrinter(&llvm::outs(), this->ASTDumpFilter);
return new clang::ASTConsumer();
OpenPOWER on IntegriCloud