Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 1 | //===--- AttributeList.cpp --------------------------------------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
Chris Lattner | 0bc735f | 2007-12-29 19:59:25 +0000 | [diff] [blame^] | 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file defines the AttributeList class implementation |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #include "clang/Parse/AttributeList.h" |
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 15 | using namespace clang; |
| 16 | |
| 17 | AttributeList::AttributeList(IdentifierInfo *aName, SourceLocation aLoc, |
| 18 | IdentifierInfo *pName, SourceLocation pLoc, |
| 19 | Action::ExprTy **elist, unsigned numargs, |
| 20 | AttributeList *n) |
| 21 | : AttrName(aName), AttrLoc(aLoc), ParmName(pName), ParmLoc(pLoc), |
| 22 | NumArgs(numargs), Next(n) { |
| 23 | Args = new Action::ExprTy*[numargs]; |
| 24 | for (unsigned i = 0; i != numargs; ++i) |
| 25 | Args[i] = elist[i]; |
| 26 | } |