[PATCH] D22955: [MSVC] Improved late parsing of template functions.

David Majnemer via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 12 10:50:26 PDT 2016


majnemer added inline comments.


================
Comment at: lib/Sema/SemaLookup.cpp:1044-1070
+static bool isBaseClass(const CXXRecordDecl *Record, CXXRecordDecl *Base) {
+  SmallVector<const CXXRecordDecl *, 8> Queue;
+
+  while (true) {
+    for (const auto &I : Record->bases()) {
+      const RecordType *Ty = I.getType()->getAs<RecordType>();
+      if (!Ty)
----------------
This looks a lot like forallBases, any chance it could be reused?


https://reviews.llvm.org/D22955





More information about the cfe-commits mailing list