Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
doxverilog
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
doxverilog
Commits
5ec66c22
Commit
5ec66c22
authored
Jun 28, 2014
by
wtschueller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 705503 - TCL: Documentation of oo::define is not working
parent
070c3554
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
141 additions
and
5 deletions
+141
-5
tclscanner.l
src/tclscanner.l
+52
-5
class_test.xml
testing/061/class_test.xml
+70
-0
061_bug_705503.tcl
testing/061_bug_705503.tcl
+19
-0
No files found.
src/tclscanner.l
View file @
5ec66c22
...
...
@@ -2195,6 +2195,52 @@ D
}
myEntryCl = tcl_entry_class(myName);
myStr = (*tcl.list_commandwords.at(4)).utf8();
//
// special cases first
// oo::define classname method methodname args script
// oo::define classname constructor argList bodyScript
// oo::define classname destructor bodyScript
unsigned int n =tcl.list_commandwords.count();
if ((myStr == "method" && n == 11) ||
(myStr == "constructor" && n == 9) ||
(myStr == "destructor" && n == 7))
{
for (unsigned int i = 4; i < n-1; i++)
{
tcl_codify_cmd("NULL",i);
}
Entry *myEntry;
QCString myMethod;
tcl_name(myScan->ns,(*tcl.list_commandwords.at(n==11?6:4)).utf8(),myNs,myMethod);
// code snippet taken from tcl_command_METHOD()/tcl_command_CONSTRUCTOR
tcl.fn.remove(myMethod);
tcl.entry_current->section = Entry::FUNCTION_SEC;
tcl.entry_current->mtype = Method;
tcl.entry_current->name = myMethod;
tcl.entry_current->startLine = tcl.line_command;
tcl.entry_current->bodyLine = tcl.line_body0;
tcl.entry_current->endBodyLine = tcl.line_body1;
tcl_protection(tcl.entry_current);
if (n==11)
{
tcl_command_ARGLIST(*tcl.list_commandwords.at(8));
}
else if (n==9)
{
tcl_command_ARGLIST(*tcl.list_commandwords.at(6));
}
if (myEntryCl) myEntryCl->addSubEntry(tcl.entry_current);
tcl.fn.insert(myMethod,tcl.entry_current);
myEntry = tcl.entry_current;
myScan = tcl_scan_start('?',*tcl.list_commandwords.at(n-1),
myNs, myEntryCl, myEntry);
}
else
{
// The general case
// Simply concat all arguments into a script.
// Note: all documentation collected just before the
// oo::define command is lost
if (tcl.list_commandwords.count() > 5)
{
for (uint i=5;i<tcl.list_commandwords.count();i++)
...
...
@@ -2204,6 +2250,7 @@ D
tcl.word_is=' ';
}
myScan = tcl_scan_start(tcl.word_is,myStr,myName,myEntryCl,NULL);
}
}
//! Handle \c variable statements.
...
...
testing/061/class_test.xml
0 → 100644
View file @
5ec66c22
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<doxygen
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=
"compound.xsd"
version=
""
>
<compounddef
id=
"class_test"
kind=
"class"
prot=
"public"
>
<compoundname>
Test
</compoundname>
<sectiondef
kind=
"public-func"
>
<memberdef
kind=
"function"
id=
"class_test_1af863c78bca81b4e276dcbb30f12e8ec6"
prot=
"public"
static=
"no"
const=
"no"
explicit=
"no"
inline=
"no"
virt=
"non-virtual"
>
<type/>
<definition>
Test::testmethod_one
</definition>
<argsstring>
args
</argsstring>
<name>
testmethod_one
</name>
<briefdescription>
<para><ref
refid=
"class_test"
kindref=
"compound"
>
Test
</ref>
method 1.
</para>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location
file=
"061_bug_705503.tcl"
bodystart=
"12"
bodyend=
"12"
/>
</memberdef>
<memberdef
kind=
"function"
id=
"class_test_1ac7148d2852b30d157e078fe0fe58a350"
prot=
"public"
static=
"no"
const=
"no"
explicit=
"no"
inline=
"no"
virt=
"non-virtual"
>
<type/>
<definition>
Test::constructor
</definition>
<argsstring>
args
</argsstring>
<name>
constructor
</name>
<briefdescription>
<para>
Construction of class.
</para>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location
file=
"061_bug_705503.tcl"
bodystart=
"16"
bodyend=
"16"
/>
</memberdef>
<memberdef
kind=
"function"
id=
"class_test_1abdf3375950ec49e29f4bae947b7e3f26"
prot=
"public"
static=
"no"
const=
"no"
explicit=
"no"
inline=
"no"
virt=
"non-virtual"
>
<type/>
<definition>
Test::testmethod_two
</definition>
<argsstring>
args
</argsstring>
<name>
testmethod_two
</name>
<briefdescription>
<para><ref
refid=
"class_test"
kindref=
"compound"
>
Test
</ref>
method 2.
</para>
</briefdescription>
<detaileddescription>
</detaileddescription>
<inbodydescription>
</inbodydescription>
<location
file=
"061_bug_705503.tcl"
bodystart=
"19"
bodyend=
"19"
/>
</memberdef>
</sectiondef>
<briefdescription>
<para>
Testclass.
</para>
</briefdescription>
<detaileddescription>
</detaileddescription>
<location
file=
"061_bug_705503.tcl"
bodystart=
"10"
bodyend=
"13"
/>
<listofallmembers>
<member
refid=
"class_test_1ac7148d2852b30d157e078fe0fe58a350"
prot=
"public"
virt=
"non-virtual"
>
<scope>
Test
</scope>
<name>
constructor
</name>
</member>
<member
refid=
"class_test_1af863c78bca81b4e276dcbb30f12e8ec6"
prot=
"public"
virt=
"non-virtual"
>
<scope>
Test
</scope>
<name>
testmethod_one
</name>
</member>
<member
refid=
"class_test_1abdf3375950ec49e29f4bae947b7e3f26"
prot=
"public"
virt=
"non-virtual"
>
<scope>
Test
</scope>
<name>
testmethod_two
</name>
</member>
</listofallmembers>
</compounddef>
</doxygen>
testing/061_bug_705503.tcl
0 → 100644
View file @
5ec66c22
#// objective: test for bug 705503 - TCL: Documentation of oo::define is not working
#// check: class_test.xml
#// config: EXTRACT_ALL = yes
# taken from
# https://bugzilla.gnome.org/show_bug.cgi?id=705503
## @class Test
# @brief Testclass
oo::class create Test
{
## @brief Test method 1.
method testmethod_one args
{}
}
## @brief Construction of class
oo::define Test constructor args
{}
## @brief Test method 2
oo::define Test method testmethod_two args
{}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment