forked from OSchip/llvm-project
Appease MSVC 2013 a few more times, which was complaining about a syntax error with an unexpected close curly brace. For some reason, the range-based for loop requires curly braces to compile in MSVC.
llvm-svn: 241579
This commit is contained in:
parent
d6678c8bb7
commit
d36fd7de66
|
@ -940,8 +940,9 @@ DEF_TRAVERSE_TYPE(ObjCObjectType, {
|
|||
// type is itself.
|
||||
if (T->getBaseType().getTypePtr() != T)
|
||||
TRY_TO(TraverseType(T->getBaseType()));
|
||||
for (auto typeArg : T->getTypeArgsAsWritten())
|
||||
for (auto typeArg : T->getTypeArgsAsWritten()) {
|
||||
TRY_TO(TraverseType(typeArg));
|
||||
}
|
||||
})
|
||||
|
||||
DEF_TRAVERSE_TYPE(ObjCObjectPointerType,
|
||||
|
@ -1312,8 +1313,9 @@ DEF_TRAVERSE_DECL(ObjCCompatibleAliasDecl, {// FIXME: implement
|
|||
|
||||
DEF_TRAVERSE_DECL(ObjCCategoryDecl, {// FIXME: implement
|
||||
if (ObjCTypeParamList *typeParamList = D->getTypeParamList()) {
|
||||
for (auto typeParam : *typeParamList)
|
||||
for (auto typeParam : *typeParamList) {
|
||||
TRY_TO(TraverseObjCTypeParamDecl(typeParam));
|
||||
}
|
||||
}
|
||||
return true;
|
||||
})
|
||||
|
@ -1326,8 +1328,9 @@ DEF_TRAVERSE_DECL(ObjCImplementationDecl, {// FIXME: implement
|
|||
|
||||
DEF_TRAVERSE_DECL(ObjCInterfaceDecl, {// FIXME: implement
|
||||
if (ObjCTypeParamList *typeParamList = D->getTypeParamListAsWritten()) {
|
||||
for (auto typeParam : *typeParamList)
|
||||
for (auto typeParam : *typeParamList) {
|
||||
TRY_TO(TraverseObjCTypeParamDecl(typeParam));
|
||||
}
|
||||
}
|
||||
|
||||
if (TypeSourceInfo *superTInfo = D->getSuperClassTInfo()) {
|
||||
|
|
|
@ -1008,8 +1008,9 @@ DEF_TRAVERSE_TYPE(ObjCObjectType, {
|
|||
// type is itself.
|
||||
if (T->getBaseType().getTypePtr() != T)
|
||||
TRY_TO(TraverseType(T->getBaseType()));
|
||||
for (auto typeArg : T->getTypeArgsAsWritten())
|
||||
for (auto typeArg : T->getTypeArgsAsWritten()) {
|
||||
TRY_TO(TraverseType(typeArg));
|
||||
}
|
||||
})
|
||||
|
||||
DEF_TRAVERSE_TYPE(ObjCObjectPointerType,
|
||||
|
@ -1401,8 +1402,9 @@ DEF_TRAVERSE_DECL(ObjCImplementationDecl, {// FIXME: implement
|
|||
|
||||
DEF_TRAVERSE_DECL(ObjCInterfaceDecl, {// FIXME: implement
|
||||
if (ObjCTypeParamList *typeParamList = D->getTypeParamListAsWritten()) {
|
||||
for (auto typeParam : *typeParamList)
|
||||
for (auto typeParam : *typeParamList) {
|
||||
TRY_TO(TraverseObjCTypeParamDecl(typeParam));
|
||||
}
|
||||
}
|
||||
|
||||
if (TypeSourceInfo *superTInfo = D->getSuperClassTInfo()) {
|
||||
|
|
Loading…
Reference in New Issue