parent
6419e98ee1
commit
3efb895bb1
|
@ -705,10 +705,7 @@ public:
|
|||
: pool(factory), list(0) {
|
||||
}
|
||||
|
||||
ParsedAttributes(ParsedAttributes &attrs)
|
||||
: pool(attrs.pool), list(attrs.list) {
|
||||
attrs.list = 0;
|
||||
}
|
||||
ParsedAttributes(const ParsedAttributes &) = delete;
|
||||
|
||||
AttributePool &getPool() const { return pool; }
|
||||
|
||||
|
|
|
@ -709,22 +709,12 @@ public:
|
|||
void addAttributes(AttributeList *AL) {
|
||||
Attrs.addAll(AL);
|
||||
}
|
||||
void setAttributes(AttributeList *AL) {
|
||||
Attrs.set(AL);
|
||||
}
|
||||
|
||||
bool hasAttributes() const { return !Attrs.empty(); }
|
||||
|
||||
ParsedAttributes &getAttributes() { return Attrs; }
|
||||
const ParsedAttributes &getAttributes() const { return Attrs; }
|
||||
|
||||
/// \brief Return the current attribute list and remove them from
|
||||
/// the DeclSpec so that it doesn't own them.
|
||||
ParsedAttributes takeAttributes() {
|
||||
// The non-const "copy" constructor clears the operand automatically.
|
||||
return Attrs;
|
||||
}
|
||||
|
||||
void takeAttributesFrom(ParsedAttributes &attrs) {
|
||||
Attrs.takeAllFrom(attrs);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue