[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.
|
||||
};
|
||||
|
||||
const std::vector<Declaration> getDeclarationList() const {
|
||||
return DeclarationList;
|
||||
}
|
||||
ArrayRef<Declaration> getDeclarationList() const { return DeclarationList; }
|
||||
|
||||
private:
|
||||
std::vector<Declaration> DeclarationList;
|
||||
|
||||
Reference in New Issue
Block a user