diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2013-03-04 20:08:47 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2013-03-04 20:08:47 +0000 |
commit | c551ecc8f08f0cb71c348f9e4e39a302942b652b (patch) | |
tree | 4f6a4e2bb7f85db352bea48f041cb8ba7779239a /clang/test/Sema/warn-documentation.cpp | |
parent | abf6e03bc1aa8f3f1c464cd1ce841222260504ab (diff) | |
download | bcm5719-llvm-c551ecc8f08f0cb71c348f9e4e39a302942b652b.tar.gz bcm5719-llvm-c551ecc8f08f0cb71c348f9e4e39a302942b652b.zip |
[comment parsing] source fidelity for tparam command too.
// rdar://13066276
llvm-svn: 176448
Diffstat (limited to 'clang/test/Sema/warn-documentation.cpp')
-rw-r--r-- | clang/test/Sema/warn-documentation.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Sema/warn-documentation.cpp b/clang/test/Sema/warn-documentation.cpp index 220f84508f4..d054fac9907 100644 --- a/clang/test/Sema/warn-documentation.cpp +++ b/clang/test/Sema/warn-documentation.cpp @@ -799,6 +799,10 @@ void test_attach37<int>::test_attach38(int aaa, int bbb) {} template<typename T> void test_attach37<T>::test_attach39(int aaa, int bbb) {} +// expected-warning@+1 {{'@tparam' command used in a comment that is not attached to a template declaration}} +/// @tparam T Aaa +int test_tparam22; + // We used to emit warning that parameter 'a' is not found because we parsed // the comment in context of the redeclaration which does not have parameter // names. |