From: Steve Naroff Date: Mon, 17 Sep 2007 21:26:50 +0000 (+0000) Subject: Add a comment and remove unused constructors. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6d6cfbfa8cff13deaad662ef8b8cd190917c37b4;p=clang Add a comment and remove unused constructors. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42063 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Parse/DeclSpec.h b/include/clang/Parse/DeclSpec.h index bf197186ba..73254cd682 100644 --- a/include/clang/Parse/DeclSpec.h +++ b/include/clang/Parse/DeclSpec.h @@ -562,15 +562,13 @@ public: bool getInvalidType() { return InvalidType; } }; +/// ObjCKeyword* - The following 3 small value structures capture keyword +/// information passed from the parser to the actions. Like Declarator above, +/// instances of these structures are transient objects that live on the stack. struct ObjcKeywordInfo { IdentifierInfo *SelectorName; // optional SourceLocation SelectorLoc; SourceLocation ColonLoc; - - ObjcKeywordInfo() {} - ObjcKeywordInfo(IdentifierInfo *selName, SourceLocation sLoc, - SourceLocation cLoc) - : SelectorName(selName), SelectorLoc(sLoc), ColonLoc(cLoc) {} }; struct ObjcKeywordDecl : ObjcKeywordInfo { @@ -578,23 +576,10 @@ struct ObjcKeywordDecl : ObjcKeywordInfo { IdentifierInfo *ArgumentName; AttributeList *AttrList; bool InvalidType; // FIXME: is this used? - - ObjcKeywordDecl() {} - ObjcKeywordDecl(IdentifierInfo *selName, SourceLocation sLoc, - SourceLocation cLoc, Action::TypeTy *tInfo, - IdentifierInfo *argName, AttributeList *aList) - : ObjcKeywordInfo(selName, sLoc, cLoc), - TypeInfo(tInfo), ArgumentName(argName), AttrList(aList) { - } }; struct ObjcKeywordMessage : ObjcKeywordInfo { Action::ExprTy *KeywordExpr; - - ObjcKeywordMessage() {} - ObjcKeywordMessage(IdentifierInfo *selName, SourceLocation sLoc, - SourceLocation cLoc, Action::ExprTy *expr) - : ObjcKeywordInfo(selName, sLoc, cLoc), KeywordExpr(expr) {} }; } // end namespace clang