Skip to content

Commit e0a0547

Browse files
committed
chore: remove USR generation workaround for decayed function parameters
1 parent 34204a0 commit e0a0547

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/lib/AST/ASTVisitor.cpp

-13
Original file line numberDiff line numberDiff line change
@@ -616,19 +616,6 @@ class ASTVisitor
616616
if(! (D = FD->getFriendDecl()))
617617
return true;
618618
}
619-
// functions require their parameter types to be decayed
620-
// prior to USR generator to ensure that declarations
621-
// with parameter types which decay to the same type
622-
// generate the same USR
623-
if(const auto* FD = dyn_cast<FunctionDecl>(D))
624-
{
625-
// apply the type adjustments specified in [dcl.fct] p5
626-
// to ensure that the USR of the corresponding function matches
627-
// other declarations of the function that have parameters declared
628-
// with different top-level cv-qualifiers.
629-
for(ParmVarDecl* P : FD->parameters())
630-
P->setType(context_.getSignatureParameterType(P->getType()));
631-
}
632619
return index::generateUSRForDecl(D, usr_);
633620
}
634621

0 commit comments

Comments
 (0)