From d4dfe3f00f2fc85e2a6942adf41534814dedcca1 Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 9 Apr 2024 18:30:04 -0500 Subject: [PATCH] Format --- lib/astutils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/astutils.cpp b/lib/astutils.cpp index 1e3fd75aedd..48357f35792 100644 --- a/lib/astutils.cpp +++ b/lib/astutils.cpp @@ -654,11 +654,11 @@ const Token* getParentLifetime(const Token* tok, const Library* library) // If any of the submembers are borrowed types then stop if (std::any_of(it.base() - 1, members.cend() - 1, [&](const Token* tok2) { const Token* obj = tok2; - if(Token::simpleMatch(obj, "[")) + if (Token::simpleMatch(obj, "[")) obj = tok2->astOperand1(); const Variable* var = obj->variable(); // Check for arrays first since astIsPointer will return true, but an array is not a borrowed type - if(var && var->isArray()) + if (var && var->isArray()) return false; if (astIsPointer(obj) || astIsContainerView(obj) || astIsIterator(obj)) return true;