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); };