[clang-move] Teach getDeclarationList to return ArrayRef (NFC) (#143278)
getDeclarationList is used only for read-only access to the array. I don't think it's actually meant to return by value.
This commit is contained in:
@@ -49,9 +49,7 @@ public:
|
|||||||
bool Templated = false; // Whether the declaration is templated.
|
bool Templated = false; // Whether the declaration is templated.
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector<Declaration> getDeclarationList() const {
|
ArrayRef<Declaration> getDeclarationList() const { return DeclarationList; }
|
||||||
return DeclarationList;
|
|
||||||
}
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::vector<Declaration> DeclarationList;
|
std::vector<Declaration> DeclarationList;
|
||||||
|
|||||||
Reference in New Issue
Block a user