[PATCH] D53170: [clang-doc] Switch to default to all-TUs executor

Leonard Chan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 11 14:26:09 PDT 2018


leonardchan added inline comments.


================
Comment at: clang-tools-extra/clang-doc/tool/ClangDocMain.cpp:90-92
+static llvm::cl::opt<std::string>
+    ClangDocExecutorName("doc-executor", llvm::cl::desc("The name of the executor to use in clang-doc."),
+                 llvm::cl::init("all-TUs"));
----------------
I think this might be more than 80 characters in a line? Run clang-format just to be sure.


================
Comment at: clang-tools-extra/clang-doc/tool/ClangDocMain.cpp:202-203
+llvm::Expected<std::unique_ptr<ToolExecutor>>
+createClangDocExecutor(int &argc, const char **argv,
+                                      llvm::cl::OptionCategory &Category) {
+  auto OptionsParser =
----------------
Formatting nit: Should the arguments be aligned here?


================
Comment at: clang-tools-extra/clang-doc/tool/ClangDocMain.cpp:211-213
+    if (I->getName() != ClangDocExecutorName) {
+      continue;
+    }
----------------
Nit: Remove braces


https://reviews.llvm.org/D53170





More information about the cfe-commits mailing list