From c78e9a35b853d2db390d8561bf4e763543c60e72 Mon Sep 17 00:00:00 2001 From: Sergey Larin Date: Thu, 28 Apr 2022 22:41:47 +0300 Subject: [PATCH] Support UnderscoreisSeparator modeswitch. Also ImplicitFunctionSpecialization moved to supported by FPC modeswitches. --- components/codetools/linkscanner.pas | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/codetools/linkscanner.pas b/components/codetools/linkscanner.pas index 2dd517d94e..d7283ff98e 100644 --- a/components/codetools/linkscanner.pas +++ b/components/codetools/linkscanner.pas @@ -222,12 +222,13 @@ type cmsMultiHelpers, { helpers can appear in multiple scopes simultaneously } cmsArray2dynarray, { regular arrays can be implicitly converted to dynamic arrays } cmsPrefixedAttributes, { enable attributes that are defined before the type they belong to } + cmsUnderscoreisSeparator, { _ can be used as separator to group digits in numbers } + cmsImplicitFunctionSpecialization, { infer types on calls of generic functions } // not yet in FPC, supported by pas2js: cmsExternalClass, { pas2js: allow class external [pkgname] name [symbol] } cmsIgnoreAttributes, { pas2js: ignore attributes } cmsOmitRTTI, { pas2js: treat class section 'published' as 'public' and typeinfo does not work on symbols declared with this switch } - cmsImplicitFunctionSpecialization, { infer types on calls of generic functions } cmsMultiLineStrings { pas2js: Multiline strings } ); TCompilerModeSwitches = set of TCompilerModeSwitch; @@ -315,11 +316,12 @@ const 'MULTIHELPERS', 'ARRAYTODYNARRAY', 'PREFIXEDATTRIBUTES', + 'UNDERSCOREISSEPARATOR', + 'IMPLICITFUNCTIONSPECIALIZATION', // not yet in FPC, supported by pas2js: 'EXTERNALCLASS', 'IGNOREATTRIBUTES', 'OMITRTTI', - 'IMPLICITFUNCTIONSPECIALIZATION', 'MULTILINESTRINGS' );