blob: d5ca7066e15c71db2b04bcdb5bc7f977384a4b9a [file] [log] [blame]
Argyrios Kyrtzidis0bfe83b2011-07-30 17:23:26 +00001#include "annotate-tokens-with-default-args.h"
2
3void Foo::m(Foo *f) {}
4
5// RUN: c-index-test -test-annotate-tokens=%s:3:1:4:1 %s | FileCheck %s
6// CHECK: Keyword: "void" [3:1 - 3:5] CXXMethod=m:3:11 (Definition)
7// CHECK: Identifier: "Foo" [3:6 - 3:9] TypeRef=struct Foo:1:8
8// CHECK: Punctuation: "::" [3:9 - 3:11] CXXMethod=m:3:11 (Definition)
9// CHECK: Identifier: "m" [3:11 - 3:12] CXXMethod=m:3:11 (Definition)
10// CHECK: Punctuation: "(" [3:12 - 3:13] CXXMethod=m:3:11 (Definition)
11// CHECK: Identifier: "Foo" [3:13 - 3:16] TypeRef=struct Foo:1:8
12// CHECK: Punctuation: "*" [3:17 - 3:18] ParmDecl=f:3:18 (Definition)
13// CHECK: Identifier: "f" [3:18 - 3:19] ParmDecl=f:3:18 (Definition)
14// CHECK: Punctuation: ")" [3:19 - 3:20] CXXMethod=m:3:11 (Definition)
Douglas Gregor42b29842011-10-05 19:00:14 +000015// CHECK: Punctuation: "{" [3:21 - 3:22] CompoundStmt=
16// CHECK: Punctuation: "}" [3:22 - 3:23] CompoundStmt=