-
Notifications
You must be signed in to change notification settings - Fork 625
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3344 from masatake/c--func-after-typedef-for-func…
…tion-returning-struct Cxx: add missing code for resetting typedef parsing state MERGING without getting a review from @pragmaware.
- Loading branch information
Showing
7 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
Units/parser-c.r/func-after-typedef-for-fptr-returning-enum.d/args.ctags
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--sort=no | ||
--fields=+S |
4 changes: 4 additions & 0 deletions
4
Units/parser-c.r/func-after-typedef-for-fptr-returning-enum.d/expected.tags
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
s input.c /^enum s { E };$/;" g file: | ||
E input.c /^enum s { E };$/;" e enum:s file: | ||
g input.c /^typedef enum s (*g)(void);$/;" t typeref:enum:s (*)(void) file: | ||
f input.c /^void f(void){}$/;" f typeref:typename:void signature:(void) |
3 changes: 3 additions & 0 deletions
3
Units/parser-c.r/func-after-typedef-for-fptr-returning-enum.d/input.c
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
enum s { E }; | ||
typedef enum s (*g)(void); | ||
void f(void){} |
2 changes: 2 additions & 0 deletions
2
Units/parser-c.r/func-after-typedef-for-fptr-returning-struct.d/args.ctags
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--sort=no | ||
--fields=+S |
3 changes: 3 additions & 0 deletions
3
Units/parser-c.r/func-after-typedef-for-fptr-returning-struct.d/expected.tags
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
s input.c /^struct s {};$/;" s file: | ||
g input.c /^typedef struct s (*g)(void);$/;" t typeref:struct:s (*)(void) file: | ||
f input.c /^void f(void){}$/;" f typeref:typename:void signature:(void) |
3 changes: 3 additions & 0 deletions
3
Units/parser-c.r/func-after-typedef-for-fptr-returning-struct.d/input.c
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
struct s {}; | ||
typedef struct s (*g)(void); | ||
void f(void){} |
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