]> granicus.if.org Git - clang/commitdiff
Remove an unused parameter and include after r197273
authorAlp Toker <alp@nuanti.com>
Fri, 13 Dec 2013 21:19:30 +0000 (21:19 +0000)
committerAlp Toker <alp@nuanti.com>
Fri, 13 Dec 2013 21:19:30 +0000 (21:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197274 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Sema/Sema.h
lib/AST/StmtPrinter.cpp
lib/Parse/ParseExprCXX.cpp
lib/Sema/SemaExprCXX.cpp

index fbb0cd06c2701592cff27daef78648cd3029663a..6eefdf0e76a35b5827da9b36a5079bb2de6fd059 100644 (file)
@@ -4219,8 +4219,8 @@ public:
                                  SourceLocation RParen);
 
   /// \brief Parsed one of the type trait support pseudo-functions.
-  ExprResult ActOnTypeTrait(TypeTrait Kind, unsigned Arity,
-                            SourceLocation KWLoc, ArrayRef<ParsedType> Args,
+  ExprResult ActOnTypeTrait(TypeTrait Kind, SourceLocation KWLoc,
+                            ArrayRef<ParsedType> Args,
                             SourceLocation RParenLoc);
   ExprResult BuildTypeTrait(TypeTrait Kind, SourceLocation KWLoc,
                             ArrayRef<TypeSourceInfo *> Args,
index 68f78f152faa9be87d97ce6518f95a5705775873..f38fd5d585ad4583dd8c2b83b1fa10d519331bc2 100644 (file)
@@ -1695,7 +1695,6 @@ static const char *getTypeTraitName(TypeTrait TT) {
   switch (TT) {
 #define TYPE_TRAIT_2(Spelling, Name, Key) \
 case clang::BTT_##Name: return #Spelling;
-#include "clang/Basic/TokenKinds.def"
 #define TYPE_TRAIT_N(Spelling, Name, Key) \
   case clang::TT_##Name: return #Spelling;
 #include "clang/Basic/TokenKinds.def"
index 9c2cfcc490ead66cbb74a1318d3201329c7b82b8..4aba5f950ae80c90b351c588a52b90918407d2c3 100644 (file)
@@ -2800,8 +2800,7 @@ ExprResult Parser::ParseTypeTrait() {
     return Actions.ActOnUnaryTypeTrait(UnaryTypeTraitFromTokKind(Kind), Loc,
                                        Args[0], EndLoc);
 
-  return Actions.ActOnTypeTrait(TypeTraitFromTokKind(Kind), Arity, Loc, Args,
-                                EndLoc);
+  return Actions.ActOnTypeTrait(TypeTraitFromTokKind(Kind), Loc, Args, EndLoc);
 }
 
 /// ParseArrayTypeTrait - Parse the built-in array type-trait
index ef89490c43bbdd7eecdf1e8ef376a1818ab315a2..a0c123fdaacced06354122b1ac3e448e6902b1c3 100644 (file)
@@ -3734,8 +3734,8 @@ ExprResult Sema::BuildTypeTrait(TypeTrait Kind, SourceLocation KWLoc,
                                RParenLoc, Result);
 }
 
-ExprResult Sema::ActOnTypeTrait(TypeTrait Kind, unsigned Arity,
-                                SourceLocation KWLoc, ArrayRef<ParsedType> Args,
+ExprResult Sema::ActOnTypeTrait(TypeTrait Kind, SourceLocation KWLoc,
+                                ArrayRef<ParsedType> Args,
                                 SourceLocation RParenLoc) {
   SmallVector<TypeSourceInfo *, 4> ConvertedArgs;
   ConvertedArgs.reserve(Args.size());