diff --git a/BeefLibs/Beefy2D/src/BFApp.bf b/BeefLibs/Beefy2D/src/BFApp.bf index 80f8107d..bfe08cf4 100644 --- a/BeefLibs/Beefy2D/src/BFApp.bf +++ b/BeefLibs/Beefy2D/src/BFApp.bf @@ -70,7 +70,7 @@ namespace Beefy public uint32 mLastFPSUpdateCnt; public Matrix4? mColorMatrix; - public ConstantDataDefinition mColorMatrixDataDef = new ConstantDataDefinition(16, new ConstantDataDefinition.DataType[] { ConstantDataDefinition.DataType.Matrix | ConstantDataDefinition.DataType.PixelShaderUsage }) ~ delete _; + public ConstantDataDefinition mColorMatrixDataDef = new ConstantDataDefinition(16, new ConstantDataDefinition.DataType[] ( ConstantDataDefinition.DataType.Matrix | ConstantDataDefinition.DataType.PixelShaderUsage )) ~ delete _; [CallingConvention(.Stdcall), CLink] static extern void Lib_Startup(int32 argc, char8** argv, void* startupCallback); diff --git a/BeefLibs/Beefy2D/src/gfx/Font.bf b/BeefLibs/Beefy2D/src/gfx/Font.bf index d84733b3..d82103b8 100644 --- a/BeefLibs/Beefy2D/src/gfx/Font.bf +++ b/BeefLibs/Beefy2D/src/gfx/Font.bf @@ -477,14 +477,14 @@ namespace Beefy.gfx static MarkPosition[] sMarkPositionsLow = new MarkPosition[0x70] // 0 1 2 3 4 5 6 7 8 9 A B C D E F - /*0*/{.AboveC, .AboveC, .AboveC, .AboveC, /**/ .AboveC, .AboveC, .AboveC, .AboveC, /**/ .AboveC, .AboveC, .AboveC, .AboveC, /**/ .AboveC, .AboveC, .AboveC, .AboveC, + /*0*/(.AboveC, .AboveC, .AboveC, .AboveC, /**/ .AboveC, .AboveC, .AboveC, .AboveC, /**/ .AboveC, .AboveC, .AboveC, .AboveC, /**/ .AboveC, .AboveC, .AboveC, .AboveC, /*1*/ .AboveC, .AboveC, .AboveC, .AboveC, /**/ .AboveC, .AboveE, .AboveC, .AboveC, /**/ .BelowC, .BelowC, .AboveE, .TopR, /**/ .BelowC, .BelowC, .BelowC, .BelowC, /*2*/ .BelowC, .BelowC, .BelowC, .BelowC, /**/ .BelowC, .BelowC, .BelowC, .BelowC, /**/ .BelowC, .BelowC, .BelowC, .BelowC, /**/ .BelowC, .BelowC, .BelowC, .BelowC, /*3*/ .BelowC, .BelowC, .BelowC, .BelowC, /**/ .OverC , .OverC , .OverC , .OverC , /**/ .OverC , .BelowC, .BelowC, .BelowC, /**/ .AboveC, .AboveC, .AboveC, .AboveC, /*4*/ .AboveC, .AboveC, .AboveC, .AboveC, /**/ .AboveC, .BelowC, .AboveC, .BelowC, /**/ .BelowC, .BelowC, .AboveC, .AboveC, /**/ .AboveC, .BelowC, .BelowC, .OverC, /*5*/ .AboveC, .AboveC, .AboveC, .BelowC, /**/ .BelowC, .BelowC, .BelowC, .AboveC, /**/ .AboveE, .BelowC, .AboveC, .AboveC, /**/ .BelowR, .AboveR, .AboveR, .BelowR, /*6*/ .AboveR, .AboveR, .BelowR, .AboveC, /**/ .AboveC, .AboveC, .AboveC, .AboveC, /**/ .AboveC, .AboveC, .AboveC, .AboveC, /**/ .AboveC, .AboveC, .AboveC, .AboveC, - } ~ delete _; + ) ~ delete _; MarkPosition GetMarkPosition(char32 checkChar) { diff --git a/BeefLibs/Beefy2D/src/theme/dark/DarkEditWidget.bf b/BeefLibs/Beefy2D/src/theme/dark/DarkEditWidget.bf index 20a01a7f..847e969e 100644 --- a/BeefLibs/Beefy2D/src/theme/dark/DarkEditWidget.bf +++ b/BeefLibs/Beefy2D/src/theme/dark/DarkEditWidget.bf @@ -23,7 +23,7 @@ namespace Beefy.theme.dark public uint32 mViewWhiteSpaceColor; public bool mScrollToStartOnLostFocus; - protected static uint32[] sDefaultColors = new uint32[] { Color.White } ~ delete _; + protected static uint32[] sDefaultColors = new uint32[] ( Color.White ) ~ delete _; public this(EditWidgetContent refContent = null) : base(refContent) { diff --git a/BeefLibs/Beefy2D/src/theme/dark/DarkTheme.bf b/BeefLibs/Beefy2D/src/theme/dark/DarkTheme.bf index 849f13ee..2e9c0d82 100644 --- a/BeefLibs/Beefy2D/src/theme/dark/DarkTheme.bf +++ b/BeefLibs/Beefy2D/src/theme/dark/DarkTheme.bf @@ -226,7 +226,7 @@ namespace Beefy.theme.dark Get(); DesignToolboxEntry [] entries = new DesignToolboxEntry [] - { + ( new DesignToolboxEntry("ButtonWidget", typeof(DarkButton), sDarkTheme.mImages[(int32)ImageIdx.UIButton]), new DesignToolboxEntry("LabelWidget", null, sDarkTheme.mImages[(int32)DarkTheme.ImageIdx.UILabel]), new DesignToolboxEntry("EditWidget", typeof(DarkEditWidget), sDarkTheme.mImages[(int32)DarkTheme.ImageIdx.UIEdit]), @@ -235,7 +235,7 @@ namespace Beefy.theme.dark new DesignToolboxEntry("RadioButton", null, sDarkTheme.mImages[(int32)DarkTheme.ImageIdx.UIRadioButton]), new DesignToolboxEntry("ListView", typeof(DarkListView), sDarkTheme.mImages[(int32)DarkTheme.ImageIdx.UIListView]), new DesignToolboxEntry("TabView", typeof(DarkTabbedView), sDarkTheme.mImages[(int32)DarkTheme.ImageIdx.UITabView]) - }; + ); for (DesignToolboxEntry entry in entries) entry.mGroupName = "DarkTheme"; diff --git a/BeefLibs/Beefy2D/src/utils/IdSpan.bf b/BeefLibs/Beefy2D/src/utils/IdSpan.bf index d6d2c42a..4bd97f8e 100644 --- a/BeefLibs/Beefy2D/src/utils/IdSpan.bf +++ b/BeefLibs/Beefy2D/src/utils/IdSpan.bf @@ -31,7 +31,7 @@ namespace Beefy.utils case Remove; } - static uint8[] sEmptyData = new uint8[] { 0 } ~ delete _; + static uint8[] sEmptyData = new uint8[] ( 0 ) ~ delete _; public uint8[] mData; public int32 mLength; diff --git a/IDE/src/BuildContext.bf b/IDE/src/BuildContext.bf index 974a9fe9..4616e365 100644 --- a/IDE/src/BuildContext.bf +++ b/IDE/src/BuildContext.bf @@ -375,12 +375,12 @@ namespace IDE if (mPtrSize == 4) { fromDir = scope:: String(llvmDir, "i686-w64-mingw32/bin/"); - mingwFiles = scope:: String[] { "libgcc_s_dw2-1.dll", "libstdc++-6.dll" }; + mingwFiles = scope:: String[] ( "libgcc_s_dw2-1.dll", "libstdc++-6.dll" ); } else { fromDir = scope:: String(llvmDir, "x86_64-w64-mingw32/bin/"); - mingwFiles = scope:: String[] { "libgcc_s_seh-1.dll", "libstdc++-6.dll", "libwinpthread-1.dll" }; + mingwFiles = scope:: String[] ( "libgcc_s_seh-1.dll", "libstdc++-6.dll", "libwinpthread-1.dll" ); } for (var mingwFile in mingwFiles) { diff --git a/IDE/src/SpellChecker.bf b/IDE/src/SpellChecker.bf index 236bebd1..7486fc9e 100644 --- a/IDE/src/SpellChecker.bf +++ b/IDE/src/SpellChecker.bf @@ -27,9 +27,9 @@ namespace IDE void* mNativeSpellChecker; - String[] mLangWordList = new String[] { + String[] mLangWordList = new String[] ( "int", "uint", "struct", "bool", "enum", "int", "proj", "newbox", "params", "typeof", "var" - } ~ delete _; + ) ~ delete _; public String mLangPath ~ delete _; public HashSet mIgnoreWordList = new HashSet() ~ DeleteContainerAndItems!(_); diff --git a/IDE/src/ui/BinaryDataWidget.bf b/IDE/src/ui/BinaryDataWidget.bf index 6b0fdb79..2df96b06 100644 --- a/IDE/src/ui/BinaryDataWidget.bf +++ b/IDE/src/ui/BinaryDataWidget.bf @@ -691,7 +691,7 @@ namespace IDE.ui RehupSize(); }); - for (int32 c in scope int32[] { 4, 8, 16, 32, 64 }) + for (int32 c in scope int32[] ( 4, 8, 16, 32, 64 )) { columnChoice = menuItem.AddItem(StackStringFormat!("{0} bytes", c)); if ((mAutoResizeType == .Manual) && (c == (int32)mBytesPerDisplayLine)) diff --git a/IDE/src/ui/BuildPropertiesDialog.bf b/IDE/src/ui/BuildPropertiesDialog.bf index d2b0ee22..0136dcf8 100644 --- a/IDE/src/ui/BuildPropertiesDialog.bf +++ b/IDE/src/ui/BuildPropertiesDialog.bf @@ -133,15 +133,15 @@ namespace IDE.ui typeName.Clear(); typeName.Append(optionsName, "mRuntimeChecks"); AddPropertiesItem(category, "Runtime Checks", typeName, - scope String[] { "No", "Yes" }); + scope String[] ( "No", "Yes" )); typeName.Clear(); typeName.Append(optionsName, "mEmitDynamicCastCheck"); AddPropertiesItem(category, "Dynamic Cast Check", typeName, - scope String[] { "No", "Yes" }); + scope String[] ( "No", "Yes" )); typeName.Clear(); typeName.Append(optionsName, "mEmitObjectAccessCheck"); AddPropertiesItem(category, "Object Access Check", typeName, - scope String[] { "No", "Yes" }); + scope String[] ( "No", "Yes" )); typeName.Clear(); typeName.Append(optionsName, "mAllocStackTraceDepth"); AddPropertiesItem(category, "Alloc Stack Trace Depth", typeName); @@ -153,23 +153,23 @@ namespace IDE.ui typeName.Clear(); typeName.Append(optionsName, "mReflectStaticFields"); AddPropertiesItem(reflectItem, "Static Fields", typeName, - scope String[] { "No", "Yes" }); + scope String[] ( "No", "Yes" )); typeName.Clear(); typeName.Append(optionsName, "mReflectNonStaticFields"); AddPropertiesItem(reflectItem, "Non-Static Fields", typeName, - scope String[] { "No", "Yes" }); + scope String[] ( "No", "Yes" )); typeName.Clear(); typeName.Append(optionsName, "mReflectStaticMethods"); AddPropertiesItem(reflectItem, "Static Methods", typeName, - scope String[] { "No", "Yes" }); + scope String[] ( "No", "Yes" )); typeName.Clear(); typeName.Append(optionsName, "mReflectNonStaticMethods"); AddPropertiesItem(reflectItem, "Non-Static Methods", typeName, - scope String[] { "No", "Yes" }); + scope String[] ( "No", "Yes" )); typeName.Clear(); typeName.Append(optionsName, "mReflectConstructors"); AddPropertiesItem(reflectItem, "Constructors", typeName, - scope String[] { "No", "Yes" }); + scope String[] ( "No", "Yes" )); typeName.Clear(); typeName.Append(optionsName, "mReflectMethodFilter"); AddPropertiesItem(reflectItem, "Method Filter", typeName); diff --git a/IDE/src/ui/ProjectProperties.bf b/IDE/src/ui/ProjectProperties.bf index 608f0588..6872b089 100644 --- a/IDE/src/ui/ProjectProperties.bf +++ b/IDE/src/ui/ProjectProperties.bf @@ -618,13 +618,13 @@ namespace IDE.ui { var root = (DarkListViewItem)mPropPage.mPropertiesListView.GetRoot(); AddPropertiesItem(root, "Target Type", "mTargetType", scope String[] - { + ( "Console Application", "GUI Application", "Library", "Dynamic Library", "Custom Build" - }); + )); AddPropertiesItem(root, "Project Name Aliases", "mAliases"); } @@ -822,7 +822,7 @@ namespace IDE.ui AddPropertiesItem(category, "Reloc Model", "mBeefOptions.mRelocType"); AddPropertiesItem(category, "PIC Level", "mBeefOptions.mPICLevel"); AddPropertiesItem(category, "Optimization Level", "mBeefOptions.mOptimizationLevel", - scope String[] { "O0", "O1", "O2", "O3", "Og", "Og+" }); // -O0 .. -O3, -Os, -Ofast, -Og + scope String[] ( "O0", "O1", "O2", "O3", "Og", "Og+" )); // -O0 .. -O3, -Os, -Ofast, -Og AddPropertiesItem(category, "LTO", "mBeefOptions.mLTOType"); AddPropertiesItem(category, "Vectorize Loops", "mBeefOptions.mVectorizeLoops"); AddPropertiesItem(category, "Vectorize SLP", "mBeefOptions.mVectorizeSLP"); @@ -848,7 +848,7 @@ namespace IDE.ui AddPropertiesItem(category, "Other C Flags", "mCOptions.mOtherCFlags"); AddPropertiesItem(category, "Other C++ Flags", "mCOptions.mOtherCPPFlags"); AddPropertiesItem(category, "Enable Beef Interop", "mCOptions.mEnableBeefInterop", - scope String[] { "No", "Yes" }); + scope String[] ( "No", "Yes" )); var parent = AddPropertiesItem(category, "Include Paths", "mCOptions.mIncludePaths"); parent = AddPropertiesItem(category, "Preprocessor Macros", "mCOptions.mPreprocessorMacros"); //parent.MakeParent(); @@ -858,23 +858,23 @@ namespace IDE.ui category.mIsBold = true; category.mTextColor = Color.Mult(DarkTheme.COLOR_TEXT, cHeaderColor); AddPropertiesItem(category, "Disable C++ Exceptions", "mCOptions.mDisableExceptions", - scope String[] { "No", "Yes (-fno-exceptions)" }); // -fno-exceptions + scope String[] ( "No", "Yes (-fno-exceptions)" )); // -fno-exceptions AddPropertiesItem(category, "SIMD Instructions", "mCOptions.mSIMD"); // -msse, -msse2, -msse4.1, -mno-sse AddPropertiesItem(category, "Generate LLVM IR", "mCOptions.mGenerateLLVMAsm", - scope String[] { "No", "Yes (-emit-llvm)" }); + scope String[] ( "No", "Yes (-emit-llvm)" )); AddPropertiesItem(category, "No Omit Frame Pointers", "mCOptions.mNoOmitFramePointers", - scope String[] { "No", "Yes (-fno-omit-frame-pointer)" }); //-fno-omit-frame-pointer + scope String[] ( "No", "Yes (-fno-omit-frame-pointer)" )); //-fno-omit-frame-pointer AddPropertiesItem(category, "Disable Inlining", "mCOptions.mDisableInlining", - scope String[] { "No", "Yes (-fno-inline)" }); // -fno-inline + scope String[] ( "No", "Yes (-fno-inline)" )); // -fno-inline AddPropertiesItem(category, "Strict Aliasing", "mCOptions.mStrictAliasing", - scope String[] { "No", "Yes (-fstrict-aliasing)" }); // -fstrict-aliasing + scope String[] ( "No", "Yes (-fstrict-aliasing)" )); // -fstrict-aliasing AddPropertiesItem(category, "Fast Math", "mCOptions.mFastMath", - scope String[] { "No", "Yes (-ffast-math)" }); // -ffast-math + scope String[] ( "No", "Yes (-ffast-math)" )); // -ffast-math AddPropertiesItem(category, "Disable RTTI", "mCOptions.mDisableRTTI", - scope String[] { "No", "Yes (-fno-rtti)" }); // -fno-rtti + scope String[] ( "No", "Yes (-fno-rtti)" )); // -fno-rtti AddPropertiesItem(category, "Optimization Level", "mCOptions.mOptimizationLevel"); // -O0 .. -O3, -Os, -Ofast, -Og AddPropertiesItem(category, "Debug Info", "mCOptions.mEmitDebugInfo", - scope String[] { "None", "DWARF (-g)" }); + scope String[] ( "None", "DWARF (-g)" )); AddPropertiesItem(category, "Address Sanitizer", ""); category.Open(true, true); @@ -882,17 +882,17 @@ namespace IDE.ui category.mIsBold = true; category.mTextColor = Color.Mult(DarkTheme.COLOR_TEXT, cHeaderColor); AddPropertiesItem(category, "All warnings", "mCOptions.mAllWarnings", - scope String[] { "No", "Yes (-Wall)" }); // -Wall + scope String[] ( "No", "Yes (-Wall)" )); // -Wall AddPropertiesItem(category, "Effective C++ Violations", "mCOptions.mEffectiveCPPViolations", - scope String[] { "No", "Yes (-Weffc++)" }); //-Weffc++ + scope String[] ( "No", "Yes (-Weffc++)" )); //-Weffc++ AddPropertiesItem(category, "Pedantic", "mCOptions.mPedantic", - scope String[] { "No", "Yes (-pedantic)" }); //-pedantic + scope String[] ( "No", "Yes (-pedantic)" )); //-pedantic AddPropertiesItem(category, "Warnings as errors", "mCOptions.mWarningsAsErrors", - scope String[] { "No", "Yes (-Werror)" }); //-Werror + scope String[] ( "No", "Yes (-Werror)" )); //-Werror AddPropertiesItem(category, "Specific Warnings As Errors", "", - scope String[] { "No", "Yes (-Werror=)" }); // -Werror= + scope String[] ( "No", "Yes (-Werror=)" )); // -Werror= AddPropertiesItem(category, "Disable Specific Warnings", "", - scope String[] { "No", "Yes (-Wno-)" }); //-Wno- + scope String[] ( "No", "Yes (-Wno-)" )); //-Wno- category.Open(true, true); } diff --git a/IDE/src/ui/PropertiesDialog.bf b/IDE/src/ui/PropertiesDialog.bf index 9a3966da..85547e2c 100644 --- a/IDE/src/ui/PropertiesDialog.bf +++ b/IDE/src/ui/PropertiesDialog.bf @@ -1919,7 +1919,7 @@ namespace IDE.ui if ((fieldType == typeof(bool)) && (useOptionValues == null)) { - propEntry.mOptionValues = new String[] { new String("No"), new String("Yes") }; + propEntry.mOptionValues = new String[] ( new String("No"), new String("Yes") ); } if (fieldType.IsNullable) diff --git a/IDE/src/ui/SourceEditWidgetContent.bf b/IDE/src/ui/SourceEditWidgetContent.bf index ab486075..018ca37e 100644 --- a/IDE/src/ui/SourceEditWidgetContent.bf +++ b/IDE/src/ui/SourceEditWidgetContent.bf @@ -194,7 +194,7 @@ namespace IDE.ui public bool mIgnoreKeyChar; // This fixes cases where a KeyDown changes focus to us but then we get a KeyChar that doesn't belong to us public bool mIgnoreSetHistory; public static uint32[] sTextColors = new uint32[] - { + ( 0xFFFFFFFF, // Normal 0xFFE1AE9A, // Keyword 0XFFC8A0FF, // Literal @@ -215,7 +215,7 @@ namespace IDE.ui 0xFFFFFF80, // BuildWarning 0xFF9090C0, // VisibleWhiteSpace - } ~ delete _; + ) ~ delete _; bool mHasCustomColors; FastCursorState mFastCursorState ~ delete _; diff --git a/IDE/src/ui/WorkspaceProperties.bf b/IDE/src/ui/WorkspaceProperties.bf index 8ec269a7..68a333b6 100644 --- a/IDE/src/ui/WorkspaceProperties.bf +++ b/IDE/src/ui/WorkspaceProperties.bf @@ -777,7 +777,7 @@ namespace IDE.ui allocPropEntry.mOnUpdate(); AddPropertiesItem(category, "SIMD Instructions", "mBfSIMDSetting"); AddPropertiesItem(category, "Optimization Level", "mBfOptimizationLevel", - scope String[] { "O0", "O1", "O2", "O3", "Og", "Og+"}); + scope String[] ( "O0", "O1", "O2", "O3", "Og", "Og+")); AddPropertiesItem(category, "LTO Type", "mLTOType"); AddPropertiesItem(category, "No Omit Frame Pointers", "mNoOmitFramePointers"); AddPropertiesItem(category, "Large Strings", "mLargeStrings"); @@ -789,17 +789,17 @@ namespace IDE.ui category.mTextColor = Color.Mult(DarkTheme.COLOR_TEXT, cHeaderColor); AddPropertiesItem(category, "Debug Info", "mEmitDebugInfo"); AddPropertiesItem(category, "Runtime Checks", "mRuntimeChecks", - scope String[] { "No", "Yes" }); + scope String[] ( "No", "Yes" )); AddPropertiesItem(category, "Dynamic Cast Check", "mEmitDynamicCastCheck", - scope String[] { "No", "Yes" }); + scope String[] ( "No", "Yes" )); AddPropertiesItem(category, "Object Debug Flags", "mEnableObjectDebugFlags", - scope String[] { "No", "Yes" }); + scope String[] ( "No", "Yes" )); AddPropertiesItem(category, "Object Access Check", "mEmitObjectAccessCheck", - scope String[] { "No", "Yes" }); + scope String[] ( "No", "Yes" )); AddPropertiesItem(category, "Realtime Leak Check", "mEnableRealtimeLeakCheck", - scope String[] { "No", "Yes" }); + scope String[] ( "No", "Yes" )); AddPropertiesItem(category, "Enable Hot Compilation", "mAllowHotSwapping", - scope String[] { "No", "Yes" }); + scope String[] ( "No", "Yes" )); AddPropertiesItem(category, "Alloc Stack Trace Depth", "mAllocStackTraceDepth"); category.Open(true, true);