Alex doesn't like auto #341

Granted, there are times you shouldn't hide the type.
This commit is contained in:
Derek Bankieris 2016-10-31 09:51:44 -05:00
parent 5898f3fdec
commit 29b0d2d223

View File

@ -347,7 +347,7 @@ static std::map<std::string, bool> init_stl_classes() {
}
static bool checkForPrivateTemplateArgs( clang::ClassTemplateSpecializationDecl * ctsd ) {
for (auto& ta : ctsd->getTemplateArgs().asArray()) {
for (const clang::TemplateArgument& ta : ctsd->getTemplateArgs().asArray()) {
if ( ta.getKind() == clang::TemplateArgument::Type ) {
clang::QualType qt = ta.getAsType() ;
//std::cout << qt.getAsString() << std::endl ;
@ -374,7 +374,7 @@ static bool checkForPrivateTemplateArgs( clang::ClassTemplateSpecializationDecl
}
static bool checkForConstTemplateArgs( clang::ClassTemplateSpecializationDecl * ctsd ) {
for (auto& ta : ctsd->getTemplateArgs().asArray()) {
for (const clang::TemplateArgument& ta : ctsd->getTemplateArgs().asArray()) {
if ( ta.getKind() == clang::TemplateArgument::Type ) {
clang::QualType qt = ta.getAsType() ;
//std::cout << qt.getAsString() << std::endl ;