Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Where possible, edges connecting nodes are
given different colours to make them easier to distinguish in
large graphs.
Variables
Type
Visibility
Attributes
Name
Initial
integer,
private
::
i
logical,
private
::
in_str
character(len=1),
private
::
q
Source Code
pure function strip_comment(line)result(out)!! Remove a trailing `!` comment, respecting single/double quotes.character(len=*),intent(in)::linecharacter(len=:),allocatable::outinteger::icharacter::qlogical::in_strin_str=.false.q=" "out=linedo i=1,len(line)if(in_str)then if(line(i:i)==q)in_str=.false.else if(line(i:i)=='"'.or.line(i:i)=="'")thenin_str=.true.q=line(i:i)else if(line(i:i)=="!")thenout=line(1:i-1)return end if end if end do end function strip_comment