xref: /minix3/external/bsd/llvm/dist/clang/test/Index/annotate-tokens-with-default-args.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc #include "annotate-tokens-with-default-args.h"
2*f4a2713aSLionel Sambuc 
m(Foo * f)3*f4a2713aSLionel Sambuc void Foo::m(Foo *f) {}
4*f4a2713aSLionel Sambuc 
5*f4a2713aSLionel Sambuc // RUN: c-index-test -test-annotate-tokens=%s:3:1:4:1 %s | FileCheck %s
6*f4a2713aSLionel Sambuc // CHECK: Keyword: "void" [3:1 - 3:5] CXXMethod=m:3:11 (Definition)
7*f4a2713aSLionel Sambuc // CHECK: Identifier: "Foo" [3:6 - 3:9] TypeRef=struct Foo:1:8
8*f4a2713aSLionel Sambuc // CHECK: Punctuation: "::" [3:9 - 3:11] CXXMethod=m:3:11 (Definition)
9*f4a2713aSLionel Sambuc // CHECK: Identifier: "m" [3:11 - 3:12] CXXMethod=m:3:11 (Definition)
10*f4a2713aSLionel Sambuc // CHECK: Punctuation: "(" [3:12 - 3:13] CXXMethod=m:3:11 (Definition)
11*f4a2713aSLionel Sambuc // CHECK: Identifier: "Foo" [3:13 - 3:16] TypeRef=struct Foo:1:8
12*f4a2713aSLionel Sambuc // CHECK: Punctuation: "*" [3:17 - 3:18] ParmDecl=f:3:18 (Definition)
13*f4a2713aSLionel Sambuc // CHECK: Identifier: "f" [3:18 - 3:19] ParmDecl=f:3:18 (Definition)
14*f4a2713aSLionel Sambuc // CHECK: Punctuation: ")" [3:19 - 3:20] CXXMethod=m:3:11 (Definition)
15*f4a2713aSLionel Sambuc // CHECK: Punctuation: "{" [3:21 - 3:22] CompoundStmt=
16*f4a2713aSLionel Sambuc // CHECK: Punctuation: "}" [3:22 - 3:23] CompoundStmt=
17