https://llvm.org/bugs/show_bug.cgi?id=28405
Bug ID: 28405
Summary: Duplicate USR generated for typedefs in template
classes
Product: clang
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: libclang
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
#include <string>
template <typename T>
class variant
{
private:
typedef std::aligned_storage<16, 8>::type data_type;
data_type data;
variant<int>* specializeTypeAliasTemplate;
};
If the above code is parsed with the Clang API, the USR for "data_type" is the
same for "variant" and "variant<int>". The problem is in
USRGenerator::VisitTypedefDecl
(http://clang.llvm.org/doxygen/USRGeneration_8cpp_source.html, line 511 at the
time of writing). It handles the declaration context just as a NamedDecl which
in the case of a template and one of its specialisations results in the same
string.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs