diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-08-14 01:14:06 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-08-14 01:14:06 +0000 |
commit | 3f4046004be223b03f1f895bb934e44921ccf805 (patch) | |
tree | b8677a28f84477e091cf785c379e81e0b1cd1240 /lib/CodeGen/CodeGenFunction.cpp | |
parent | 87c08a5d6b9e1e44ae6f554df40139d3a6f60b33 (diff) |
As a heuristic, annotate tokens (via clang_annotateTokens) that are the arguments of a macro instantiation using the closest cursor with the same spelling location. Because macro arguments can get token pasted in any arbitrary order, we use the annotation map to paper over the token -> cursor annotations during our post-processing stage. This fixes most of <rdar://problem/8044584>, but still doesn't work for assert().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111062 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions