diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2012-08-01 23:29:52 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2012-08-01 23:29:52 +0000 |
commit | ac87cec246a5ef07acbee715a7c50bbd48b91a54 (patch) | |
tree | f45babecdde3692abdd3d2e8f9e70499dd6e828d | |
parent | b7a1199081a59213492fdba794b796bcba500664 (diff) |
Comment diagnostics fixit tests: move exected-warning constructs from the
comment being tested.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161144 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Sema/warn-documentation-fixits.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/test/Sema/warn-documentation-fixits.cpp b/test/Sema/warn-documentation-fixits.cpp index f67ae46ad1..732b44db02 100644 --- a/test/Sema/warn-documentation-fixits.cpp +++ b/test/Sema/warn-documentation-fixits.cpp @@ -1,10 +1,12 @@ // RUN: %clang_cc1 -fsyntax-only -Wdocumentation -verify %s // RUN: %clang_cc1 -fsyntax-only -Wdocumentation -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s -/// \param ZZZZZZZZZZ Blah blah. expected-warning {{parameter 'ZZZZZZZZZZ' not found in the function declaration}} expected-note {{did you mean 'a'?}} +// expected-warning@+1 {{parameter 'ZZZZZZZZZZ' not found in the function declaration}} expected-note@+1 {{did you mean 'a'?}} +/// \param ZZZZZZZZZZ Blah blah. int test1(int a); -/// \param aab Blah blah. expected-warning {{parameter 'aab' not found in the function declaration}} expected-note {{did you mean 'aaa'?}} +// expected-warning@+1 {{parameter 'aab' not found in the function declaration}} expected-note@+1 {{did you mean 'aaa'?}} +/// \param aab Blah blah. int test2(int aaa, int bbb); // expected-warning@+1 {{template parameter 'ZZZZZZZZZZ' not found in the template declaration}} expected-note@+1 {{did you mean 'T'?}} @@ -18,8 +20,8 @@ void test3(T aaa); template<typename SomeTy, typename OtherTy> void test4(SomeTy aaa, OtherTy bbb); -// CHECK: fix-it:"{{.*}}":{4:12-4:22}:"a" -// CHECK: fix-it:"{{.*}}":{7:12-7:15}:"aaa" -// CHECK: fix-it:"{{.*}}":{11:13-11:23}:"T" -// CHECK: fix-it:"{{.*}}":{16:13-16:18}:"SomeTy" +// CHECK: fix-it:"{{.*}}":{5:12-5:22}:"a" +// CHECK: fix-it:"{{.*}}":{9:12-9:15}:"aaa" +// CHECK: fix-it:"{{.*}}":{13:13-13:23}:"T" +// CHECK: fix-it:"{{.*}}":{18:13-18:18}:"SomeTy" |