Fix `_Bool` error

This commit is contained in:
Phillip Stephens 2020-04-17 11:11:01 -07:00
parent aa94bdadc4
commit 3c5b138306
Signed by: Antidote
GPG Key ID: F8BEE4C83DACA60D
1 changed files with 5 additions and 1 deletions

View File

@ -262,7 +262,11 @@ class ATDNAEmitVisitor : public clang::RecursiveASTVisitor<ATDNAEmitVisitor> {
templateStmt += ", ";
qualType += ", ";
}
if (nonTypeParm->getType()->isBooleanType()) {
templateStmt += std::string("bool ") + nonTypeParm->getName().str();
} else {
templateStmt += nonTypeParm->getType().getAsString().append(1, ' ').append(nonTypeParm->getName().str());
}
qualType += nonTypeParm->getName();
needsComma = true;
}