[cfe-commits] r39542 - in /cfe/cfe/trunk/AST: Attr.cpp Decl.cpp
Steve Naroff
snaroff at apple.com
Wed Jul 11 09:45:25 PDT 2007
Author: snaroff
Date: Wed Jul 11 11:45:25 2007
New Revision: 39542
URL: http://llvm.org/viewvc/llvm-project?rev=39542&view=rev
Log:
Bug #:
Submitted by:
Reviewed by:
Add implemention file for GCC attributes
Added:
cfe/cfe/trunk/AST/Attr.cpp (with props)
Modified:
cfe/cfe/trunk/AST/Decl.cpp
Added: cfe/cfe/trunk/AST/Attr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/AST/Attr.cpp?rev=39542&view=auto
==============================================================================
--- cfe/cfe/trunk/AST/Attr.cpp (added)
+++ cfe/cfe/trunk/AST/Attr.cpp Wed Jul 11 11:45:25 2007
@@ -0,0 +1,26 @@
+//===--- Attr.cpp -----------------------------------------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file was developed by Steve Naroff and is distributed under
+// the University of Illinois Open Source License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// This file defines the Attribute class interfaces
+//
+//===----------------------------------------------------------------------===//
+
+#include "clang/AST/Attr.h"
+#include "clang/AST/Expr.h"
+#include "clang/Lex/IdentifierTable.h"
+using namespace llvm;
+using namespace clang;
+
+Attr::Attr(SourceLocation L, IdentifierInfo *aName,
+ IdentifierInfo *pname, Expr **elist, unsigned numargs)
+ : AttrName(aName), AttrLoc(L), ParmName(pname), NumArgs(numargs) {
+ Args = new Expr*[numargs];
+ for (unsigned i = 0; i != numargs; ++i)
+ Args[i] = elist[i];
+}
Propchange: cfe/cfe/trunk/AST/Attr.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cfe/cfe/trunk/AST/Attr.cpp
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Modified: cfe/cfe/trunk/AST/Decl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/AST/Decl.cpp?rev=39542&r1=39541&r2=39542&view=diff
==============================================================================
--- cfe/cfe/trunk/AST/Decl.cpp (original)
+++ cfe/cfe/trunk/AST/Decl.cpp Wed Jul 11 11:45:25 2007
@@ -102,9 +102,6 @@
case Enum:
nEnumDecls++;
break;
- case Attribute:
- // FIXME
- break;
}
}
@@ -177,12 +174,4 @@
return Members[i];
}
return 0;
-}
-
-AttributeDecl::AttributeDecl(SourceLocation L, IdentifierInfo *AttrName,
- IdentifierInfo *pname, Expr **elist, unsigned numargs)
- : Decl(Attribute, L, AttrName), ParmName(pname), NumArgs(numargs) {
- Args = new Expr*[numargs];
- for (unsigned i = 0; i != numargs; ++i)
- Args[i] = elist[i];
-}
+}
\ No newline at end of file
More information about the cfe-commits
mailing list