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>. llvm-svn: 127776
Loading
Please register or sign in to comment