[ASTImporter] Support functions with placeholder return types ...
authorGabor Marton <gabor.marton@ericsson.com>
Thu, 12 Dec 2019 16:13:35 +0000 (17:13 +0100)
committerGabor Marton <gabor.marton@ericsson.com>
Thu, 12 Dec 2019 16:49:03 +0000 (17:49 +0100)
commit25234fd69e32e51bc800686075265f535d69d990
tree09abce424fd366e878c476720de566867d0b9bc7
parent11b2b2f4b10023585cfc53e0dfd06441532ab954
[ASTImporter] Support functions with placeholder return types ...

Summary:
Support functions with placeholder return types even in cases when the type is
declared in the body of the function.
Example: auto f() { struct X{}; return X(); }

Reviewers: balazske, a_sidorin, a.sidorin, shafik

Subscribers: rnkovacs, dkrupp, Szelethus, gamesh411, teemperor, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D70819
clang/lib/AST/ASTImporter.cpp
clang/unittests/AST/ASTImporterTest.cpp
clang/unittests/AST/Language.cpp
clang/unittests/AST/Language.h
clang/unittests/AST/MatchVerifier.h