Argyrios Kyrtzidis | 0bfe83b | 2011-07-30 17:23:26 +0000 | [diff] [blame] | 1 | #include "annotate-tokens-with-default-args.h" |
| 2 | |
| 3 | void 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 Gregor | 42b2984 | 2011-10-05 19:00:14 +0000 | [diff] [blame^] | 15 | // CHECK: Punctuation: "{" [3:21 - 3:22] CompoundStmt= |
| 16 | // CHECK: Punctuation: "}" [3:22 - 3:23] CompoundStmt= |