Skip to content

Commit

Permalink
chore: remove USR generation workaround for decayed function parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
sdkrystian committed May 27, 2024
1 parent 34204a0 commit e0a0547
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/lib/AST/ASTVisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -616,19 +616,6 @@ class ASTVisitor
if(! (D = FD->getFriendDecl()))
return true;
}
// functions require their parameter types to be decayed
// prior to USR generator to ensure that declarations
// with parameter types which decay to the same type
// generate the same USR
if(const auto* FD = dyn_cast<FunctionDecl>(D))
{
// apply the type adjustments specified in [dcl.fct] p5
// to ensure that the USR of the corresponding function matches
// other declarations of the function that have parameters declared
// with different top-level cv-qualifiers.
for(ParmVarDecl* P : FD->parameters())
P->setType(context_.getSignatureParameterType(P->getType()));
}
return index::generateUSRForDecl(D, usr_);
}

Expand Down

0 comments on commit e0a0547

Please sign in to comment.