diff options
author | Erik Verbruggen <erikjv@me.com> | 2018-04-24 08:39:46 +0000 |
---|---|---|
committer | Erik Verbruggen <erikjv@me.com> | 2018-04-24 08:39:46 +0000 |
commit | d3799d838c4843af72db6a8931af82f766f72c01 (patch) | |
tree | 0eb290e74f8c0d44b6253c1dc091f74f9e0f8592 /test/Index/preamble-reparse-import.m | |
parent | 6871058dbd44b2e7f73c4eca5d93b2f3f9dc9b07 (diff) | |
download | clang-d3799d838c4843af72db6a8931af82f766f72c01.tar.gz |
[libclang] Only mark CXCursors for explicit attributes with a type
All attributes have a source range associated with it. However, implicit
attributes are added by the compiler, and not added because the user
wrote something in the input. So no token type should be set to
CXCursor_*Attr.
The problem was visible when a class gets marked by e.g.
MSInheritanceAttr, which has the full CXXRecordDecl's range as its
own range. The effect of marking that range as CXCursor_UnexposedAttr
was that all cursors for the record decl, including all child decls,
would become CXCursor_UnexposedAttr.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@330692 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Index/preamble-reparse-import.m')
0 files changed, 0 insertions, 0 deletions