[ASTMatchers] Make hasOverloadedOperatorName also match freestanding overloads.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 14 Jul 2014 14:05:02 +0000 (14:05 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 14 Jul 2014 14:05:02 +0000 (14:05 +0000)
commit09514492cc10922f2fada290ff8c2244879dc184
tree8d82d294e6151926a2c56d5917fcefec770a8fb6
parent8e254166e1d23bc5a8430f83a23153782961b007
[ASTMatchers] Make hasOverloadedOperatorName also match freestanding overloads.

Freestanding overloads are represented as FunctionDecls in the AST, make
the matcher also match them.

Differential Revision: http://reviews.llvm.org/D4493

llvm-svn: 212940
clang/include/clang/ASTMatchers/ASTMatchers.h
clang/include/clang/ASTMatchers/ASTMatchersInternal.h
clang/unittests/ASTMatchers/ASTMatchersTest.cpp