[llvm-branch-commits] [clang] 1b734c6 - [Parse] Delete unused declarations

Fangrui Song via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Dec 7 08:51:07 PST 2020


Author: Fangrui Song
Date: 2020-12-07T08:46:17-08:00
New Revision: 1b734c662bd92c5ae065667fee7e11cff1e1f190

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

LOG: [Parse] Delete unused declarations

Added: 
    

Modified: 
    clang/include/clang/Parse/Parser.h

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Parse/Parser.h b/clang/include/clang/Parse/Parser.h
index 20dba70d8509..73943ed5f0a6 100644
--- a/clang/include/clang/Parse/Parser.h
+++ b/clang/include/clang/Parse/Parser.h
@@ -48,7 +48,6 @@ namespace clang {
   class PoisonSEHIdentifiersRAIIObject;
   class OMPClause;
   class ObjCTypeParamList;
-  class ObjCTypeParameter;
   struct OMPTraitProperty;
   struct OMPTraitSelector;
   struct OMPTraitSet;
@@ -702,10 +701,6 @@ class Parser : public CodeCompletionHandler {
   /// #pragma ms_struct...
   void HandlePragmaMSStruct();
 
-  /// Handle the annotation token produced for
-  /// #pragma comment...
-  void HandlePragmaMSComment();
-
   void HandlePragmaMSPointersToMembers();
 
   void HandlePragmaMSVtorDisp();
@@ -1734,7 +1729,6 @@ class Parser : public CodeCompletionHandler {
 
   ParsedType ParseObjCTypeName(ObjCDeclSpec &DS, DeclaratorContext Ctx,
                                ParsedAttributes *ParamAttrs);
-  void ParseObjCMethodRequirement();
   Decl *ParseObjCMethodPrototype(
             tok::ObjCKeywordKind MethodImplKind = tok::objc_not_keyword,
             bool MethodDefinition = true);
@@ -1830,7 +1824,6 @@ class Parser : public CodeCompletionHandler {
                                                      ParsedType &CastTy,
                                                      SourceRange &CastRange);
 
-  typedef SmallVector<Expr*, 20> ExprListTy;
   typedef SmallVector<SourceLocation, 20> CommaLocsTy;
 
   /// ParseExpressionList - Used for C/C++ (argument-)expression-list.
@@ -3306,8 +3299,6 @@ class Parser : public CodeCompletionHandler {
   NamedDecl *ParseNonTypeTemplateParameter(unsigned Depth, unsigned Position);
   bool isTypeConstraintAnnotation();
   bool TryAnnotateTypeConstraint();
-  NamedDecl *
-  ParseConstrainedTemplateTypeParameter(unsigned Depth, unsigned Position);
   void DiagnoseMisplacedEllipsis(SourceLocation EllipsisLoc,
                                  SourceLocation CorrectLoc,
                                  bool AlreadyHasEllipsis,


        


More information about the llvm-branch-commits mailing list