aboutsummaryrefslogtreecommitdiff
path: root/clang/lib
diff options
context:
space:
mode:
authorKrasimir Georgiev <krasimir@google.com>2018-07-30 12:22:41 +0000
committerKrasimir Georgiev <krasimir@google.com>2018-07-30 12:22:41 +0000
commite3424bf477640ce25e4e07f1c25d98a16c50308a (patch)
tree8eb7acbde06cad9ac3cb71637a4e26f3ded1622d /clang/lib
parentde496c32a4939056e60886f0cb343b2301484b38 (diff)
downloadllvm-e3424bf477640ce25e4e07f1c25d98a16c50308a.zip
llvm-e3424bf477640ce25e4e07f1c25d98a16c50308a.tar.gz
llvm-e3424bf477640ce25e4e07f1c25d98a16c50308a.tar.bz2
[clang-format] Silence -Wdocumentation warnings
introduced in r338232 llvm-svn: 338245
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Format/BreakableToken.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/clang/lib/Format/BreakableToken.h b/clang/lib/Format/BreakableToken.h
index a2a818f..10e1801 100644
--- a/clang/lib/Format/BreakableToken.h
+++ b/clang/lib/Format/BreakableToken.h
@@ -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;
}