Skip to content

Commit 18562fa

Browse files
faze-geekvgvassilev
authored andcommitted
Fix clang format
1 parent b633ba7 commit 18562fa

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

lib/Interpreter/CppInterOp.cpp

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,24 +1212,23 @@ namespace Cpp {
12121212
return 0;
12131213
}
12141214

1215-
TCppType_t GetVariableType(TCppScope_t var)
1216-
{
1217-
auto D = (Decl *) var;
1218-
1219-
if (auto DD = llvm::dyn_cast_or_null<DeclaratorDecl>(D)) {
1220-
QualType QT = DD->getType();
1215+
TCppType_t GetVariableType(TCppScope_t var) {
1216+
auto D = (Decl*)var;
12211217

1222-
// Check if the type is a typedef type
1223-
if (QT->isTypedefNameType()) {
1224-
return QT.getAsOpaquePtr();
1225-
}
1218+
if (auto DD = llvm::dyn_cast_or_null<DeclaratorDecl>(D)) {
1219+
QualType QT = DD->getType();
12261220

1227-
// Else, return the canonical type
1228-
QT = QT.getCanonicalType();
1229-
return QT.getAsOpaquePtr();
1221+
// Check if the type is a typedef type
1222+
if (QT->isTypedefNameType()) {
1223+
return QT.getAsOpaquePtr();
12301224
}
12311225

1232-
return 0;
1226+
// Else, return the canonical type
1227+
QT = QT.getCanonicalType();
1228+
return QT.getAsOpaquePtr();
1229+
}
1230+
1231+
return 0;
12331232
}
12341233

12351234
intptr_t GetVariableOffset(compat::Interpreter& I, Decl* D,

0 commit comments

Comments
 (0)