[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:
Kazu Hirata
2025-06-08 01:34:02 -07:00
committed by GitHub
parent 38658b54b2
commit 0613f8b9e4

View File

@@ -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;