diff options
author | Zhanyong Wan <wan@google.com> | 2010-06-17 20:56:31 +0000 |
---|---|---|
committer | Zhanyong Wan <wan@google.com> | 2010-06-17 20:56:31 +0000 |
commit | 0c05a1bae9e8a57f56663991d0442a69df34a003 (patch) | |
tree | 6686160c5033e4b1849a6f06c7c562e5e31bd5e0 /lib/Analysis/PrintfFormatString.cpp | |
parent | 03b2960c14aede6ac82bdef32247094ebb72fa69 (diff) |
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
Diffstat (limited to 'lib/Analysis/PrintfFormatString.cpp')
0 files changed, 0 insertions, 0 deletions