[cfe-commits] r42063 - /cfe/trunk/include/clang/Parse/DeclSpec.h

Steve Naroff snaroff at apple.com
Mon Sep 17 14:26:50 PDT 2007


Author: snaroff
Date: Mon Sep 17 16:26:50 2007
New Revision: 42063

URL: http://llvm.org/viewvc/llvm-project?rev=42063&view=rev
Log:
Add a comment and remove unused constructors.

Modified:
    cfe/trunk/include/clang/Parse/DeclSpec.h

Modified: cfe/trunk/include/clang/Parse/DeclSpec.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Parse/DeclSpec.h?rev=42063&r1=42062&r2=42063&view=diff

==============================================================================
--- cfe/trunk/include/clang/Parse/DeclSpec.h (original)
+++ cfe/trunk/include/clang/Parse/DeclSpec.h Mon Sep 17 16:26:50 2007
@@ -562,15 +562,13 @@
   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 @@
   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





More information about the cfe-commits mailing list