Skip to content

Commit f41d709

Browse files
add fixme comment to use lookups instead of brute force in GetEnums
1 parent 2a4db32 commit f41d709

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Interpreter/CppInterOp.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3088,6 +3088,7 @@ namespace Cpp {
30883088
llvm::SmallVector<clang::DeclContext*, 4> DCs;
30893089
DC->collectAllContexts(DCs);
30903090

3091+
// FIXME: We should use a lookup based approach instead of brute force
30913092
for (auto* DC : DCs) {
30923093
for (auto decl = DC->decls_begin(); decl != DC->decls_end(); decl++) {
30933094
if (auto* ND = llvm::dyn_cast_or_null<EnumDecl>(*decl)) {

0 commit comments

Comments
 (0)