Skip to content

Commit

Permalink
Remove unused filter param
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronj0 committed Apr 4, 2024
1 parent 4ef5e76 commit ea63124
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
5 changes: 2 additions & 3 deletions include/clang/Interpreter/CppInterOp.h
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,8 @@ namespace Cpp {
TCppScope_t parent = nullptr);

CPPINTEROP_API std::vector<TCppFunction_t>
GetTemplatedMethods(const std::string& name, TCppScope_t parent = nullptr,
const std::string& filter = "");

GetTemplatedMethods(const std::string& name, TCppScope_t parent = nullptr);

/// Checks if the provided parameter is a method.
CPPINTEROP_API bool IsMethod(TCppConstFunction_t method);

Expand Down
15 changes: 6 additions & 9 deletions lib/Interpreter/CppInterOp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -730,17 +730,16 @@ namespace Cpp {
if (D && isa<CXXRecordDecl>(D)) {
auto* CXXRD = dyn_cast<CXXRecordDecl>(D);
getSema().ForceDeclarationOfImplicitMembers(CXXRD);
for (Decl* DI : CXXRD->decls()) {
if (auto* MD = dyn_cast<CXXMethodDecl>(DI))
for (Decl* DI : CXXRD->decls()) {
if (auto* MD = dyn_cast<CXXMethodDecl>(DI))
methods.push_back(MD);
else if (auto* USD = dyn_cast<UsingShadowDecl>(DI))
if (auto* MD = dyn_cast<CXXMethodDecl>(USD->getTargetDecl()))
methods.push_back(MD);
else if (auto* USD = dyn_cast<UsingShadowDecl>(DI))
if (auto* MD = dyn_cast<CXXMethodDecl>(USD->getTargetDecl()))
methods.push_back(MD);
}
}
}
}


void GetFunctionTemplatedDecls(TCppScope_t klass,
std::vector<TCppFunction_t>& methods) {
Expand All @@ -763,7 +762,6 @@ namespace Cpp {
}
}
}


bool HasDefaultConstructor(TCppScope_t scope) {
auto *D = (clang::Decl *) scope;
Expand Down Expand Up @@ -979,8 +977,7 @@ namespace Cpp {
}

std::vector<TCppFunction_t> GetTemplatedMethods(const std::string& name,
TCppScope_t parent,
const std::string& filter) {
TCppScope_t parent) {

auto* D = (Decl*)parent;

Expand Down

0 comments on commit ea63124

Please sign in to comment.