mirror of https://github.com/libAthena/athena.git
Use QualType::getAsString(PrintingPolicy&) to honor bool output option
This commit is contained in:
parent
3c5b138306
commit
1aa27c7289
|
@ -262,11 +262,7 @@ class ATDNAEmitVisitor : public clang::RecursiveASTVisitor<ATDNAEmitVisitor> {
|
||||||
templateStmt += ", ";
|
templateStmt += ", ";
|
||||||
qualType += ", ";
|
qualType += ", ";
|
||||||
}
|
}
|
||||||
if (nonTypeParm->getType()->isBooleanType()) {
|
templateStmt += nonTypeParm->getType().getAsString(context.getPrintingPolicy()).append(1, ' ').append(nonTypeParm->getName().str());
|
||||||
templateStmt += std::string("bool ") + nonTypeParm->getName().str();
|
|
||||||
} else {
|
|
||||||
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