Hi djasper,

Fixed a minor typo ( Ancsestor -> Ancestor ).
Removed an unnecessary expr().

http://llvm-reviews.chandlerc.com/D48

Files:
  include/clang/ASTMatchers/ASTMatchers.h

Index: include/clang/ASTMatchers/ASTMatchers.h
===================================================================
--- include/clang/ASTMatchers/ASTMatchers.h
+++ include/clang/ASTMatchers/ASTMatchers.h
@@ -1409,7 +1409,7 @@
 /// void f() { if (true) { int x = 42; } }
 /// void g() { for (;;) { int x = 43; } }
 /// \endcode
-/// \c expr(integerLiteral(hasAncsestor(ifStmt()))) matches \c 42, but not 43.
+/// \c integerLiteral(hasAncestor(ifStmt())) matches \c 42, but not 43.
 ///
 /// Usable as: Any Matcher
 template <typename AncestorT>
Index: include/clang/ASTMatchers/ASTMatchers.h
===================================================================
--- include/clang/ASTMatchers/ASTMatchers.h
+++ include/clang/ASTMatchers/ASTMatchers.h
@@ -1409,7 +1409,7 @@
 /// void f() { if (true) { int x = 42; } }
 /// void g() { for (;;) { int x = 43; } }
 /// \endcode
-/// \c expr(integerLiteral(hasAncsestor(ifStmt()))) matches \c 42, but not 43.
+/// \c integerLiteral(hasAncestor(ifStmt())) matches \c 42, but not 43.
 ///
 /// Usable as: Any Matcher
 template <typename AncestorT>
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to