mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-31 21:05:37 +02:00
Accept "char [200]" as valid typename.
This commit is contained in:
parent
2334920663
commit
6c689f0920
1 changed files with 12 additions and 1 deletions
|
@ -312,8 +312,19 @@ public class GDBTypeParser {
|
||||||
} else if (tokenType == NAME) {
|
} else if (tokenType == NAME) {
|
||||||
// Useless we do not need the name of the variable
|
// Useless we do not need the name of the variable
|
||||||
name = " " + token;
|
name = " " + token;
|
||||||
|
} else if (tokenType == PARENS) {
|
||||||
|
prependChild(GDBType.FUNCTION);
|
||||||
|
} else if (tokenType == BRACKETS) {
|
||||||
|
int len = 0;
|
||||||
|
if (token.length() > 0) {
|
||||||
|
try {
|
||||||
|
len = Integer.parseInt(token);
|
||||||
|
} catch (NumberFormatException e) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
prependChild(GDBType.ARRAY, len);
|
||||||
} else {
|
} else {
|
||||||
// FIXME: another oops bad declaration
|
// oops bad declaration ?
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue