diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-03-16 23:23:30 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-03-16 23:23:30 +0000 |
commit | 04a9eb3f0dfcc42b317057e236f73e9b196a2ff8 (patch) | |
tree | 017b1a48fa1b91257338e32972d17ef74b219c14 /lib/Driver/Tools.cpp | |
parent | 9a2927c4e6afa56ade0e5acc654f07fc658a220e (diff) |
When libclang visits a translation unit via clang_visitChildren(),
walk the preprocessing record *before* walking the declarations, so
they we pretend that we actually respect the phases of translation.
We still walk the preprocessing record after the declarations when
performing token annotation or finding the cursor at a location, since
those routines depend on those semantics.
Fixes <rdar://problem/9137195>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127776 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
0 files changed, 0 insertions, 0 deletions