blob: 385dc03490eff863bcf8a2424105cc2a64439c06 [file] [log] [blame]
Chris Lattner4b009652007-07-25 00:24:17 +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"
15#include "clang/Lex/IdentifierTable.h"
16using namespace clang;
17
18AttributeList::AttributeList(IdentifierInfo *aName, SourceLocation aLoc,
19 IdentifierInfo *pName, SourceLocation pLoc,
20 Action::ExprTy **elist, unsigned numargs,
21 AttributeList *n)
22 : AttrName(aName), AttrLoc(aLoc), ParmName(pName), ParmLoc(pLoc),
23 NumArgs(numargs), Next(n) {
24 Args = new Action::ExprTy*[numargs];
25 for (unsigned i = 0; i != numargs; ++i)
26 Args[i] = elist[i];
27}