-
Notifications
You must be signed in to change notification settings - Fork 629
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 #3671 from masatake/fortran--linkname-extra
Fortran: add "linkName" extra
- Loading branch information
Showing
10 changed files
with
238 additions
and
0 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
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 | ||
--extras-Fortran={linkName} |
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,33 @@ | ||
my_mod input.f /^ module my_mod$/;" m | ||
__anon9b9a88660103 input.f /^ enumerator :: my_constr = 1, my_second_constr = 4$/;" E module:my_mod | ||
my_constr input.f /^ enumerator :: my_constr /;" N enum:__anon9b9a88660103 | ||
my_second_constr input.f /^ enumerator :: my_constr = 1, my_second_constr /;" N enum:__anon9b9a88660103 | ||
my_type input.f /^ type my_type$/;" t module:my_mod | ||
a input.f /^ integer a$/;" k type:my_type | ||
b input.f /^ integer b$/;" k type:my_type | ||
c input.f /^ integer c$/;" k type:my_type | ||
my_proc input.f /^ procedure :: my_proc /;" M type:my_type | ||
my_sequence_type input.f /^ type my_sequence_type$/;" t module:my_mod | ||
a input.f /^ integer a$/;" k type:my_sequence_type | ||
b input.f /^ integer b$/;" k type:my_sequence_type | ||
my_mod_type input.f /^ type(my_sequence_type) :: my_mod_type$/;" v module:my_mod | ||
my_mod_common input.f 23;" c module:my_mod | ||
my_mod_common_ input.f 23;" c module:my_mod | ||
my_func input.f /^ function my_func(/;" f module:my_mod | ||
my_func_ input.f /^ function my_func(x)$/;" f module:my_mod | ||
my_block input.f /^ block data my_block$/;" b | ||
my_block_ input.f /^ block data my_block$/;" b | ||
my_var input.f /^ integer my_var$/;" v blockData:my_block | ||
my_common input.f 40;" c blockData:my_block | ||
my_common_ input.f 40;" c blockData:my_block | ||
my_subr input.f /^ subroutine my_subr$/;" s | ||
my_subr_ input.f /^ subroutine my_subr$/;" s | ||
my_entry input.f /^ entry my_entry$/;" e subroutine:my_subr | ||
my_entry_ input.f /^ entry my_entry$/;" e subroutine:my_subr | ||
my_main input.f /^ program my_main$/;" p | ||
my_interface input.f /^ interface my_interface$/;" i program:my_main | ||
my_var input.f /^ integer my_var$/;" v program:my_main | ||
my_namelist input.f /^ namelist \/my_namelist\//;" n program:my_main | ||
my_conc_type input.f /^ type(my_type) :: my_conc_type$/;" v program:my_main | ||
my_common input.f 64;" c program:my_main | ||
my_common_ input.f 64;" c program:my_main |
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,67 @@ | ||
module my_mod | ||
|
||
enum, bind(c) | ||
enumerator :: my_constr = 1, my_second_constr = 4 | ||
end enum | ||
|
||
type my_type | ||
integer a | ||
integer b | ||
integer c | ||
contains | ||
procedure :: my_proc => my_func | ||
end type my_type | ||
|
||
type my_sequence_type | ||
sequence | ||
integer a | ||
integer b | ||
end type | ||
|
||
type(my_sequence_type) :: my_mod_type | ||
|
||
common /my_mod_common/ my_mod_type | ||
|
||
contains | ||
|
||
function my_func(x) | ||
class(my_type), intent(in) :: x | ||
my_func = x%a | ||
return | ||
my_func = 2 | ||
return | ||
end function my_func | ||
|
||
|
||
end module | ||
|
||
block data my_block | ||
integer my_var | ||
common /my_common/ my_var | ||
data my_var/123/ | ||
end | ||
|
||
subroutine my_subr | ||
use my_mod | ||
integer :: my_enum = my_constr | ||
print *, my_enum | ||
return | ||
entry my_entry | ||
print *, "an entry!" | ||
end subroutine my_subr | ||
|
||
|
||
program my_main | ||
use my_mod | ||
interface my_interface | ||
subroutine my_subr() | ||
end subroutine my_subr | ||
end interface | ||
|
||
integer my_var | ||
namelist /my_namelist/ my_var | ||
type(my_type) :: my_conc_type | ||
common /my_common/ my_var | ||
call my_subr() | ||
print *, my_conc_type%my_proc() | ||
end program my_main |
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
.. _ctags-lang-fortran(7): | ||
|
||
============================================================== | ||
ctags-lang-fortran | ||
============================================================== | ||
|
||
Random notes about tagging Fortran source code with Universal Ctags | ||
|
||
:Version: 6.0.0 | ||
:Manual group: Universal Ctags | ||
:Manual section: 7 | ||
|
||
SYNOPSIS | ||
-------- | ||
| **ctags** ... --languages=+Fortran ... | ||
| **ctags** ... --language-force=Fortran ... | ||
| **ctags** ... --map-Fortran=+.f ... | ||
DESCRIPTION | ||
----------- | ||
This man page gathers random notes about tagging FORTRAN source code. | ||
|
||
VERSIONS | ||
-------- | ||
|
||
Change since "0.0" | ||
~~~~~~~~~~~~~~~~~~ | ||
|
||
* New extra ``linkName``. | ||
|
||
SEE ALSO | ||
-------- | ||
:ref:`ctags(1) <ctags(1)>` |
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
.. _ctags-lang-fortran(7): | ||
|
||
============================================================== | ||
ctags-lang-fortran | ||
============================================================== | ||
--------------------------------------------------------------------- | ||
Random notes about tagging Fortran source code with Universal Ctags | ||
--------------------------------------------------------------------- | ||
:Version: @VERSION@ | ||
:Manual group: Universal Ctags | ||
:Manual section: 7 | ||
|
||
SYNOPSIS | ||
-------- | ||
| **@CTAGS_NAME_EXECUTABLE@** ... --languages=+Fortran ... | ||
| **@CTAGS_NAME_EXECUTABLE@** ... --language-force=Fortran ... | ||
| **@CTAGS_NAME_EXECUTABLE@** ... --map-Fortran=+.f ... | ||
|
||
DESCRIPTION | ||
----------- | ||
This man page gathers random notes about tagging FORTRAN source code. | ||
|
||
VERSIONS | ||
-------- | ||
|
||
Change since "0.0" | ||
~~~~~~~~~~~~~~~~~~ | ||
|
||
* New extra ``linkName``. | ||
|
||
SEE ALSO | ||
-------- | ||
ctags(1) |
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