[PATCH] ASTMatchers: Implement hasNextSibling()

David Kilzer ddkilzer at kilzer.net
Thu Aug 28 09:33:31 PDT 2014


Hi klimek, krememek, jordan_rose,

In order to implement the static analyzer check in D5042 using ASTMatchers, I need the concept of a hasNextSibling() constraint.

The attached patch does not compile, but I'm wondering if I'm in the ballpark as far as implementation goes, or whether there is a better way to do this.  (See the FIXME comments in the patch for what's not implemented.)

http://reviews.llvm.org/D5105

Files:
  include/clang/ASTMatchers/ASTMatchers.h
  include/clang/ASTMatchers/ASTMatchersInternal.h
  lib/ASTMatchers/ASTMatchFinder.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5105.13043.patch
Type: text/x-patch
Size: 7426 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140828/031ef254/attachment.bin>


More information about the cfe-commits mailing list