blob: 7be529f4e554de5eb1a04ec52714e719f0f75a83 [file] [log] [blame]
Reid Spencer5f016e22007-07-11 17:01:13 +00001//===--- AttributeList.cpp --------------------------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file was developed by Steve Naroff and is distributed under
6// the University of Illinois Open Source License. See LICENSE.TXT for details.
7//
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}