Skip to content

Commit 6a03e55

Browse files
authored
Merge pull request #3149 from masatake/tcl-force-enabling-class-handler
ITcl,TclOO: introduce forceuse parameters
2 parents 84d7cf1 + ff17464 commit 6a03e55

File tree

25 files changed

+272
-36
lines changed

25 files changed

+272
-36
lines changed

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

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# ALL
2-
#LANGUAGE NAME DESCRIPTION
3-
CPreProcessor _expand expand macros if their definitions are in the current C/C++/CUDA input file (true or [false])
4-
CPreProcessor define define replacement for an identifier (name(params,...)=definition)
5-
CPreProcessor if0 examine code within "#if 0" branch (true or [false])
6-
CPreProcessor ignore a token to be specially handled
7-
Fypp guest parser run after Fypp parser parses the original input ("NONE" or a parser name [Fortran])
2+
#LANGUAGE NAME DESCRIPTION
3+
CPreProcessor _expand expand macros if their definitions are in the current C/C++/CUDA input file (true or [false])
4+
CPreProcessor define define replacement for an identifier (name(params,...)=definition)
5+
CPreProcessor if0 examine code within "#if 0" branch (true or [false])
6+
CPreProcessor ignore a token to be specially handled
7+
Fypp guest parser run after Fypp parser parses the original input ("NONE" or a parser name [Fortran])
8+
ITcl forceUse enable the parser even when `itcl' namespace is not specified in the input (true or [false])
9+
TclOO forceUse enable the parser even when `oo' namespace is not specified in the input (true or [false])
810

911
# ALL MACHINABLE
1012
#LANGUAGE NAME DESCRIPTION
@@ -13,13 +15,17 @@ CPreProcessor define define replacement for an identifier (name(params,...)=defi
1315
CPreProcessor if0 examine code within "#if 0" branch (true or [false])
1416
CPreProcessor ignore a token to be specially handled
1517
Fypp guest parser run after Fypp parser parses the original input ("NONE" or a parser name [Fortran])
18+
ITcl forceUse enable the parser even when `itcl' namespace is not specified in the input (true or [false])
19+
TclOO forceUse enable the parser even when `oo' namespace is not specified in the input (true or [false])
1620

1721
# ALL MACHINABLE NOHEADER
1822
CPreProcessor _expand expand macros if their definitions are in the current C/C++/CUDA input file (true or [false])
1923
CPreProcessor define define replacement for an identifier (name(params,...)=definition)
2024
CPreProcessor if0 examine code within "#if 0" branch (true or [false])
2125
CPreProcessor ignore a token to be specially handled
2226
Fypp guest parser run after Fypp parser parses the original input ("NONE" or a parser name [Fortran])
27+
ITcl forceUse enable the parser even when `itcl' namespace is not specified in the input (true or [false])
28+
TclOO forceUse enable the parser even when `oo' namespace is not specified in the input (true or [false])
2329

2430
# CPP
2531
#NAME DESCRIPTION
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
--param-CPreProcessor:if0=false
2-
1+
--param-CPreProcessor.if0=false
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
--param-CPreProcessor:if0=true
2-
1+
--param-CPreProcessor.if0=true

Units/parser-cpreprocessor.r/macroexpand.d/args.ctags

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
--param-CPreProcessor:_expand=1
1+
--param-CPreProcessor._expand=1
22
--fields-C=+{macrodef}
33
--fields=+Ss
44
--sort=no
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--kinds-c=+p
22
--fields=+S
3-
--param-CPreProcessor:ignore=MACRO2
3+
--param-CPreProcessor.ignore=MACRO2
44
--fields=+r
55
--extras=+r
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--fields=+e
22
# The next redundant options are for improve the test coverage.
3-
--param-Fypp:guest=Lisp
4-
--param-Fypp:guest=NONE
5-
--param-Fypp:guest=Java
3+
--param-Fypp.guest=Lisp
4+
--param-Fypp.guest=NONE
5+
--param-Fypp.guest=Java
66
--extras=+g
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--sort=no
2+
--param-ITcl.forceUse=1
3+
--fields=+{language}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
MyClass input.tcl /^class MyClass {$/;" c language:ITcl
2+
foo input.tcl /^ public method foo {} {$/;" m language:ITcl class:MyClass
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Assume this source file is loaded from
2+
# another source file:
3+
#
4+
# package require Itcl
5+
# namespace import itcl::*
6+
# source input.tcl
7+
#
8+
class MyClass {
9+
public method foo {} {
10+
}
11+
}
12+
13+
body MyClass::foo {} {
14+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
--param-CPreProcessor:_expand=1
1+
--param-CPreProcessor._expand=1
22
--fields-CPreProcessor=+{macrodef}
33
--fields=+{signature}

0 commit comments

Comments
 (0)