We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f47cc03 commit 2a4db32Copy full SHA for 2a4db32
lib/Interpreter/CppInterOp.cpp
@@ -3078,12 +3078,12 @@ namespace Cpp {
3078
}
3079
3080
void GetEnums(TCppScope_t scope, std::vector<std::string>& Result) {
3081
- auto* D = (clang::Decl*)scope;
+ auto* D = static_cast<clang::Decl*>(scope);
3082
3083
if (!llvm::isa_and_nonnull<clang::DeclContext>(D))
3084
return;
3085
3086
- clang::DeclContext* DC = llvm::dyn_cast<clang::DeclContext>(D);
+ auto* DC = llvm::dyn_cast<clang::DeclContext>(D);
3087
3088
llvm::SmallVector<clang::DeclContext*, 4> DCs;
3089
DC->collectAllContexts(DCs);
0 commit comments