forked from OSchip/llvm-project
[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
This commit is contained in:
parent
a6cb25676e
commit
9e22b4c76d
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue