-
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.
Tcl: extract null tags for procedures
The test case is taken from #4157 submitted by Javier Mora. Co-authored-by: Javier Mora <[email protected]> Signed-off-by: Masatake YAMATO <[email protected]>
- Loading branch information
1 parent
a92b1a7
commit eefb204
Showing
4 changed files
with
84 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--sort=no | ||
--extras=+{nulltag} | ||
--_xformat=%-16N %-10K %4n %-16F %C %{scopeKind}:%{scope} |
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,12 @@ | ||
procedure 1 input.tcl proc {} {} {return Empty } : | ||
aaa procedure 2 input.tcl proc aaa {} {return Normal} : | ||
a procedure 4 input.tcl proc {a} {} {return Braced} : | ||
ns1 namespace 6 input.tcl namespace eval ns1 { : | ||
procedure 7 input.tcl proc {} {} {return Empty } namespace:::ns1 | ||
bbb procedure 8 input.tcl proc bbb {} {return Normal} namespace:::ns1 | ||
b procedure 9 input.tcl proc {b} {} {return Braced} namespace:::ns1 | ||
ns2 namespace 12 input.tcl namespace eval ns2 : | ||
procedure 13 input.tcl proc ns2:: {} {return Empty } namespace:ns2 | ||
ccc procedure 14 input.tcl proc ns2::ccc {} {return Normal} namespace:ns2 | ||
c procedure 15 input.tcl proc {ns2::c} {} {return Braced} namespace:ns2 | ||
procedure 17 input.tcl proc :: {} {return "Empty at Root NS"} : |
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,17 @@ | ||
proc {} {} {return Empty } | ||
proc aaa {} {return Normal} | ||
|
||
proc {a} {} {return Braced} | ||
|
||
namespace eval ns1 { | ||
proc {} {} {return Empty } | ||
proc bbb {} {return Normal} | ||
proc {b} {} {return Braced} | ||
} | ||
|
||
namespace eval ns2 | ||
proc ns2:: {} {return Empty } | ||
proc ns2::ccc {} {return Normal} | ||
proc {ns2::c} {} {return Braced} | ||
|
||
proc :: {} {return "Empty at Root NS"} |
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