diff options
author | Florian Gross <fgross@noexcept.net> | 2017-08-04 18:59:19 +0000 |
---|---|---|
committer | Florian Gross <fgross@noexcept.net> | 2017-08-04 18:59:19 +0000 |
commit | 4a72b4db55a8ad711ef70d7b80ef60c822ab77f7 (patch) | |
tree | 22bdae7ed57b0ee2e05be788a175470428680fe8 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | a11f63a952664f700f076fd754476a2b9eb158cc (diff) | |
download | bcm5719-llvm-4a72b4db55a8ad711ef70d7b80ef60c822ab77f7.tar.gz bcm5719-llvm-4a72b4db55a8ad711ef70d7b80ef60c822ab77f7.zip |
[ASTMatcher] Add handling for DeducedType to HasDeclarationMatcher
HasDeclarationMatcher did not handle DeducedType, it always returned false for deduced types.
So with code like this:
struct X{};
auto x = X{};
This did no longer match:
varDecl(hasType(recordDecl(hasName("X"))))
Because HasDeclarationMatcher didn't resolve the DeducedType of x.
Differential Revision: https://reviews.llvm.org/D36308
llvm-svn: 310095
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions