[clang-format] Silence -Wdocumentation warnings
authorKrasimir Georgiev <krasimir@google.com>
Mon, 30 Jul 2018 12:22:41 +0000 (12:22 +0000)
committerKrasimir Georgiev <krasimir@google.com>
Mon, 30 Jul 2018 12:22:41 +0000 (12:22 +0000)
introduced in r338232

llvm-svn: 338245

clang/lib/Format/BreakableToken.h

index a2a818f..10e1801 100644 (file)
@@ -139,12 +139,14 @@ public:
   /// Returns additional content indent required for the second line after the
   /// content at line \p LineIndex is broken.
   ///
-  /// For example, Javadoc @param annotations require and indent of 4 spaces and
-  /// in this example getContentIndex(1) returns 4.
-  /// /**
-  ///  * @param loooooooooooooong line
-  ///  *     continuation
-  ///  */
+  // (Next lines do not start with `///` since otherwise -Wdocumentation picks
+  // up the example annotations and generates warnings for them)
+  // For example, Javadoc @param annotations require and indent of 4 spaces and
+  // in this example getContentIndex(1) returns 4.
+  // /**
+  //  * @param loooooooooooooong line
+  //  *     continuation
+  //  */
   virtual unsigned getContentIndent(unsigned LineIndex) const {
     return 0;
   }