summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/warn-documentation-fixits.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-12-01 15:09:32 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-12-01 15:09:32 +0000
commit2dece5747a0f7bd711a5d8fa93b613351f7b6e07 (patch)
tree327d6bb547f85217a38a073966d286bb34690baf /clang/test/Sema/warn-documentation-fixits.cpp
parent45479dcf49845d2faace66c12921be1412721265 (diff)
downloadbcm5719-llvm-2dece5747a0f7bd711a5d8fa93b613351f7b6e07.tar.gz
bcm5719-llvm-2dece5747a0f7bd711a5d8fa93b613351f7b6e07.zip
CommentLexer: When proceeding with a typo corrected name don't clobber the token.
This would crash if the token is used in another diagnostic. PR18051. llvm-svn: 196048
Diffstat (limited to 'clang/test/Sema/warn-documentation-fixits.cpp')
-rw-r--r--clang/test/Sema/warn-documentation-fixits.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Sema/warn-documentation-fixits.cpp b/clang/test/Sema/warn-documentation-fixits.cpp
index a5a477f66d6..675d86c366d 100644
--- a/clang/test/Sema/warn-documentation-fixits.cpp
+++ b/clang/test/Sema/warn-documentation-fixits.cpp
@@ -70,6 +70,11 @@ int gorf();
/// \t bbb IS_DOXYGEN_END
int Bar();
+// expected-warning@+2 {{unknown command tag name 'encode'; did you mean 'endcode'?}}
+// expected-warning@+1 {{'\endcode' command does not terminate a verbatim text block}}
+/// \encode PR18051
+int PR18051();
+
// CHECK: fix-it:"{{.*}}":{5:12-5:22}:"a"
// CHECK: fix-it:"{{.*}}":{9:12-9:15}:"aaa"
// CHECK: fix-it:"{{.*}}":{13:13-13:23}:"T"
@@ -83,3 +88,4 @@ int Bar();
// CHECK: fix-it:"{{.*}}":{58:30-58:30}:" MY_ATTR_DEPRECATED"
// CHECK: fix-it:"{{.*}}":{63:6-63:11}:"return"
// CHECK: fix-it:"{{.*}}":{67:6-67:11}:"foobar"
+// CHECK: fix-it:"{{.*}}":{75:6-75:12}:"endcode"
OpenPOWER on IntegriCloud