From 02cb828244f28a29079741db22a16cc4cfc86314 Mon Sep 17 00:00:00 2001 From: TFilteredC Date: Sun, 22 Jan 2023 23:29:24 +0000 Subject: [PATCH] undo autoformatting --- Analysis/src/Type.cpp | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/Analysis/src/Type.cpp b/Analysis/src/Type.cpp index 2d73d011..b596b3bb 100644 --- a/Analysis/src/Type.cpp +++ b/Analysis/src/Type.cpp @@ -50,17 +50,14 @@ static bool dcrMagicFunctionFind(MagicFunctionCallContext context); TypeId follow(TypeId t) { - return follow(t, - [](TypeId t) - { - return t; - }); + return follow(t, [](TypeId t) { + return t; + }); } TypeId follow(TypeId t, std::function mapper) { - auto advance = [&mapper](TypeId ty) -> std::optional - { + auto advance = [&mapper](TypeId ty) -> std::optional { if (auto btv = get>(mapper(ty))) return btv->boundTo; else if (auto ttv = get(mapper(ty))) @@ -69,8 +66,7 @@ TypeId follow(TypeId t, std::function mapper) return std::nullopt; }; - auto force = [&mapper](TypeId ty) - { + auto force = [&mapper](TypeId ty) { if (auto ltv = get_if(&mapper(ty)->ty)) { TypeId res = ltv->thunk(); @@ -241,8 +237,7 @@ bool isOverloadedFunction(TypeId ty) if (!get(follow(ty))) return false; - auto isFunction = [](TypeId part) -> bool - { + auto isFunction = [](TypeId part) -> bool { return get(part); };