]> granicus.if.org Git - clang/commit
[libclang] Use same USR encoding for 'class' as 'struct'.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 8 Dec 2014 08:48:33 +0000 (08:48 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 8 Dec 2014 08:48:33 +0000 (08:48 +0000)
commit03c39bf6c0bff106cc2b0f31b7c9249b23c205fe
tree009df7cc03fba5149f3748b7ff68149fedc2b19a
parent7d7ee01e1d2fbe1095eb7fd7f1df065882982211
[libclang] Use same USR encoding for 'class' as 'struct'.

'class' and 'struct' can be used interchangebly for forward references.
Use the same encoding otherwise we may get into a weird situation where the USR for the same
declaration is different based on whether the definition of the tag reference is visible or not.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@223632 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Index/USRGeneration.cpp
test/Index/comment-to-html-xml-conversion.cpp
test/Index/cxx11-lambdas.cpp
test/Index/index-templates.cpp
test/Index/usrs-cxx0x.cpp
test/Index/usrs.cpp