[Lldb-commits] [lldb] e566dd7 - [lldb] Delete some commented out code in ClangASTSource.cpp
Alex Langford via lldb-commits
lldb-commits at lists.llvm.org
Tue Mar 3 13:18:30 PST 2020
Author: Alex Langford
Date: 2020-03-03T13:17:21-08:00
New Revision: e566dd733d642052cf261c20e0e82f18b8e3d6fe
URL: https://github.com/llvm/llvm-project/commit/e566dd733d642052cf261c20e0e82f18b8e3d6fe
DIFF: https://github.com/llvm/llvm-project/commit/e566dd733d642052cf261c20e0e82f18b8e3d6fe.diff
LOG: [lldb] Delete some commented out code in ClangASTSource.cpp
Added:
Modified:
lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
index 31caaedb5b69..4d98d9cbdda3 100644
--- a/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
+++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
@@ -110,9 +110,6 @@ bool ClangASTSource::FindExternalVisibleDeclsByName(
std::string decl_name(clang_decl_name.getAsString());
- // if (m_decl_map.DoingASTImport ())
- // return DeclContext::lookup_result();
- //
switch (clang_decl_name.getNameKind()) {
// Normal identifiers.
case DeclarationName::Identifier: {
@@ -179,16 +176,11 @@ bool ClangASTSource::FindExternalVisibleDeclsByName(
return false;
}
m_active_lookups.insert(uniqued_const_decl_name);
- // static uint32_t g_depth = 0;
- // ++g_depth;
- // printf("[%5u] FindExternalVisibleDeclsByName() \"%s\"\n", g_depth,
- // uniqued_const_decl_name);
llvm::SmallVector<NamedDecl *, 4> name_decls;
NameSearchContext name_search_context(*m_clang_ast_context, name_decls,
clang_decl_name, decl_ctx);
FindExternalVisibleDecls(name_search_context);
SetExternalVisibleDeclsForName(decl_ctx, clang_decl_name, name_decls);
- // --g_depth;
m_active_lookups.erase(uniqued_const_decl_name);
return (name_decls.size() != 0);
}
More information about the lldb-commits
mailing list