summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulie Hockett <juliehockett@google.com>2018-10-26 19:11:34 +0000
committerJulie Hockett <juliehockett@google.com>2018-10-26 19:11:34 +0000
commit9e22b4c76d7214002e446d28b5fa31102b529e99 (patch)
tree5c7fca53480541f875fa1cd248d79282f5a79546
parenta6cb25676e1575af9edf819c5aabf993e4c42ee0 (diff)
downloadbcm5719-llvm-9e22b4c76d7214002e446d28b5fa31102b529e99.tar.gz
bcm5719-llvm-9e22b4c76d7214002e446d28b5fa31102b529e99.zip
[clang-doc] Switch to default to all-TUs executor
Since we generally want to document a whole project, not just one file. Differential Revision: https://reviews.llvm.org/D53170 llvm-svn: 345418
-rw-r--r--clang-tools-extra/clang-doc/tool/ClangDocMain.cpp2
-rw-r--r--clang-tools-extra/test/clang-doc/single-file-public.cpp2
-rw-r--r--clang-tools-extra/test/clang-doc/single-file.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/clang-tools-extra/clang-doc/tool/ClangDocMain.cpp b/clang-tools-extra/clang-doc/tool/ClangDocMain.cpp
index d8559aae2b5..71ca2d91ac6 100644
--- a/clang-tools-extra/clang-doc/tool/ClangDocMain.cpp
+++ b/clang-tools-extra/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 @@ int main(int argc, const char **argv) {
llvm::sys::PrintStackTraceOnErrorSignal(argv[0]);
std::error_code OK;
+ ExecutorName.setInitialValue("all-TUs");
auto Exec = clang::tooling::createExecutorFromCommandLineArgs(
argc, argv, ClangDocCategory);
diff --git a/clang-tools-extra/test/clang-doc/single-file-public.cpp b/clang-tools-extra/test/clang-doc/single-file-public.cpp
index f9a3bbf7942..e53a645af36 100644
--- a/clang-tools-extra/test/clang-doc/single-file-public.cpp
+++ b/clang-tools-extra/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
diff --git a/clang-tools-extra/test/clang-doc/single-file.cpp b/clang-tools-extra/test/clang-doc/single-file.cpp
index c03481d4d21..8bde6f9b11d 100644
--- a/clang-tools-extra/test/clang-doc/single-file.cpp
+++ b/clang-tools-extra/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
OpenPOWER on IntegriCloud