summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephane Sezer <sas@cd80.net>2018-05-08 19:46:29 +0000
committerStephane Sezer <sas@cd80.net>2018-05-08 19:46:29 +0000
commit85ca028a6691516669ffecf6381ea435329fd67c (patch)
tree5d7c5f2d609a22c131135e2e30041f7b9505e44c
parent22d36a3a09293830f3b003b20d8361d01b27c13d (diff)
downloadclang-85ca028a6691516669ffecf6381ea435329fd67c.tar.gz
Add missing newlines to cl::extrahelp uses
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@331802 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--docs/LibASTMatchersTutorial.rst2
-rw-r--r--docs/LibTooling.rst2
-rw-r--r--include/clang/Tooling/CommonOptionsParser.h2
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 <LibTooling.html>`_.
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<bool> YourOwnOption(...);
/// ...
///