1 // RUN: %clang_cc1 -fsyntax-only -Wdocumentation -verify %s
2 // RUN: %clang_cc1 -fsyntax-only -Wdocumentation -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s
3 
4 // expected-warning@+1 {{parameter 'ZZZZZZZZZZ' not found in the function declaration}} expected-note@+1 {{did you mean 'a'?}}
5 /// \param ZZZZZZZZZZ Blah blah.
6 int test1(int a);
7 
8 // expected-warning@+1 {{parameter 'aab' not found in the function declaration}} expected-note@+1 {{did you mean 'aaa'?}}
9 /// \param aab Blah blah.
10 int test2(int aaa, int bbb);
11 
12 // expected-warning@+1 {{template parameter 'ZZZZZZZZZZ' not found in the template declaration}} expected-note@+1 {{did you mean 'T'?}}
13 /// \tparam ZZZZZZZZZZ Aaa
14 template<typename T>
15 void test3(T aaa);
16 
17 // expected-warning@+1 {{template parameter 'SomTy' not found in the template declaration}} expected-note@+1 {{did you mean 'SomeTy'?}}
18 /// \tparam SomTy Aaa
19 /// \tparam OtherTy Bbb
20 template<typename SomeTy, typename OtherTy>
21 void test4(SomeTy aaa, OtherTy bbb);
22 
23 // CHECK: fix-it:"{{.*}}":{5:12-5:22}:"a"
24 // CHECK: fix-it:"{{.*}}":{9:12-9:15}:"aaa"
25 // CHECK: fix-it:"{{.*}}":{13:13-13:23}:"T"
26 // CHECK: fix-it:"{{.*}}":{18:13-18:18}:"SomeTy"
27 
28