mirror of https://github.com/libAthena/athena.git
Fix `_Bool` error
This commit is contained in:
parent
aa94bdadc4
commit
3c5b138306
|
@ -262,7 +262,11 @@ class ATDNAEmitVisitor : public clang::RecursiveASTVisitor<ATDNAEmitVisitor> {
|
||||||
templateStmt += ", ";
|
templateStmt += ", ";
|
||||||
qualType += ", ";
|
qualType += ", ";
|
||||||
}
|
}
|
||||||
|
if (nonTypeParm->getType()->isBooleanType()) {
|
||||||
|
templateStmt += std::string("bool ") + nonTypeParm->getName().str();
|
||||||
|
} else {
|
||||||
templateStmt += nonTypeParm->getType().getAsString().append(1, ' ').append(nonTypeParm->getName().str());
|
templateStmt += nonTypeParm->getType().getAsString().append(1, ' ').append(nonTypeParm->getName().str());
|
||||||
|
}
|
||||||
qualType += nonTypeParm->getName();
|
qualType += nonTypeParm->getName();
|
||||||
needsComma = true;
|
needsComma = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue