Skip to content

Commit d218666

Browse files
committed
Fix clang format
1 parent e21372a commit d218666

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
@@ -1202,24 +1202,23 @@ namespace Cpp {
12021202
return 0;
12031203
}
12041204

1205-
TCppType_t GetVariableType(TCppScope_t var)
1206-
{
1207-
auto D = (Decl *) var;
1208-
1209-
if (auto DD = llvm::dyn_cast_or_null<DeclaratorDecl>(D)) {
1210-
QualType QT = DD->getType();
1205+
TCppType_t GetVariableType(TCppScope_t var) {
1206+
auto D = (Decl*)var;
12111207

1212-
// Check if the type is a typedef type
1213-
if (QT->isTypedefNameType()) {
1214-
return QT.getAsOpaquePtr();
1215-
}
1208+
if (auto DD = llvm::dyn_cast_or_null<DeclaratorDecl>(D)) {
1209+
QualType QT = DD->getType();
12161210

1217-
// Else, return the canonical type
1218-
QT = QT.getCanonicalType();
1219-
return QT.getAsOpaquePtr();
1211+
// Check if the type is a typedef type
1212+
if (QT->isTypedefNameType()) {
1213+
return QT.getAsOpaquePtr();
12201214
}
12211215

1222-
return 0;
1216+
// Else, return the canonical type
1217+
QT = QT.getCanonicalType();
1218+
return QT.getAsOpaquePtr();
1219+
}
1220+
1221+
return 0;
12231222
}
12241223

12251224
intptr_t GetVariableOffset(compat::Interpreter& I, Decl* D) {

0 commit comments

Comments
 (0)