]> granicus.if.org Git - clang/commit
[index/AST] Determine if a typedef shares a name and spelling location with its under...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 21 Mar 2017 16:56:02 +0000 (16:56 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 21 Mar 2017 16:56:02 +0000 (16:56 +0000)
commit8cf917cee9be14451db612919d64a356b8396bd7
tree71c9b5aaaa342331bf202783257fa99ce7b9ea72
parentd49e8364d3107404aeea2d4ffae3bc8cd8830366
[index/AST] Determine if a typedef shares a name and spelling location with its underlying tag type

In such a case, as when using the NS_ENUM macro, for indexing purposes treat the typedef as 'transparent',
meaning we treat its references as symbols of the underlying tag symbol.
Also provide a libclang API to check for such typedefs.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@298392 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang-c/Index.h
include/clang/AST/Decl.h
lib/AST/Decl.cpp
lib/Index/IndexDecl.cpp
lib/Index/IndexTypeSourceInfo.cpp
test/Index/Core/index-source.m
test/Index/get-cursor.m
tools/c-index-test/c-index-test.c
tools/libclang/CXType.cpp
tools/libclang/libclang.exports