]> granicus.if.org Git - clang/commitdiff
Correcting some comments. (1) the function is named throughUsingDecl() and not throug...
authorAaron Ballman <aaron@aaronballman.com>
Fri, 24 Jul 2015 15:47:32 +0000 (15:47 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Fri, 24 Jul 2015 15:47:32 +0000 (15:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@243111 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/ASTMatchers/ASTMatchers.h

index a4aa8c8688d96db020f55c030b069a9c15be8f46..cdd56fad4cb5ad061175e1938b5e4e4eeda467ba 100644 (file)
@@ -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) {