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.
Unitx,c++: record an input file causing a bug (universal-ctags#1750, …
…nested triangle brackets in template) Signed-off-by: Masatake YAMATO <yamato@redhat.com>
- Loading branch information
Showing
3 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
Units/parser-cxx.r/template-nested-triangle-brackets.b/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-c++={template} |
2 changes: 2 additions & 0 deletions
2
Units/parser-cxx.r/template-nested-triangle-brackets.b/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 @@ | ||
Test input.hpp /^class Test : public set<int> {$/;" c template:template:<int,class _Comp0=less<int>,class _Comp1=less<pair<int,int>>> | ||
xxx input.hpp /^ typedef int xxx;$/;" t class:Test typeref:typename:int |
7 changes: 7 additions & 0 deletions
7
Units/parser-cxx.r/template-nested-triangle-brackets.b/input.hpp
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,7 @@ | ||
template <int, | ||
class _Comp0=less<int>, | ||
class _Comp1=less<pair<int, int> > > | ||
class Test : public set<int> { | ||
typedef int xxx; | ||
}; | ||
// Taken from #1750 submitted by @tuarba. |