diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2013-03-04 18:53:41 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2013-03-04 18:53:41 +0000 |
commit | 5f2a813d2a41cf6971b7090b3b6a132801a77c57 (patch) | |
tree | 7b4ef37275d30b2381d4431c2b6b0ecde8953966 /clang/test/Sema/warn-documentation.cpp | |
parent | 4e1db8d7f7d934d78f8d43c6da35a7fd7d1de398 (diff) | |
download | bcm5719-llvm-5f2a813d2a41cf6971b7090b3b6a132801a77c57.tar.gz bcm5719-llvm-5f2a813d2a41cf6971b7090b3b6a132801a77c57.zip |
comment parsing. Missed a case of referring
to original command in diagnostic. // rdar://13066276
llvm-svn: 176444
Diffstat (limited to 'clang/test/Sema/warn-documentation.cpp')
-rw-r--r-- | clang/test/Sema/warn-documentation.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Sema/warn-documentation.cpp b/clang/test/Sema/warn-documentation.cpp index d166ae0b584..f9eb458ce8d 100644 --- a/clang/test/Sema/warn-documentation.cpp +++ b/clang/test/Sema/warn-documentation.cpp @@ -907,3 +907,11 @@ struct s; struct q* g(void); struct q; +// 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); |