forked from universal-ctags/ctags
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
C++,C: fill properties for variables defined with its struct definition
For the input like: static struct S {...} svar; the original code didn't fill the properties: field of svar with "static". Signed-off-by: Masatake YAMATO <[email protected]>
- Loading branch information
Showing
5 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
X input.cpp /^namespace X {$/;" n file: roles:def extras:fileScope end:6 | ||
X::Y input.cpp /^ extern class Y {$/;" c namespace:X file: roles:def extras:fileScope,qualified end:5 | ||
X::Y::m input.cpp /^ int m;$/;" m class:X::Y typeref:typename:int file: roles:def extras:fileScope,qualified end:4 | ||
X::v input.cpp /^ } v;$/;" v namespace:X typeref:class:X::Y roles:def extras:qualified end:5 | ||
X::v input.cpp /^ } v;$/;" x namespace:X typeref:class:X::Y roles:def extras:qualified end:5 | ||
Y input.cpp /^ extern class Y {$/;" c namespace:X file: roles:def extras:fileScope end:5 | ||
Z input.cpp /^#define Z$/;" d file: roles:def extras:fileScope end:1 | ||
Z input.cpp /^#undef Z$/;" d file: roles:undef extras:fileScope,reference | ||
input.cpp input.cpp 1;" F roles:def extras:inputFile end:7 | ||
m input.cpp /^ int m;$/;" m class:X::Y typeref:typename:int file: roles:def extras:fileScope end:4 | ||
v input.cpp /^ } v;$/;" v namespace:X typeref:class:X::Y roles:def end:5 | ||
v input.cpp /^ } v;$/;" x namespace:X typeref:class:X::Y roles:def end:5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,3 +42,5 @@ static void f01() | |
static inline void f02() | ||
{ | ||
} | ||
|
||
static struct point { float x, y; } p0, p1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters