Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pokey committed May 22, 2024
1 parent f46f36a commit 367fcd6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
6 changes: 3 additions & 3 deletions data/fixtures/recorded/languages/cpp/changeCall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ initialState:
active: {line: 0, character: 19}
marks: {}
finalState:
documentContents: Car ;
documentContents: ;
selections:
- anchor: {line: 0, character: 4}
active: {line: 0, character: 4}
- anchor: {line: 0, character: 0}
active: {line: 0, character: 0}
6 changes: 3 additions & 3 deletions data/fixtures/recorded/languages/cpp/changeCallee3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ initialState:
active: {line: 0, character: 17}
marks: {}
finalState:
documentContents: Car ("X5", 1999);
documentContents: " carObj1(\"X5\", 1999);"
selections:
- anchor: {line: 0, character: 4}
active: {line: 0, character: 4}
- anchor: {line: 0, character: 0}
active: {line: 0, character: 0}
3 changes: 3 additions & 0 deletions data/playground/c-plus-plus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ typedef enum { jjj, kkk } lll;
class aaa { int bbb; };
enum class ccc { ddd, eee };

Aaa bbb(ccc);
Ddd *eee = new Fff(ggg);

int main() {
struct myStructure s1;
return 0;
Expand Down
7 changes: 7 additions & 0 deletions queries/cpp.scm
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,10 @@
declarator: (_) @name @value.leading.endOf
default_value: (_) @value
) @_.domain

(declaration
type: (_) @functionCallee @functionCall.start @_.domain.start
declarator: (init_declarator
value: (argument_list)
) @functionCall.end @_.domain.end
)

0 comments on commit 367fcd6

Please sign in to comment.