mirror of
https://github.com/mappu/miqt.git
synced 2024-12-23 01:18:37 +00:00
genbindings/clang2il: cleanup dead code
This commit is contained in:
parent
2e5749f9a6
commit
6c1acb9377
@ -666,16 +666,14 @@ func parseSingleTypeString(p string) CppParameter {
|
|||||||
|
|
||||||
isSigned := false
|
isSigned := false
|
||||||
|
|
||||||
tokens := tokenizeSingleParameter(p) // strings.Split(strings.TrimSpace(p), " ")
|
tokens := tokenizeSingleParameter(p)
|
||||||
insert := CppParameter{}
|
insert := CppParameter{}
|
||||||
for _, tok := range tokens {
|
for _, tok := range tokens {
|
||||||
|
|
||||||
if tok == "" {
|
if tok == "" {
|
||||||
continue // extra space
|
continue // extra space
|
||||||
|
|
||||||
} else if tok == "const" || tok == "*const" {
|
} else if tok == "const" {
|
||||||
// *const happens for QPixmap, clang reports `const char *const *` which
|
|
||||||
// isn't even valid syntax
|
|
||||||
insert.Const = true
|
insert.Const = true
|
||||||
|
|
||||||
} else if tok == "&" { // U+0026
|
} else if tok == "&" { // U+0026
|
||||||
|
Loading…
Reference in New Issue
Block a user