[Lldb-commits] [lldb] [WIP][lldb] Use forward decls with redeclared definitions instead of minimal import for records (PR #95100)

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Fri Jun 14 13:49:38 PDT 2024


================
@@ -279,9 +281,16 @@ class SemaSourceWithPriorities : public clang::ExternalSemaSource {
     return nullptr;
   }
 
+  /// Call ExternalASTSource::CompleteRedeclChain(D)
+  /// on each AST source. Returns as soon as we got
+  /// a definition for D.
   void CompleteRedeclChain(const clang::Decl *D) override {
-    for (size_t i = 0; i < Sources.size(); ++i)
+    for (size_t i = 0; i < Sources.size(); ++i) {
----------------
adrian-prantl wrote:

while we're here: `for (auto source : Sources)`?

https://github.com/llvm/llvm-project/pull/95100


More information about the lldb-commits mailing list