[clang] c9d38bd - Remove this type from Parser.h; NFC

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 28 10:12:42 PST 2022


Author: Aaron Ballman
Date: 2022-11-28T13:12:34-05:00
New Revision: c9d38bd7132176d2b531caae2334891609db5196

URL: https://github.com/llvm/llvm-project/commit/c9d38bd7132176d2b531caae2334891609db5196
DIFF: https://github.com/llvm/llvm-project/commit/c9d38bd7132176d2b531caae2334891609db5196.diff

LOG: Remove this type from Parser.h; NFC

TypeVector is only used once and isn't used in any interfaces, so this
removes the typedef.

Added: 
    

Modified: 
    clang/include/clang/Parse/Parser.h
    clang/lib/Parse/ParseExpr.cpp

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Parse/Parser.h b/clang/include/clang/Parse/Parser.h
index 42bd83a30ce97..42ff24139d4cc 100644
--- a/clang/include/clang/Parse/Parser.h
+++ b/clang/include/clang/Parse/Parser.h
@@ -2076,8 +2076,6 @@ class Parser : public CodeCompletionHandler {
   typedef SmallVector<Stmt*, 32> StmtVector;
   /// A SmallVector of expressions, with stack size 12 (the maximum used.)
   typedef SmallVector<Expr*, 12> ExprVector;
-  /// A SmallVector of types.
-  typedef SmallVector<ParsedType, 12> TypeVector;
 
   StmtResult
   ParseStatement(SourceLocation *TrailingElseLoc = nullptr,

diff  --git a/clang/lib/Parse/ParseExpr.cpp b/clang/lib/Parse/ParseExpr.cpp
index 9ac8706191d3a..d73408d6b3dcf 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<ParsedType, 12> Types;
   ExprVector Exprs;
   do {
     ParsedType Ty;


        


More information about the cfe-commits mailing list