Skip to content
Snippets Groups Projects
Commit 284a9fb2 authored by Vassil Vassilev's avatar Vassil Vassilev
Browse files

[backport][clang] Backport r328404: "[ODRHash] Support pointer and reference types."

parent 233f07f5
No related branches found
No related tags found
No related merge requests found
......@@ -563,6 +563,24 @@ public:
VisitFunctionType(T);
}
void VisitPointerType(const PointerType *T) {
AddQualType(T->getPointeeType());
VisitType(T);
}
void VisitReferenceType(const ReferenceType *T) {
AddQualType(T->getPointeeTypeAsWritten());
VisitType(T);
}
void VisitLValueReferenceType(const LValueReferenceType *T) {
VisitReferenceType(T);
}
void VisitRValueReferenceType(const RValueReferenceType *T) {
VisitReferenceType(T);
}
void VisitTypedefType(const TypedefType *T) {
AddDecl(T->getDecl());
QualType UnderlyingType = T->getDecl()->getUnderlyingType();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment