@@ -757,7 +757,7 @@ const TemplateTypeParmType *getFunctionPackType(const FunctionDecl *Callee) {
757
757
// Returns the template parameter pack type that this parameter was expanded
758
758
// from (if in the Args... or Args&... or Args&&... form), if this is the case,
759
759
// nullptr otherwise.
760
- const TemplateTypeParmType *getUnderylingPackType (const ParmVarDecl *Param) {
760
+ const TemplateTypeParmType *getUnderlyingPackType (const ParmVarDecl *Param) {
761
761
const auto *PlainType = Param->getType ().getTypePtr ();
762
762
if (auto *RT = dyn_cast<ReferenceType>(PlainType))
763
763
PlainType = RT->getPointeeTypeAsWritten ().getTypePtr ();
@@ -793,8 +793,8 @@ class ForwardingCallVisitor
793
793
: public RecursiveASTVisitor<ForwardingCallVisitor> {
794
794
public:
795
795
ForwardingCallVisitor (ArrayRef<const ParmVarDecl *> Parameters)
796
- : Parameters{Parameters}, PackType{ getUnderylingPackType (
797
- Parameters.front ())} {}
796
+ : Parameters{Parameters},
797
+ PackType{ getUnderlyingPackType ( Parameters.front ())} {}
798
798
799
799
bool VisitCallExpr (CallExpr *E) {
800
800
auto *Callee = getCalleeDeclOrUniqueOverload (E);
@@ -859,7 +859,7 @@ class ForwardingCallVisitor
859
859
if (const auto *TTPT = getFunctionPackType (Callee)) {
860
860
// In this case: Separate the parameters into head, pack and tail
861
861
auto IsExpandedPack = [&](const ParmVarDecl *P) {
862
- return getUnderylingPackType (P) == TTPT;
862
+ return getUnderlyingPackType (P) == TTPT;
863
863
};
864
864
ForwardingInfo FI;
865
865
FI.Head = MatchingParams.take_until (IsExpandedPack);
@@ -964,7 +964,7 @@ resolveForwardingParameters(const FunctionDecl *D, unsigned MaxDepth) {
964
964
if (const auto *TTPT = getFunctionPackType (D)) {
965
965
// Split the parameters into head, pack and tail
966
966
auto IsExpandedPack = [TTPT](const ParmVarDecl *P) {
967
- return getUnderylingPackType (P) == TTPT;
967
+ return getUnderlyingPackType (P) == TTPT;
968
968
};
969
969
ArrayRef<const ParmVarDecl *> Head = Parameters.take_until (IsExpandedPack);
970
970
ArrayRef<const ParmVarDecl *> Pack =
@@ -1016,7 +1016,7 @@ resolveForwardingParameters(const FunctionDecl *D, unsigned MaxDepth) {
1016
1016
}
1017
1017
1018
1018
bool isExpandedFromParameterPack (const ParmVarDecl *D) {
1019
- return getUnderylingPackType (D) != nullptr ;
1019
+ return getUnderlyingPackType (D) != nullptr ;
1020
1020
}
1021
1021
1022
1022
} // namespace clangd
0 commit comments