Skip to content

Commit d48d1d5

Browse files
committed
Cxx: introduce "alias:" field for storing ALIAS in __attribute__((alias("ALIAS"))__
Signed-off-by: Masatake YAMATO <[email protected]>
1 parent fb3a966 commit d48d1d5

File tree

15 files changed

+62
-2
lines changed

15 files changed

+62
-2
lines changed

Tmain/list-fields-with-prefix.d/stdout-expected.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ r UCTAGSroles no NONE s-- no r- Roles
88
x UCTAGSxpath no NONE s-- no -- xpath for the tag
99
- UCTAGSproperties yes Asm s-- no -- properties (req, vararg for parameters)
1010
- UCTAGSproperties no AutoIt s-- no -- properties (static, volatile, ...)
11+
- UCTAGSalias no C s-- no -- the name of the alias target specified in __attribute__((alias(...)))
1112
- UCTAGSmacrodef no C s-- no -- macro definition
1213
- UCTAGSproperties no C s-- no -- properties (static, inline, mutable,...)
1314
- UCTAGSsection no C s-- no -- the place where the object is placed
15+
- UCTAGSalias no C++ s-- no -- the name of the alias target specified in __attribute__((alias(...)))
1416
- UCTAGScaptures no C++ s-- no -- lambda capture list
1517
- UCTAGSmacrodef no C++ s-- no -- macro definition
1618
- UCTAGSname yes C++ s-- no -- aliased names
@@ -19,6 +21,7 @@ x UCTAGSxpath no NONE s-- no -- xpath for
1921
- UCTAGSspecialization no C++ s-- no -- template specialization parameters
2022
- UCTAGStemplate no C++ s-- no -- template parameters
2123
- UCTAGSmacrodef no CPreProcessor s-- no -- macro definition
24+
- UCTAGSalias no CUDA s-- no -- the name of the alias target specified in __attribute__((alias(...)))
2225
- UCTAGSmacrodef no CUDA s-- no -- macro definition
2326
- UCTAGSproperties no CUDA s-- no -- properties (static, inline, mutable,...)
2427
- UCTAGSsection no CUDA s-- no -- the place where the object is placed

Tmain/list-fields.d/stdout-expected.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ x xpath no NONE s-- no -- xpath for the tag
2626
z kind no NONE s-- no r- [tags output] prepend "kind:" to k/ (or K/) field output, [xref and json output] kind in long-name form
2727
- properties yes Asm s-- no -- properties (req, vararg for parameters)
2828
- properties no AutoIt s-- no -- properties (static, volatile, ...)
29+
- alias no C s-- no -- the name of the alias target specified in __attribute__((alias(...)))
2930
- macrodef no C s-- no -- macro definition
3031
- properties no C s-- no -- properties (static, inline, mutable,...)
3132
- section no C s-- no -- the place where the object is placed
33+
- alias no C++ s-- no -- the name of the alias target specified in __attribute__((alias(...)))
3234
- captures no C++ s-- no -- lambda capture list
3335
- macrodef no C++ s-- no -- macro definition
3436
- name yes C++ s-- no -- aliased names
@@ -37,6 +39,7 @@ z kind no NONE s-- no r- [tags output] prepend "kind:" to k/ (or K/) field outpu
3739
- specialization no C++ s-- no -- template specialization parameters
3840
- template no C++ s-- no -- template parameters
3941
- macrodef no CPreProcessor s-- no -- macro definition
42+
- alias no CUDA s-- no -- the name of the alias target specified in __attribute__((alias(...)))
4043
- macrodef no CUDA s-- no -- macro definition
4144
- properties no CUDA s-- no -- properties (static, inline, mutable,...)
4245
- section no CUDA s-- no -- the place where the object is placed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--sort=no
2+
--fields-C=+{alias}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
x input.c /^int x __attribute__((alias("y")));$/;" v typeref:typename:int alias:y
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
int x __attribute__((alias("y")));

docs/man/ctags-lang-c++.7.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ Change since "0.0"
3232

3333
* New field ``section``
3434

35+
* New field ``alias``
36+
3537
SEE ALSO
3638
--------
3739
:ref:`ctags(1) <ctags(1)>`,

docs/man/ctags-lang-c.7.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ Change since "0.0"
3232

3333
* New field ``section``
3434

35+
* New field ``alias``
36+
3537
SEE ALSO
3638
--------
3739
:ref:`ctags(1) <ctags(1)>`,

docs/man/ctags-lang-cuda.7.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ Change since "0.0"
2929

3030
* New field ``section``
3131

32+
* New field ``alias``
33+
3234
SEE ALSO
3335
--------
3436
:ref:`ctags(1) <ctags(1)>`,

docs/news/HEAD.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,20 @@ Changes about parser specific kinds, roles, fields, and extras
6666

6767
+ New filed `section`
6868

69+
+ New field `alias`
70+
6971
* C++
7072

7173
+ New filed `section`
7274

75+
+ New field `alias`
76+
7377
* CUDA
7478

7579
+ New field `section`
7680

81+
+ New field `alias`
82+
7783
* Fortran
7884

7985
+ New extra `linkName`.

man/ctags-lang-c++.7.rst.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ Change since "0.0"
3232

3333
* New field ``section``
3434

35+
* New field ``alias``
36+
3537
SEE ALSO
3638
--------
3739
ctags(1),

0 commit comments

Comments
 (0)