summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/warn-documentation.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2013-03-05 01:05:07 +0000
committerFariborz Jahanian <fjahanian@apple.com>2013-03-05 01:05:07 +0000
commit8a7a59226d48ae98bd5bc09adc111be543b5e941 (patch)
tree9c759e48a1b4f70188d67bdd113a98853a1da2c9 /clang/test/Sema/warn-documentation.cpp
parenta69d0aaa71dd74e28a2e5990166819e15fb8f31f (diff)
downloadbcm5719-llvm-8a7a59226d48ae98bd5bc09adc111be543b5e941.tar.gz
bcm5719-llvm-8a7a59226d48ae98bd5bc09adc111be543b5e941.zip
doc parsing. We want to issue a strong warning when
an @function comment is not followed by a function decl. // rdar://13094352 llvm-svn: 176468
Diffstat (limited to 'clang/test/Sema/warn-documentation.cpp')
-rw-r--r--clang/test/Sema/warn-documentation.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Sema/warn-documentation.cpp b/clang/test/Sema/warn-documentation.cpp
index 431bec11479..8b38ddd81a9 100644
--- a/clang/test/Sema/warn-documentation.cpp
+++ b/clang/test/Sema/warn-documentation.cpp
@@ -911,3 +911,12 @@ int test_nocrash12();
///@param x@param y
int test_nocrash13(int x, int y);
+// expected-warning@+3 {{'@function' command used in a comment that is attached to a non-function declaration immediately following it}}
+// expected-warning@+3 {{'@param' command used in a comment that is not attached to a function declaration}}
+// expected-warning@+3 {{'@result' command used in a comment that is not attached to a function or method declaration}}
+/*! @function Base64EncodeEx
+ @param inFlags This is error flag
+ @result Error
+*/
+typedef unsigned int Base64Flags;
+unsigned Base64EncodeEx(Base64Flags inFlags);
OpenPOWER on IntegriCloud