From c9d38bd7132176d2b531caae2334891609db5196 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Mon, 28 Nov 2022 13:11:31 -0500 Subject: [PATCH] Remove this type from Parser.h; NFC TypeVector is only used once and isn't used in any interfaces, so this removes the typedef. --- clang/include/clang/Parse/Parser.h | 2 -- clang/lib/Parse/ParseExpr.cpp | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/clang/include/clang/Parse/Parser.h b/clang/include/clang/Parse/Parser.h index 42bd83a..42ff241 100644 --- a/clang/include/clang/Parse/Parser.h +++ b/clang/include/clang/Parse/Parser.h @@ -2076,8 +2076,6 @@ private: typedef SmallVector StmtVector; /// A SmallVector of expressions, with stack size 12 (the maximum used.) typedef SmallVector ExprVector; - /// A SmallVector of types. - typedef SmallVector TypeVector; StmtResult ParseStatement(SourceLocation *TrailingElseLoc = nullptr, diff --git a/clang/lib/Parse/ParseExpr.cpp b/clang/lib/Parse/ParseExpr.cpp index 9ac8706..d73408d 100644 --- a/clang/lib/Parse/ParseExpr.cpp +++ b/clang/lib/Parse/ParseExpr.cpp @@ -3289,7 +3289,7 @@ ExprResult Parser::ParseGenericSelectionExpression() { } SourceLocation DefaultLoc; - TypeVector Types; + SmallVector Types; ExprVector Exprs; do { ParsedType Ty; -- 2.7.4