blob: 82d07f0ff9e7e056291a052d17cfcbee41669230 [file] [log] [blame]
Reid Spencer5f016e22007-07-11 17:01:13 +00001//===--- AttributeList.cpp --------------------------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
Chris Lattner0bc735f2007-12-29 19:59:25 +00005// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
Reid Spencer5f016e22007-07-11 17:01:13 +00007//
8//===----------------------------------------------------------------------===//
9//
10// This file defines the AttributeList class implementation
11//
12//===----------------------------------------------------------------------===//
13
14#include "clang/Parse/AttributeList.h"
Reid Spencer5f016e22007-07-11 17:01:13 +000015using namespace clang;
16
17AttributeList::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}