Index: clang-doc/tool/ClangDocMain.cpp =================================================================== --- clang-doc/tool/ClangDocMain.cpp +++ clang-doc/tool/ClangDocMain.cpp @@ -31,7 +31,6 @@ #include "clang/Frontend/FrontendActions.h" #include "clang/Tooling/CommonOptionsParser.h" #include "clang/Tooling/Execution.h" -#include "clang/Tooling/StandaloneExecution.h" #include "clang/Tooling/Tooling.h" #include "llvm/ADT/APFloat.h" #include "llvm/Support/CommandLine.h" @@ -169,6 +168,7 @@ llvm::sys::PrintStackTraceOnErrorSignal(argv[0]); std::error_code OK; + ExecutorName.setInitialValue("all-TUs"); auto Exec = clang::tooling::createExecutorFromCommandLineArgs( argc, argv, ClangDocCategory); Index: test/clang-doc/single-file-public.cpp =================================================================== --- test/clang-doc/single-file-public.cpp +++ test/clang-doc/single-file-public.cpp @@ -2,7 +2,7 @@ // RUN: mkdir %t // RUN: echo "" > %t/compile_flags.txt // RUN: cp "%s" "%t/test.cpp" -// RUN: clang-doc --doxygen --public -p %t %t/test.cpp -output=%t/docs +// RUN: clang-doc --doxygen --public --executor=standalone -p %t %t/test.cpp -output=%t/docs // RUN: cat %t/docs/Record.yaml | FileCheck %s --check-prefix=CHECK // RUN: rm -rf %t Index: test/clang-doc/single-file.cpp =================================================================== --- test/clang-doc/single-file.cpp +++ test/clang-doc/single-file.cpp @@ -2,7 +2,7 @@ // RUN: mkdir %t // RUN: echo "" > %t/compile_flags.txt // RUN: cp "%s" "%t/test.cpp" -// RUN: clang-doc --doxygen -p %t %t/test.cpp -output=%t/docs +// RUN: clang-doc --doxygen --executor=standalone -p %t %t/test.cpp -output=%t/docs // RUN: cat %t/docs/GlobalNamespace.yaml | FileCheck %s --check-prefix=CHECK // RUN: rm -rf %t