From 85ca028a6691516669ffecf6381ea435329fd67c Mon Sep 17 00:00:00 2001 From: Stephane Sezer Date: Tue, 8 May 2018 19:46:29 +0000 Subject: [PATCH] Add missing newlines to cl::extrahelp uses git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@331802 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/LibASTMatchersTutorial.rst | 2 +- docs/LibTooling.rst | 2 +- include/clang/Tooling/CommonOptionsParser.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/LibASTMatchersTutorial.rst b/docs/LibASTMatchersTutorial.rst index baf2c1c3e6..832b47efd1 100644 --- a/docs/LibASTMatchersTutorial.rst +++ b/docs/LibASTMatchersTutorial.rst @@ -146,7 +146,7 @@ documentation `_. static cl::extrahelp CommonHelp(CommonOptionsParser::HelpMessage); // A help message for this specific tool can be added afterwards. - static cl::extrahelp MoreHelp("\nMore help text..."); + static cl::extrahelp MoreHelp("\nMore help text...\n"); int main(int argc, const char **argv) { CommonOptionsParser OptionsParser(argc, argv, MyToolCategory); diff --git a/docs/LibTooling.rst b/docs/LibTooling.rst index 75ef6a0fe7..a422a1d566 100644 --- a/docs/LibTooling.rst +++ b/docs/LibTooling.rst @@ -130,7 +130,7 @@ version of this example tool is also checked into the clang tree at static cl::extrahelp CommonHelp(CommonOptionsParser::HelpMessage); // A help message for this specific tool can be added afterwards. - static cl::extrahelp MoreHelp("\nMore help text..."); + static cl::extrahelp MoreHelp("\nMore help text...\n"); int main(int argc, const char **argv) { CommonOptionsParser OptionsParser(argc, argv, MyToolCategory); diff --git a/include/clang/Tooling/CommonOptionsParser.h b/include/clang/Tooling/CommonOptionsParser.h index 15e8161dd7..799cf68783 100644 --- a/include/clang/Tooling/CommonOptionsParser.h +++ b/include/clang/Tooling/CommonOptionsParser.h @@ -52,7 +52,7 @@ namespace tooling { /// /// static cl::OptionCategory MyToolCategory("My tool options"); /// static cl::extrahelp CommonHelp(CommonOptionsParser::HelpMessage); -/// static cl::extrahelp MoreHelp("\nMore help text..."); +/// static cl::extrahelp MoreHelp("\nMore help text...\n"); /// static cl::opt YourOwnOption(...); /// ... /// -- 2.40.0