mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-30 21:55:31 +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) {
|
||||
// Useless we do not need the name of the variable
|
||||
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 {
|
||||
// FIXME: another oops bad declaration
|
||||
// oops bad declaration ?
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue