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
3bbf0690
Commit
3bbf0690
authored
Sep 21, 2013
by
Dimitri van Heesch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 707925 - False warning for Java "warning: missing ( in exception list on member"
parent
d00d094b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
memberdef.cpp
src/memberdef.cpp
+9
-9
No files found.
src/memberdef.cpp
View file @
3bbf0690
...
@@ -370,12 +370,13 @@ static void writeExceptionListImpl(
...
@@ -370,12 +370,13 @@ static void writeExceptionListImpl(
OutputList
&
ol
,
ClassDef
*
cd
,
MemberDef
*
md
,
QCString
const
&
exception
)
OutputList
&
ol
,
ClassDef
*
cd
,
MemberDef
*
md
,
QCString
const
&
exception
)
{
{
// this is ordinary exception spec - there must be a '('
// this is ordinary exception spec - there must be a '('
//printf("exception='%s'\n",exception.data());
int
index
=
exception
.
find
(
'('
);
int
index
=
exception
.
find
(
'('
);
if
(
-
1
!=
index
)
if
(
index
!=-
1
)
{
{
ol
.
exceptionEntry
(
exception
.
left
(
index
),
false
);
ol
.
exceptionEntry
(
exception
.
left
(
index
),
false
);
++
index
;
// paren in second column so skip it here
++
index
;
// paren in second column so skip it here
for
(
int
comma
=
exception
.
find
(
','
,
index
);
-
1
!=
comma
;
)
for
(
int
comma
=
exception
.
find
(
','
,
index
);
comma
!=-
1
;
)
{
{
++
comma
;
// include comma
++
comma
;
// include comma
linkifyText
(
TextGeneratorOLImpl
(
ol
),
cd
,
md
->
getBodyDef
(),
md
,
linkifyText
(
TextGeneratorOLImpl
(
ol
),
cd
,
md
->
getBodyDef
(),
md
,
...
@@ -385,21 +386,20 @@ static void writeExceptionListImpl(
...
@@ -385,21 +386,20 @@ static void writeExceptionListImpl(
comma
=
exception
.
find
(
','
,
index
);
comma
=
exception
.
find
(
','
,
index
);
}
}
int
close
=
exception
.
find
(
')'
,
index
);
int
close
=
exception
.
find
(
')'
,
index
);
if
(
-
1
!=
close
)
if
(
close
!=-
1
)
{
{
QCString
type
=
removeRedundantWhiteSpace
(
exception
.
mid
(
index
,
close
-
index
));
QCString
type
=
removeRedundantWhiteSpace
(
exception
.
mid
(
index
,
close
-
index
));
linkifyText
(
TextGeneratorOLImpl
(
ol
),
cd
,
md
->
getBodyDef
(),
md
,
type
);
linkifyText
(
TextGeneratorOLImpl
(
ol
),
cd
,
md
->
getBodyDef
(),
md
,
type
);
ol
.
exceptionEntry
(
0
,
true
);
ol
.
exceptionEntry
(
0
,
true
);
}
}
else
else
warn
(
md
->
getDefFileName
(),
md
->
getDefLine
(),
{
"missing ) in exception list on member %s"
,
qPrint
(
md
->
name
()));
warn
(
md
->
getDefFileName
(),
md
->
getDefLine
(),
"missing ) in exception list on member %s"
,
qPrint
(
md
->
name
()));
}
}
}
else
else
// Java Exception
{
{
// fallback - is it possible to get here?
warn
(
md
->
getDefFileName
(),
md
->
getDefLine
(),
"missing ( in exception list on member %s"
,
qPrint
(
md
->
name
()));
ol
.
docify
(
" "
);
ol
.
docify
(
" "
);
linkifyText
(
TextGeneratorOLImpl
(
ol
),
cd
,
md
->
getBodyDef
(),
md
,
exception
);
linkifyText
(
TextGeneratorOLImpl
(
ol
),
cd
,
md
->
getBodyDef
(),
md
,
exception
);
}
}
...
...
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