[clang-tools-extra] r278922 - [include-fixer] Update -help message.
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 17 04:31:19 PDT 2016
Author: hokein
Date: Wed Aug 17 06:31:19 2016
New Revision: 278922
URL: http://llvm.org/viewvc/llvm-project?rev=278922&view=rev
Log:
[include-fixer] Update -help message.
Modified:
clang-tools-extra/trunk/include-fixer/tool/ClangIncludeFixer.cpp
Modified: clang-tools-extra/trunk/include-fixer/tool/ClangIncludeFixer.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/include-fixer/tool/ClangIncludeFixer.cpp?rev=278922&r1=278921&r2=278922&view=diff
==============================================================================
--- clang-tools-extra/trunk/include-fixer/tool/ClangIncludeFixer.cpp (original)
+++ clang-tools-extra/trunk/include-fixer/tool/ClangIncludeFixer.cpp Wed Aug 17 06:31:19 2016
@@ -120,6 +120,7 @@ cl::opt<bool> OutputHeaders(
cl::desc("Print the symbol being queried and all its relevant headers in\n"
"JSON format to stdout:\n"
" {\n"
+ " \"FilePath\": \"/path/to/foo.cc\",\n"
" \"QuerySymbolInfos\": [\n"
" {\"RawIdentifier\": \"foo\",\n"
" \"Range\": {\"Offset\": 0, \"Length\": 3}}\n"
@@ -135,6 +136,7 @@ cl::opt<std::string> InsertHeader(
"The result is written to stdout. It is currently used for\n"
"editor integration. Support YAML/JSON format:\n"
" -insert-header=\"{\n"
+ " FilePath: \"/path/to/foo.cc\",\n"
" QuerySymbolInfos: [\n"
" {RawIdentifier: foo,\n"
" Range: {Offset: 0, Length: 3}}\n"
@@ -145,7 +147,7 @@ cl::opt<std::string> InsertHeader(
cl::opt<std::string>
Style("style",
- cl::desc("Fallback style for reformatting after inserting new "
+ cl::desc("Fallback style for reformatting after inserting new\n"
"headers if there is no clang-format config file found."),
cl::init("llvm"), cl::cat(IncludeFixerCategory));
More information about the cfe-commits
mailing list