[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)
commitf66cef75757ae3c35ad1ce18c6efe22b82a1903e
treee613abb7b944a1c5c9d1314d5f220f42ee3c792d
parent0e387dc33096346c5aa60c341f38784fc0ddcbb7
[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.

llvm-svn: 223632
clang/lib/Index/USRGeneration.cpp
clang/test/Index/comment-to-html-xml-conversion.cpp
clang/test/Index/cxx11-lambdas.cpp
clang/test/Index/index-templates.cpp
clang/test/Index/usrs-cxx0x.cpp
clang/test/Index/usrs.cpp