mirror of
https://github.com/nasa/trick.git
synced 2024-12-19 05:07:54 +00:00
Alex doesn't like auto #341
Granted, there are times you shouldn't hide the type.
This commit is contained in:
parent
5898f3fdec
commit
29b0d2d223
@ -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 ;
|
||||
|
Loading…
Reference in New Issue
Block a user