]> granicus.if.org Git - clang/commit
Improves RecursiveASTVisitor:
authorZhanyong Wan <wan@google.com>
Thu, 17 Jun 2010 20:56:31 +0000 (20:56 +0000)
committerZhanyong Wan <wan@google.com>
Thu, 17 Jun 2010 20:56:31 +0000 (20:56 +0000)
commit0c05a1bae9e8a57f56663991d0442a69df34a003
tree6686160c5033e4b1849a6f06c7c562e5e31bd5e0
parent03b2960c14aede6ac82bdef32247094ebb72fa69
Improves RecursiveASTVisitor:

* refactors code in DEF_TRAVERSE_DECL() into
  TraverseDeclContextHelper() to reduce code bloat and facilitate
  reuse.
* makes the order of traversing a FunctionDecl (including its
  subclasses)'s children more natural: before the function parameters
  are visited after the function body; now they are visited after the
  function type and before the function body.
* fixes a double count for function return type and arguments.

Reviewed by chandlerc and csilvers.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106236 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/RecursiveASTVisitor.h