Skip to content

Commit feb49bb

Browse files
author
Nour1248
authored
[clangd] Fix typo in function name in AST.cpp (#77504)
1 parent 5f71aa9 commit feb49bb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

clang-tools-extra/clangd/AST.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ const TemplateTypeParmType *getFunctionPackType(const FunctionDecl *Callee) {
757757
// Returns the template parameter pack type that this parameter was expanded
758758
// from (if in the Args... or Args&... or Args&&... form), if this is the case,
759759
// nullptr otherwise.
760-
const TemplateTypeParmType *getUnderylingPackType(const ParmVarDecl *Param) {
760+
const TemplateTypeParmType *getUnderlyingPackType(const ParmVarDecl *Param) {
761761
const auto *PlainType = Param->getType().getTypePtr();
762762
if (auto *RT = dyn_cast<ReferenceType>(PlainType))
763763
PlainType = RT->getPointeeTypeAsWritten().getTypePtr();
@@ -793,8 +793,8 @@ class ForwardingCallVisitor
793793
: public RecursiveASTVisitor<ForwardingCallVisitor> {
794794
public:
795795
ForwardingCallVisitor(ArrayRef<const ParmVarDecl *> Parameters)
796-
: Parameters{Parameters}, PackType{getUnderylingPackType(
797-
Parameters.front())} {}
796+
: Parameters{Parameters},
797+
PackType{getUnderlyingPackType(Parameters.front())} {}
798798

799799
bool VisitCallExpr(CallExpr *E) {
800800
auto *Callee = getCalleeDeclOrUniqueOverload(E);
@@ -859,7 +859,7 @@ class ForwardingCallVisitor
859859
if (const auto *TTPT = getFunctionPackType(Callee)) {
860860
// In this case: Separate the parameters into head, pack and tail
861861
auto IsExpandedPack = [&](const ParmVarDecl *P) {
862-
return getUnderylingPackType(P) == TTPT;
862+
return getUnderlyingPackType(P) == TTPT;
863863
};
864864
ForwardingInfo FI;
865865
FI.Head = MatchingParams.take_until(IsExpandedPack);
@@ -964,7 +964,7 @@ resolveForwardingParameters(const FunctionDecl *D, unsigned MaxDepth) {
964964
if (const auto *TTPT = getFunctionPackType(D)) {
965965
// Split the parameters into head, pack and tail
966966
auto IsExpandedPack = [TTPT](const ParmVarDecl *P) {
967-
return getUnderylingPackType(P) == TTPT;
967+
return getUnderlyingPackType(P) == TTPT;
968968
};
969969
ArrayRef<const ParmVarDecl *> Head = Parameters.take_until(IsExpandedPack);
970970
ArrayRef<const ParmVarDecl *> Pack =
@@ -1016,7 +1016,7 @@ resolveForwardingParameters(const FunctionDecl *D, unsigned MaxDepth) {
10161016
}
10171017

10181018
bool isExpandedFromParameterPack(const ParmVarDecl *D) {
1019-
return getUnderylingPackType(D) != nullptr;
1019+
return getUnderlyingPackType(D) != nullptr;
10201020
}
10211021

10221022
} // namespace clangd

0 commit comments

Comments
 (0)