diff options
author | John McCall <rjmccall@apple.com> | 2010-01-27 01:50:18 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-01-27 01:50:18 +0000 |
commit | c373d48502ca7683ab55385f5bd624d778eb288d (patch) | |
tree | 0de412804faa62614dc3ee788df2b4e95c80a8c8 /include/clang/AST/UnresolvedSet.h | |
parent | d2bf0cdca441216b0ae7791a59516beac403682d (diff) |
Implement access control for overloaded functions. Suppress access control
diagnostics in "early" lookups, such as during typename checks and when building
unresolved lookup expressions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94647 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/AST/UnresolvedSet.h')
-rw-r--r-- | include/clang/AST/UnresolvedSet.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/clang/AST/UnresolvedSet.h b/include/clang/AST/UnresolvedSet.h index 055d152646..d2e33edf08 100644 --- a/include/clang/AST/UnresolvedSet.h +++ b/include/clang/AST/UnresolvedSet.h @@ -137,6 +137,11 @@ public: *I.ir = DeclEntry(New, AS); } + void erase(unsigned I) { + decls()[I] = decls().back(); + decls().pop_back(); + } + void erase(iterator I) { *I.ir = decls().back(); decls().pop_back(); |