[NFC][Clang] Fix a couple of typos

This commit is contained in:
Corentin Jabot 2022-03-05 09:43:38 +01:00
parent 1e569e3b7b
commit fda7d029e5
2 changed files with 3 additions and 3 deletions

View file

@ -5803,7 +5803,7 @@ static bool isPtrOperatorToken(tok::TokenKind Kind, const LangOptions &Lang,
}
// Indicates whether the given declarator is a pipe declarator.
static bool isPipeDeclerator(const Declarator &D) {
static bool isPipeDeclarator(const Declarator &D) {
const unsigned NumTypes = D.getNumTypeObjects();
for (unsigned Idx = 0; Idx != NumTypes; ++Idx)
@ -5896,7 +5896,7 @@ void Parser::ParseDeclaratorInternal(Declarator &D,
tok::TokenKind Kind = Tok.getKind();
if (D.getDeclSpec().isTypeSpecPipe() && !isPipeDeclerator(D)) {
if (D.getDeclSpec().isTypeSpecPipe() && !isPipeDeclarator(D)) {
DeclSpec DS(AttrFactory);
ParseTypeQualifierListOpt(DS);

View file

@ -4280,7 +4280,7 @@ DeclResult Sema::ActOnVarTemplateSpecialization(
bool IsPartialSpecialization) {
// D must be variable template id.
assert(D.getName().getKind() == UnqualifiedIdKind::IK_TemplateId &&
"Variable template specialization is declared with a template it.");
"Variable template specialization is declared with a template id.");
TemplateIdAnnotation *TemplateId = D.getName().TemplateId;
TemplateArgumentListInfo TemplateArgs =