diff options
author | Brad King <brad.king@kitware.com> | 2015-03-23 18:03:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-03-23 18:13:00 (GMT) |
commit | 84468ce2d9e4ea7528600a96fc62b4280d442dd7 (patch) | |
tree | 45c6cb40f6ce16dfb0995dfc87d8c7d4c552733f /src | |
parent | e86f4c65cdb0b1823fdcfa17038ba852990c8b79 (diff) | |
download | CastXML-84468ce2d9e4ea7528600a96fc62b4280d442dd7.zip CastXML-84468ce2d9e4ea7528600a96fc62b4280d442dd7.tar.gz CastXML-84468ce2d9e4ea7528600a96fc62b4280d442dd7.tar.bz2 |
Port to LLVM/Clang SVN r232962 (trunk)
Clang renamed clang::DeclContext::{lookup_const_result => lookup_result}.
Use "auto" to automatically match either of these.
Update test expected output to match the lack of throws="" on
destructors in C++98 mode.
Diffstat (limited to 'src')
-rw-r--r-- | src/Output.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Output.cxx b/src/Output.cxx index 2608704..8a387cb 100644 --- a/src/Output.cxx +++ b/src/Output.cxx @@ -1642,8 +1642,7 @@ void ASTVisitor::LookupStart(clang::DeclContext const* dc, std::string cur = name.substr(0, pos); clang::IdentifierTable& ids = CI.getPreprocessor().getIdentifierTable(); - clang::DeclContext::lookup_const_result result = - dc->lookup(clang::DeclarationName(&ids.get(cur))); + auto const& result = dc->lookup(clang::DeclarationName(&ids.get(cur))); if(pos == name.npos) { for (clang::NamedDecl const* n: result) { this->AddStartDecl(n); |