Skip to content

Commit 2a4db32

Browse files
apply changes from code review (GitHub Bot)
1 parent f47cc03 commit 2a4db32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Interpreter/CppInterOp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3078,12 +3078,12 @@ namespace Cpp {
30783078
}
30793079

30803080
void GetEnums(TCppScope_t scope, std::vector<std::string>& Result) {
3081-
auto* D = (clang::Decl*)scope;
3081+
auto* D = static_cast<clang::Decl*>(scope);
30823082

30833083
if (!llvm::isa_and_nonnull<clang::DeclContext>(D))
30843084
return;
30853085

3086-
clang::DeclContext* DC = llvm::dyn_cast<clang::DeclContext>(D);
3086+
auto* DC = llvm::dyn_cast<clang::DeclContext>(D);
30873087

30883088
llvm::SmallVector<clang::DeclContext*, 4> DCs;
30893089
DC->collectAllContexts(DCs);

0 commit comments

Comments
 (0)