]> granicus.if.org Git - clang/commitdiff
Add missing newlines to cl::extrahelp uses
authorStephane Sezer <sas@cd80.net>
Tue, 8 May 2018 19:46:29 +0000 (19:46 +0000)
committerStephane Sezer <sas@cd80.net>
Tue, 8 May 2018 19:46:29 +0000 (19:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@331802 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LibASTMatchersTutorial.rst
docs/LibTooling.rst
include/clang/Tooling/CommonOptionsParser.h

index baf2c1c3e69902dd3ba4c1d702418fad1402dfd6..832b47efd1b86318484f58963a830628525aaacd 100644 (file)
@@ -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);
index 75ef6a0fe7ea69d319eeec949e570ef1d9f672f6..a422a1d5665a0f8634e20700dede673c0e9a7afd 100644 (file)
@@ -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);
index 15e8161dd76fb16f254f4e223847af2305ec75b1..799cf687837d22eb6b8717a96606dcc97a51f4fa 100644 (file)
@@ -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(...);
 /// ...
 ///