aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/warn-documentation.cpp
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2012-09-13 20:36:01 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2012-09-13 20:36:01 +0000
commitabcf0dccc9cd4c802f4e7797bf452c6808d2226f (patch)
tree7a950299eccacee691c4265483b05e3662a1b448 /test/Sema/warn-documentation.cpp
parent9fb6f7939c4b76b444b7f7b2761b130e7709ac08 (diff)
Comment parsing: handle \deprecated command. It is a block command, but it
should be fine to use it without further explanations in the attached paragraph, so the warning about empty paragraph was turned off for it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163836 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/warn-documentation.cpp')
-rw-r--r--test/Sema/warn-documentation.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Sema/warn-documentation.cpp b/test/Sema/warn-documentation.cpp
index 28544e0a81..a18a0a44a4 100644
--- a/test/Sema/warn-documentation.cpp
+++ b/test/Sema/warn-documentation.cpp
@@ -371,6 +371,19 @@ using test_tparam14 = test_tparam13<T, int>;
template<typename T>
using test_tparam15 = test_tparam13<T, int>;
+
+/// Aaa
+/// \deprecated Bbb
+void test_deprecated_1(int a);
+
+// We don't want \deprecated to warn about empty paragraph. It is fine to use
+// \deprecated by itself without explanations.
+
+/// Aaa
+/// \deprecated
+void test_deprecated_2(int a);
+
+
// no-warning
/// \returns Aaa
int test_returns_right_decl_1(int);