[PATCH] [clang-tidy] Add a -config={YAML} option.

Manuel Klimek klimek at google.com
Fri Sep 26 04:40:41 PDT 2014


lg

================
Comment at: clang-tidy/tool/ClangTidyMain.cpp:89-93
@@ +88,7 @@
+    "config",
+    cl::desc("Specifies a configuration in YAML/JSON format:\n"
+             "  -config=\"{Checks: '*', CheckOptions: {key: x, value: y}}\"\n"
+             "When the value is empty, clang-tidy will attempt to find\n"
+             "a file named .clang-tidy for each sorce file in its parent\n"
+             "directories."),
+    cl::init(""), cl::cat(ClangTidyCategory));
----------------
s/sorce/source/

http://reviews.llvm.org/D5501






More information about the cfe-commits mailing list