diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2015-07-24 15:47:32 +0000 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2015-07-24 15:47:32 +0000 |
| commit | 3ba6fd294e7eb5350f4410bdc990d36d6eef75fb (patch) | |
| tree | c39448827b40d6e43379e40b2d21769bd7aa355f /clang | |
| parent | 566060d76fb2e2f8e74c974d95f76cb1826ce692 (diff) | |
| download | bcm5719-llvm-3ba6fd294e7eb5350f4410bdc990d36d6eef75fb.tar.gz bcm5719-llvm-3ba6fd294e7eb5350f4410bdc990d36d6eef75fb.zip | |
Correcting some comments. (1) the function is named throughUsingDecl() and not throughUsingDeclaration(). (2) Testing shows that this does work for shadowed variables as well as shadowed functions. I could not find an example where this matcher was failing. NFC.
llvm-svn: 243111
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/include/clang/ASTMatchers/ASTMatchers.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/include/clang/ASTMatchers/ASTMatchers.h b/clang/include/clang/ASTMatchers/ASTMatchers.h index a4aa8c8688d..cdd56fad4cb 100644 --- a/clang/include/clang/ASTMatchers/ASTMatchers.h +++ b/clang/include/clang/ASTMatchers/ASTMatchers.h @@ -2367,8 +2367,6 @@ AST_MATCHER_P(DeclRefExpr, to, internal::Matcher<Decl>, /// \brief Matches a \c DeclRefExpr that refers to a declaration through a /// specific using shadow declaration. /// -/// FIXME: This currently only works for functions. Fix. -/// /// Given /// \code /// namespace a { void f() {} } @@ -2378,7 +2376,7 @@ AST_MATCHER_P(DeclRefExpr, to, internal::Matcher<Decl>, /// a::f(); // .. but not this. /// } /// \endcode -/// declRefExpr(throughUsingDeclaration(anything())) +/// declRefExpr(throughUsingDecl(anything())) /// matches \c f() AST_MATCHER_P(DeclRefExpr, throughUsingDecl, internal::Matcher<UsingShadowDecl>, InnerMatcher) { |

