summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/warn-documentation.cpp
diff options
context:
space:
mode:
authorMark de Wever <koraq@xs4all.nl>2019-12-21 14:47:52 +0100
committerMark de Wever <koraq@xs4all.nl>2019-12-21 14:52:21 +0100
commitbe1a9b3863b6649ef64f25c22394335c47f2ef31 (patch)
tree7361e0687b0b0b6b09712811029c2efde448764f /clang/test/Sema/warn-documentation.cpp
parent2947da9ff7d1a1c1d0356ac51405e6576d8fbf64 (diff)
downloadbcm5719-llvm-be1a9b3863b6649ef64f25c22394335c47f2ef31.tar.gz
bcm5719-llvm-be1a9b3863b6649ef64f25c22394335c47f2ef31.zip
[Wdocumentation] Implement \anchor
Differential revision: https://reviews.llvm.org/D69223
Diffstat (limited to 'clang/test/Sema/warn-documentation.cpp')
-rw-r--r--clang/test/Sema/warn-documentation.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Sema/warn-documentation.cpp b/clang/test/Sema/warn-documentation.cpp
index 3cd372819fd..3091c2f3478 100644
--- a/clang/test/Sema/warn-documentation.cpp
+++ b/clang/test/Sema/warn-documentation.cpp
@@ -1102,6 +1102,13 @@ int test_inline_no_argument_a_bad(int);
/// \a A
int test_inline_no_argument_a_good(int);
+// expected-warning@+1 {{'\anchor' command does not have a valid word argument}}
+/// \anchor
+int test_inline_no_argument_anchor_bad(int);
+
+/// \anchor A
+int test_inline_no_argument_anchor_good(int);
+
// expected-warning@+1 {{'@b' command does not have a valid word argument}}
/// @b
int test_inline_no_argument_b_bad(int);
OpenPOWER on IntegriCloud