mirror of
https://github.com/nasa/trick.git
synced 2025-04-07 19:34:23 +00:00
Move one-time-use variables into their call site #341
This commit is contained in:
parent
29b0d2d223
commit
664797e391
@ -361,9 +361,7 @@ static bool checkForPrivateTemplateArgs( clang::ClassTemplateSpecializationDecl
|
||||
if (t->getTypeClass() == clang::Type::Record ) {
|
||||
clang::CXXRecordDecl * crd = t->getAsCXXRecordDecl() ;
|
||||
if ( clang::isa<clang::ClassTemplateSpecializationDecl>(crd) ) {
|
||||
clang::ClassTemplateSpecializationDecl * inner_ctsd ;
|
||||
inner_ctsd = clang::cast<clang::ClassTemplateSpecializationDecl>(crd) ;
|
||||
return checkForPrivateTemplateArgs(inner_ctsd) ;
|
||||
return checkForPrivateTemplateArgs(clang::cast<clang::ClassTemplateSpecializationDecl>(crd)) ;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -388,9 +386,7 @@ static bool checkForConstTemplateArgs( clang::ClassTemplateSpecializationDecl *
|
||||
if (t->getTypeClass() == clang::Type::Record ) {
|
||||
clang::CXXRecordDecl * crd = t->getAsCXXRecordDecl() ;
|
||||
if ( clang::isa<clang::ClassTemplateSpecializationDecl>(crd) ) {
|
||||
clang::ClassTemplateSpecializationDecl * inner_ctsd ;
|
||||
inner_ctsd = clang::cast<clang::ClassTemplateSpecializationDecl>(crd) ;
|
||||
return checkForConstTemplateArgs(inner_ctsd) ;
|
||||
return checkForConstTemplateArgs(clang::cast<clang::ClassTemplateSpecializationDecl>(crd)) ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user