-
Notifications
You must be signed in to change notification settings - Fork 620
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 #3694 from masatake/c++--prototype-starting-from-s…
…cope-op C++: accept prototypes starting from :: operator
- Loading branch information
Showing
4 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
Units/parser-cxx.r/prototype-starting-from-scope-op.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 | ||
--C++-kinds=+p |
2 changes: 2 additions & 0 deletions
2
Units/parser-cxx.r/prototype-starting-from-scope-op.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,2 @@ | ||
bar input.cpp /^::std::string bar();$/;" p typeref:typename:::std::string file: | ||
baz input.cpp /^::std::string baz() { return "not a prototype"; }$/;" f typeref:typename:::std::string |
5 changes: 5 additions & 0 deletions
5
Units/parser-cxx.r/prototype-starting-from-scope-op.d/input.cpp
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,5 @@ | ||
// Taken from #3693 submitted by @b4n | ||
#include <string> | ||
|
||
::std::string bar(); | ||
::std::string baz() { return "not a prototype"; } |
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