diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-11-10 01:18:17 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-11-10 01:18:17 +0000 |
commit | d777e2845110469182809e4efc577899395805f7 (patch) | |
tree | 68267a297529091ba38222cc5dae574051938afb /include/clang/AST/DeclCXX.h | |
parent | c4027c82ad4a61f2da1b893ac8fe47bf11e5d50d (diff) |
Diagnostic circular inheritance involving dependent base classes. We
would have diagnosed this at instantiation time anyway, if only we
didn't hang on all of these test cases. Fixes <rdar://problem/12629723>
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167651 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/AST/DeclCXX.h')
-rw-r--r-- | include/clang/AST/DeclCXX.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/clang/AST/DeclCXX.h b/include/clang/AST/DeclCXX.h index 9cb56e2b3c..d5d66fcd96 100644 --- a/include/clang/AST/DeclCXX.h +++ b/include/clang/AST/DeclCXX.h @@ -1322,8 +1322,12 @@ public: /// \param AllowShortCircuit if false, forces the callback to be called /// for every base class, even if a dependent or non-matching base was /// found. + /// + /// \param VisitDependent whether we should also visit dependent bases + /// that can be resolved to CXXRecordDecls. bool forallBases(ForallBasesCallback *BaseMatches, void *UserData, - bool AllowShortCircuit = true) const; + bool AllowShortCircuit = true, + bool VisitDependent = false) const; /// \brief Function type used by lookupInBases() to determine whether a /// specific base class subobject matches the lookup criteria. |