ychen updated this revision to Diff 465151. ychen added a comment. - make corresponding change in the commandline
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D135115/new/ https://reviews.llvm.org/D135115 Files: clang/docs/ClangFormat.rst clang/tools/clang-format/ClangFormat.cpp Index: clang/tools/clang-format/ClangFormat.cpp =================================================================== --- clang/tools/clang-format/ClangFormat.cpp +++ clang/tools/clang-format/ClangFormat.cpp @@ -125,9 +125,11 @@ "determined by the QualifierAlignment style flag"), cl::init(""), cl::cat(ClangFormatCategory)); -static cl::opt<std::string> - Files("files", cl::desc("Provide a list of files to run clang-format"), - cl::init(""), cl::cat(ClangFormatCategory)); +static cl::opt<std::string> Files( + "files", + cl::desc("A file containing a list of files to process, one per line."), + cl::value_desc("filename"), + cl::init(""), cl::cat(ClangFormatCategory)); static cl::opt<bool> Verbose("verbose", cl::desc("If set, shows the list of processed files"), Index: clang/docs/ClangFormat.rst =================================================================== --- clang/docs/ClangFormat.rst +++ clang/docs/ClangFormat.rst @@ -26,7 +26,7 @@ together with <file>s, the files are edited in-place. Otherwise, the result is written to the standard output. - USAGE: clang-format [options] [<file> ...] + USAGE: clang-format [options] [@<file>] [<file> ...] OPTIONS: @@ -69,7 +69,8 @@ --ferror-limit=<uint> - Set the maximum number of clang-format errors to emit before stopping (0 = no limit). Used only with --dry-run or -n - --files=<string> - Provide a list of files to run clang-format + --files=<filename> - A file containing a list of files to process, one + per line. -i - Inplace edit <file>s, if specified. --length=<uint> - Format a range of this length (in bytes). Multiple ranges can be formatted by specifying
Index: clang/tools/clang-format/ClangFormat.cpp =================================================================== --- clang/tools/clang-format/ClangFormat.cpp +++ clang/tools/clang-format/ClangFormat.cpp @@ -125,9 +125,11 @@ "determined by the QualifierAlignment style flag"), cl::init(""), cl::cat(ClangFormatCategory)); -static cl::opt<std::string> - Files("files", cl::desc("Provide a list of files to run clang-format"), - cl::init(""), cl::cat(ClangFormatCategory)); +static cl::opt<std::string> Files( + "files", + cl::desc("A file containing a list of files to process, one per line."), + cl::value_desc("filename"), + cl::init(""), cl::cat(ClangFormatCategory)); static cl::opt<bool> Verbose("verbose", cl::desc("If set, shows the list of processed files"), Index: clang/docs/ClangFormat.rst =================================================================== --- clang/docs/ClangFormat.rst +++ clang/docs/ClangFormat.rst @@ -26,7 +26,7 @@ together with <file>s, the files are edited in-place. Otherwise, the result is written to the standard output. - USAGE: clang-format [options] [<file> ...] + USAGE: clang-format [options] [@<file>] [<file> ...] OPTIONS: @@ -69,7 +69,8 @@ --ferror-limit=<uint> - Set the maximum number of clang-format errors to emit before stopping (0 = no limit). Used only with --dry-run or -n - --files=<string> - Provide a list of files to run clang-format + --files=<filename> - A file containing a list of files to process, one + per line. -i - Inplace edit <file>s, if specified. --length=<uint> - Format a range of this length (in bytes). Multiple ranges can be formatted by specifying
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits