diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2013-03-05 01:05:07 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2013-03-05 01:05:07 +0000 |
commit | 2a268f2629b49958427e8eb02f2c3d565be71acc (patch) | |
tree | 9b44a3b1d9facc7579362f6c2a0f7d489668598f /test/Sema/warn-documentation.cpp | |
parent | 5aff3f1e9a66fa72576a6b04c8c319c17e0360c6 (diff) |
doc parsing. We want to issue a strong warning when
an @function comment is not followed by a function decl.
// rdar://13094352
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176468 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/warn-documentation.cpp')
-rw-r--r-- | test/Sema/warn-documentation.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Sema/warn-documentation.cpp b/test/Sema/warn-documentation.cpp index 431bec1147..8b38ddd81a 100644 --- a/test/Sema/warn-documentation.cpp +++ b/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); |