// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details1#pragma once23#include <string.h>45namespace Luau6{78inline bool isAnalysisFlagExperimental(const char* flag)9{10// Flags in this list are disabled by default in various command-line tools. They may have behavior that is not fully final,11// or critical bugs that are found after the code has been submitted. This list is intended _only_ for flags that affect12// Luau's type checking. Flags that may change runtime behavior (e.g.: parser or VM flags) are not appropriate for this list.13static const char* const kList[] = {14"LuauInstantiateInSubtyping", // requires some fixes to lua-apps code15"LuauFixIndexerSubtypingOrdering", // requires some small fixes to lua-apps code since this fixes a false negative16"LuauSolverV2",17"UseNewLuauTypeSolverDefaultEnabled", // This can change the default solver used in cli applications, so it also needs to be disabled. Will18// require fixes in lua-apps code19// makes sure we always have at least one entry20nullptr,21};2223for (const char* item : kList)24if (item && strcmp(item, flag) == 0)25return true;2627return false;28}2930} // namespace Luau313233