diff --git a/atdna/main.cpp b/atdna/main.cpp index 55035af..d2a2ac6 100644 --- a/atdna/main.cpp +++ b/atdna/main.cpp @@ -262,11 +262,7 @@ class ATDNAEmitVisitor : public clang::RecursiveASTVisitor { templateStmt += ", "; 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(context.getPrintingPolicy()).append(1, ' ').append(nonTypeParm->getName().str()); qualType += nonTypeParm->getName(); needsComma = true; }