diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2012-04-16 02:51:46 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2012-04-16 02:51:46 +0000 |
commit | 2bd0ab2b11e173aa970bb531cf98750d7ee72287 (patch) | |
tree | d1a444b68d1319ba3e17a7bd7565d014c180665d /clang/lib/AST/ExternalASTSource.cpp | |
parent | ccc7e42b1f190676f9b42edf202e6da0a7f364b9 (diff) | |
download | bcm5719-llvm-2bd0ab2b11e173aa970bb531cf98750d7ee72287.tar.gz bcm5719-llvm-2bd0ab2b11e173aa970bb531cf98750d7ee72287.zip |
Implement the all_lookups_iterator for PCH as a follow-up to r153970. This
includes a patch from Matthias Kleine with a regression testcase!
Adds a new iterator 'data_iterator' to OnDiskHashTable which doesn't try to
reconstruct the external_key from the internal_key, which is useful for traits
that don't store enough information to do that mapping in their key. Also
deletes the 'item_iterator' from OnDiskHashTable as dead code.
llvm-svn: 154784
Diffstat (limited to 'clang/lib/AST/ExternalASTSource.cpp')
-rw-r--r-- | clang/lib/AST/ExternalASTSource.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/AST/ExternalASTSource.cpp b/clang/lib/AST/ExternalASTSource.cpp index fd616dbc9d2..6b9fe26ccc9 100644 --- a/clang/lib/AST/ExternalASTSource.cpp +++ b/clang/lib/AST/ExternalASTSource.cpp @@ -49,7 +49,10 @@ ExternalASTSource::FindExternalVisibleDeclsByName(const DeclContext *DC, return DeclContext::lookup_result(); } -ExternalLoadResult +void ExternalASTSource::completeVisibleDeclsMap(const DeclContext *DC) { +} + +ExternalLoadResult ExternalASTSource::FindExternalLexicalDecls(const DeclContext *DC, bool (*isKindWeWant)(Decl::Kind), SmallVectorImpl<Decl*> &Result) { |