Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ebbd504e0f | ||
|
|
4bdeb795e7 | ||
|
|
3e849512f2 | ||
|
|
09f0e26cd5 | ||
|
|
62e13df4f2 | ||
|
|
75500584dd | ||
|
|
37e62ef92e | ||
|
|
ff64d03617 | ||
|
|
8c4c45aa5e | ||
|
|
803e9aa64e | ||
|
|
2843dfde8f | ||
|
|
fad44e2ee7 | ||
|
|
3067304024 | ||
|
|
91d458cc25 | ||
|
|
4b25cf7cea | ||
|
|
6152d3d67c | ||
|
|
59ea063e6e | ||
|
|
da71161dda | ||
|
|
6f12728575 | ||
|
|
41da8a746b | ||
|
|
32fba0e9b5 | ||
|
|
9a0ff6b2a1 | ||
|
|
8a1f941db1 | ||
|
|
688d706f3e | ||
|
|
19850fcdb6 | ||
|
|
d93540a274 | ||
|
|
30cf6f3baa | ||
|
|
75d3e4ed62 | ||
|
|
82fd2d21c7 | ||
|
|
3675f954b6 | ||
|
|
5551b2b25b | ||
|
|
221457c348 | ||
|
|
21a892b5b5 | ||
|
|
a372130733 | ||
|
|
69c8c34f43 | ||
|
|
8e66ef8de3 | ||
|
|
e0963a5233 | ||
|
|
8f421ab582 | ||
|
|
28f2c87919 | ||
|
|
90232de96e | ||
|
|
c03fe1133f |
@@ -46,7 +46,7 @@ INSTALL=install -o $(USER) -g $(USER)
|
||||
# Library's major version number -- Increment in case of incompatible API
|
||||
# change.
|
||||
MAJORVER = 3
|
||||
# Library's minor version number -- Increment when functionnality is added in a
|
||||
# Library's minor version number -- Increment when functionality is added in a
|
||||
# backward-compatible manner; reset to 0 when major number changes.
|
||||
MINORVER = 2
|
||||
# Library's patch version number -- Increment in case of backward-compatible
|
||||
|
||||
@@ -14,7 +14,7 @@ elseif(NOT WIN32) # Linux
|
||||
endif()
|
||||
elseif(MINGW)
|
||||
target_compile_options(astyle PRIVATE -Wall -Wextra -fno-rtti -fno-exceptions -std=c++11)
|
||||
elseif(BORLAND) # Release must be explicitely requested for Borland
|
||||
elseif(BORLAND) # Release must be explicitly requested for Borland
|
||||
target_compile_options(astyle PRIVATE -q -w -x-) # Cannot use no-rtti (-RT-)
|
||||
endif()
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ endif()
|
||||
|
||||
# Linux Soname Version
|
||||
set(MAJORVER 3)
|
||||
set(MINORVER 3)
|
||||
set(MINORVER 4)
|
||||
set(PATCHVER 0)
|
||||
set(SOLIBVER ${MAJORVER}.${MINORVER}.${PATCHVER})
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ INSTALL=install -o $(USER) -g $(USER)
|
||||
# Library's major version number -- Increment in case of incompatible API
|
||||
# change.
|
||||
MAJORVER = 3
|
||||
# Library's minor version number -- Increment when functionnality is added in a
|
||||
# Library's minor version number -- Increment when functionality is added in a
|
||||
# backward-compatible manner; reset to 0 when major number changes.
|
||||
MINORVER = 2
|
||||
# Library's patch version number -- Increment in case of backward-compatible
|
||||
|
||||
@@ -56,7 +56,7 @@ INSTALL=install -o $(USER) -g $(USER)
|
||||
# Library's major version number -- Increment in case of incompatible API
|
||||
# change.
|
||||
MAJORVER = 3
|
||||
# Library's minor version number -- Increment when functionnality is added in a
|
||||
# Library's minor version number -- Increment when functionality is added in a
|
||||
# backward-compatible manner; reset to 0 when major number changes.
|
||||
MINORVER = 2
|
||||
# Library's patch version number -- Increment in case of backward-compatible
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.28516.95
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AStyle", "AStyle\AStyle.vcxproj", "{24189F85-8CB6-4993-8530-855BD6C8B70A}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
Static|x64 = Static|x64
|
||||
Static|x86 = Static|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Debug|x64.Build.0 = Debug|x64
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Debug|x86.ActiveCfg = Debug|Win32
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Debug|x86.Build.0 = Debug|Win32
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Release|x64.ActiveCfg = Release|x64
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Release|x64.Build.0 = Release|x64
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Release|x86.ActiveCfg = Release|Win32
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Release|x86.Build.0 = Release|Win32
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Static|x64.ActiveCfg = Static|x64
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Static|x64.Build.0 = Static|x64
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Static|x86.ActiveCfg = Static|Win32
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Static|x86.Build.0 = Static|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {C49A012F-6AB6-4660-B927-2AAF54D082AA}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,37 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.28516.95
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AStyle Dll", "AStyle Dll\AStyle Dll.vcxproj", "{07229666-1841-4021-B206-1A8917985A66}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
Static|x64 = Static|x64
|
||||
Static|x86 = Static|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Debug|x64.Build.0 = Debug|x64
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Debug|x86.ActiveCfg = Debug|Win32
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Debug|x86.Build.0 = Debug|Win32
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Release|x64.ActiveCfg = Release|x64
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Release|x64.Build.0 = Release|x64
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Release|x86.ActiveCfg = Release|Win32
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Release|x86.Build.0 = Release|Win32
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Static|x64.ActiveCfg = Static|x64
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Static|x64.Build.0 = Static|x64
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Static|x86.ActiveCfg = Static|Win32
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Static|x86.Build.0 = Static|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {71D57643-84DD-4750-89C3-6369BEA22324}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,279 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Static|Win32">
|
||||
<Configuration>Static</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Static|x64">
|
||||
<Configuration>Static</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<VCProjectVersion>15.0</VCProjectVersion>
|
||||
<ProjectGuid>{07229666-1841-4021-B206-1A8917985A66}</ProjectGuid>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<RootNamespace>AStyleDll</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Static|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Static|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="Shared">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Static|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Static|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<OutDir>$(SolutionDir)debug\</OutDir>
|
||||
<TargetName>AStyle32d</TargetName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<OutDir>$(SolutionDir)$(Platform)\debug\</OutDir>
|
||||
<TargetName>AStyle32d</TargetName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<OutDir>$(SolutionDir)bin\</OutDir>
|
||||
<TargetName>AStyle32</TargetName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Static|Win32'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<OutDir>$(SolutionDir)binstatic\</OutDir>
|
||||
<TargetName>AStyle32</TargetName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<OutDir>$(SolutionDir)$(Platform)\bin\</OutDir>
|
||||
<TargetName>AStyle32</TargetName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Static|x64'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<OutDir>$(SolutionDir)$(Platform)\binstatic\</OutDir>
|
||||
<TargetName>AStyle32</TargetName>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<PreprocessorDefinitions>_DEBUG;ASTYLE_LIB</PreprocessorDefinitions>
|
||||
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<AdditionalOptions>/EXPORT:AStyleMain=_AStyleMain@16
|
||||
/EXPORT:AStyleMainUtf16=_AStyleMainUtf16@16
|
||||
/EXPORT:AStyleGetVersion=_AStyleGetVersion@0</AdditionalOptions>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<PreprocessorDefinitions>_DEBUG;ASTYLE_LIB</PreprocessorDefinitions>
|
||||
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<PreprocessorDefinitions>NDEBUG;_HAS_EXCEPTIONS=0;ASTYLE_LIB</PreprocessorDefinitions>
|
||||
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<ExceptionHandling>false</ExceptionHandling>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<GenerateDebugInformation>No</GenerateDebugInformation>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<AdditionalOptions>/EXPORT:AStyleMain=_AStyleMain@16
|
||||
/EXPORT:AStyleMainUtf16=_AStyleMainUtf16@16
|
||||
/EXPORT:AStyleGetVersion=_AStyleGetVersion@0</AdditionalOptions>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Static|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<PreprocessorDefinitions>NDEBUG;_HAS_EXCEPTIONS=0;ASTYLE_LIB</PreprocessorDefinitions>
|
||||
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<ExceptionHandling>false</ExceptionHandling>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<GenerateDebugInformation>No</GenerateDebugInformation>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<AdditionalOptions>/EXPORT:AStyleMain=_AStyleMain@16
|
||||
/EXPORT:AStyleMainUtf16=_AStyleMainUtf16@16
|
||||
/EXPORT:AStyleGetVersion=_AStyleGetVersion@0</AdditionalOptions>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<PreprocessorDefinitions>NDEBUG;_HAS_EXCEPTIONS=0;ASTYLE_LIB</PreprocessorDefinitions>
|
||||
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<ExceptionHandling>false</ExceptionHandling>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<GenerateDebugInformation>No</GenerateDebugInformation>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Static|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<PreprocessorDefinitions>NDEBUG;_HAS_EXCEPTIONS=0;ASTYLE_LIB</PreprocessorDefinitions>
|
||||
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<ExceptionHandling>false</ExceptionHandling>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<GenerateDebugInformation>No</GenerateDebugInformation>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\..\src\ASBeautifier.cpp" />
|
||||
<ClCompile Include="..\..\..\src\ASEnhancer.cpp" />
|
||||
<ClCompile Include="..\..\..\src\ASFormatter.cpp" />
|
||||
<ClCompile Include="..\..\..\src\ASResource.cpp" />
|
||||
<ClCompile Include="..\..\..\src\astyle_main.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\..\src\astyle.h" />
|
||||
<ClInclude Include="..\..\..\src\astyle_main.h" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,42 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Header Files">
|
||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||
<Extensions>h;hh;hpp;hxx;hm;inl;inc;ipp;xsd</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Resource Files">
|
||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\..\src\astyle.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\src\astyle_main.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\..\src\ASBeautifier.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\ASEnhancer.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\ASFormatter.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\ASResource.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\astyle_main.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,37 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.28516.95
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AStyle Java", "AStyle Java\AStyle Java.vcxproj", "{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
Static|x64 = Static|x64
|
||||
Static|x86 = Static|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Debug|x64.Build.0 = Debug|x64
|
||||
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Debug|x86.ActiveCfg = Debug|Win32
|
||||
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Debug|x86.Build.0 = Debug|Win32
|
||||
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Release|x64.ActiveCfg = Release|x64
|
||||
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Release|x64.Build.0 = Release|x64
|
||||
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Release|x86.ActiveCfg = Release|Win32
|
||||
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Release|x86.Build.0 = Release|Win32
|
||||
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Static|x64.ActiveCfg = Static|x64
|
||||
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Static|x64.Build.0 = Static|x64
|
||||
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Static|x86.ActiveCfg = Static|Win32
|
||||
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Static|x86.Build.0 = Static|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {A4619C60-3409-478F-B944-70443175BDEB}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,285 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Static|Win32">
|
||||
<Configuration>Static</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Static|x64">
|
||||
<Configuration>Static</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<VCProjectVersion>15.0</VCProjectVersion>
|
||||
<ProjectGuid>{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}</ProjectGuid>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<RootNamespace>AStyleJava</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Static|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Static|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="Shared">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Static|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Static|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<OutDir>$(SolutionDir)debug\</OutDir>
|
||||
<TargetName>AStyle32jd</TargetName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<OutDir>$(SolutionDir)$(Platform)\debug\</OutDir>
|
||||
<TargetName>AStyle32jd</TargetName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<OutDir>$(SolutionDir)bin\</OutDir>
|
||||
<TargetName>AStyle32j</TargetName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Static|Win32'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<OutDir>$(SolutionDir)binstatic\</OutDir>
|
||||
<TargetName>AStyle32j</TargetName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<OutDir>$(SolutionDir)$(Platform)\bin\</OutDir>
|
||||
<TargetName>AStyle32j</TargetName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Static|x64'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<OutDir>$(SolutionDir)$(Platform)\binstatic\</OutDir>
|
||||
<TargetName>AStyle32j</TargetName>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<PreprocessorDefinitions>_DEBUG;ASTYLE_JNI</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories>$(JAVA_HOME)\include;$(JAVA_HOME)\include\win32</AdditionalIncludeDirectories>
|
||||
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<AdditionalOptions>/EXPORT:AStyleMain=_AStyleMain@16
|
||||
/EXPORT:AStyleMainUtf16=_AStyleMainUtf16@16
|
||||
/EXPORT:AStyleGetVersion=_AStyleGetVersion@0 %(AdditionalOptions)</AdditionalOptions>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<PreprocessorDefinitions>_DEBUG;ASTYLE_JNI</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories>$(JAVA_HOME)\include;$(JAVA_HOME)\include\win32</AdditionalIncludeDirectories>
|
||||
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<PreprocessorDefinitions>NDEBUG;_HAS_EXCEPTIONS=0;ASTYLE_JNI</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories>$(JAVA_HOME)\include;$(JAVA_HOME)\include\win32</AdditionalIncludeDirectories>
|
||||
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||
<ExceptionHandling>false</ExceptionHandling>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<GenerateDebugInformation>No</GenerateDebugInformation>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<AdditionalOptions>/EXPORT:AStyleMain=_AStyleMain@16
|
||||
/EXPORT:AStyleMainUtf16=_AStyleMainUtf16@16
|
||||
/EXPORT:AStyleGetVersion=_AStyleGetVersion@0 %(AdditionalOptions)</AdditionalOptions>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Static|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<PreprocessorDefinitions>NDEBUG;_HAS_EXCEPTIONS=0;ASTYLE_JNI</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories>$(JAVA_HOME)\include;$(JAVA_HOME)\include\win32</AdditionalIncludeDirectories>
|
||||
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<ExceptionHandling>false</ExceptionHandling>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<GenerateDebugInformation>No</GenerateDebugInformation>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<AdditionalOptions>/EXPORT:AStyleMain=_AStyleMain@16
|
||||
/EXPORT:AStyleMainUtf16=_AStyleMainUtf16@16
|
||||
/EXPORT:AStyleGetVersion=_AStyleGetVersion@0 %(AdditionalOptions)</AdditionalOptions>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<PreprocessorDefinitions>NDEBUG;_HAS_EXCEPTIONS=0;ASTYLE_JNI</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories>$(JAVA_HOME)\include;$(JAVA_HOME)\include\win32</AdditionalIncludeDirectories>
|
||||
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||
<ExceptionHandling>false</ExceptionHandling>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<GenerateDebugInformation>No</GenerateDebugInformation>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Static|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<PreprocessorDefinitions>NDEBUG;_HAS_EXCEPTIONS=0;ASTYLE_JNI</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories>$(JAVA_HOME)\include;$(JAVA_HOME)\include\win32</AdditionalIncludeDirectories>
|
||||
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<ExceptionHandling>false</ExceptionHandling>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<GenerateDebugInformation>No</GenerateDebugInformation>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\..\src\ASBeautifier.cpp" />
|
||||
<ClCompile Include="..\..\..\src\ASEnhancer.cpp" />
|
||||
<ClCompile Include="..\..\..\src\ASFormatter.cpp" />
|
||||
<ClCompile Include="..\..\..\src\ASResource.cpp" />
|
||||
<ClCompile Include="..\..\..\src\astyle_main.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\..\src\astyle.h" />
|
||||
<ClInclude Include="..\..\..\src\astyle_main.h" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,42 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Header Files">
|
||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||
<Extensions>h;hh;hpp;hxx;hm;inl;inc;ipp;xsd</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Resource Files">
|
||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\..\src\astyle.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\src\astyle_main.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\..\src\ASBeautifier.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\ASEnhancer.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\ASFormatter.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\ASResource.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\astyle_main.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,37 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.28516.95
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AStyle Lib", "AStyle Lib\AStyle Lib.vcxproj", "{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
Static|x64 = Static|x64
|
||||
Static|x86 = Static|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Debug|x64.Build.0 = Debug|x64
|
||||
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Debug|x86.ActiveCfg = Debug|Win32
|
||||
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Debug|x86.Build.0 = Debug|Win32
|
||||
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Release|x64.ActiveCfg = Release|x64
|
||||
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Release|x64.Build.0 = Release|x64
|
||||
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Release|x86.ActiveCfg = Release|Win32
|
||||
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Release|x86.Build.0 = Release|Win32
|
||||
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Static|x64.ActiveCfg = Static|x64
|
||||
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Static|x64.Build.0 = Static|x64
|
||||
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Static|x86.ActiveCfg = Static|Win32
|
||||
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Static|x86.Build.0 = Static|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {9A55493F-97EF-4723-B937-B41EBB84F52B}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,266 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Static|Win32">
|
||||
<Configuration>Static</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Static|x64">
|
||||
<Configuration>Static</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<VCProjectVersion>15.0</VCProjectVersion>
|
||||
<ProjectGuid>{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}</ProjectGuid>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<RootNamespace>AStyleLib</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Static|Win32'" Label="Configuration">
|
||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Static|x64'" Label="Configuration">
|
||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="Shared">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Static|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Static|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<OutDir>$(SolutionDir)debug\</OutDir>
|
||||
<TargetName>AStyleLibd</TargetName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<OutDir>$(SolutionDir)$(Platform)\debug\</OutDir>
|
||||
<TargetName>AStyleLibd</TargetName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<OutDir>$(SolutionDir)bin\</OutDir>
|
||||
<TargetName>AStyleLib</TargetName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Static|Win32'">
|
||||
<OutDir>$(SolutionDir)binstatic\</OutDir>
|
||||
<TargetName>AStyleLib</TargetName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<OutDir>$(SolutionDir)$(Platform)\bin\</OutDir>
|
||||
<TargetName>AStyleLib</TargetName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Static|x64'">
|
||||
<OutDir>$(SolutionDir)$(Platform)\binstatic\</OutDir>
|
||||
<TargetName>AStyleLib</TargetName>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<PreprocessorDefinitions>_DEBUG;ASTYLE_LIB;ASTYLE_NO_EXPORT</PreprocessorDefinitions>
|
||||
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<PreprocessorDefinitions>_DEBUG;ASTYLE_LIB;ASTYLE_NO_EXPORT</PreprocessorDefinitions>
|
||||
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<PreprocessorDefinitions>NDEBUG;_HAS_EXCEPTIONS=0;ASTYLE_LIB;ASTYLE_NO_EXPORT</PreprocessorDefinitions>
|
||||
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<ExceptionHandling>false</ExceptionHandling>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Static|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<PreprocessorDefinitions>NDEBUG;_HAS_EXCEPTIONS=0;ASTYLE_LIB;ASTYLE_NO_EXPORT</PreprocessorDefinitions>
|
||||
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<ExceptionHandling>false</ExceptionHandling>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<PreprocessorDefinitions>NDEBUG;_HAS_EXCEPTIONS=0;ASTYLE_LIB;ASTYLE_NO_EXPORT</PreprocessorDefinitions>
|
||||
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<ExceptionHandling>false</ExceptionHandling>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Static|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<PreprocessorDefinitions>NDEBUG;_HAS_EXCEPTIONS=0;ASTYLE_LIB;ASTYLE_NO_EXPORT</PreprocessorDefinitions>
|
||||
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<ExceptionHandling>false</ExceptionHandling>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\..\src\ASBeautifier.cpp" />
|
||||
<ClCompile Include="..\..\..\src\ASEnhancer.cpp" />
|
||||
<ClCompile Include="..\..\..\src\ASFormatter.cpp" />
|
||||
<ClCompile Include="..\..\..\src\ASResource.cpp" />
|
||||
<ClCompile Include="..\..\..\src\astyle_main.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\..\src\astyle.h" />
|
||||
<ClInclude Include="..\..\..\src\astyle_main.h" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,42 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Header Files">
|
||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||
<Extensions>h;hh;hpp;hxx;hm;inl;inc;ipp;xsd</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Resource Files">
|
||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\..\src\astyle.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\src\astyle_main.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\..\src\ASBeautifier.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\ASEnhancer.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\ASFormatter.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\ASResource.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\astyle_main.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,285 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Static|Win32">
|
||||
<Configuration>Static</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Static|x64">
|
||||
<Configuration>Static</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<VCProjectVersion>15.0</VCProjectVersion>
|
||||
<ProjectGuid>{24189F85-8CB6-4993-8530-855BD6C8B70A}</ProjectGuid>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<RootNamespace>AStyle</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Static|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Static|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="Shared">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Static|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Static|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<OutDir>$(SolutionDir)debug\</OutDir>
|
||||
<TargetName>AStyled</TargetName>
|
||||
<RunCodeAnalysis>false</RunCodeAnalysis>
|
||||
<EnableCppCoreCheck>true</EnableCppCoreCheck>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<OutDir>$(SolutionDir)$(Platform)\debug\</OutDir>
|
||||
<TargetName>AStyled</TargetName>
|
||||
<RunCodeAnalysis>false</RunCodeAnalysis>
|
||||
<EnableCppCoreCheck>true</EnableCppCoreCheck>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<OutDir>$(SolutionDir)bin\</OutDir>
|
||||
<TargetName>AStyle</TargetName>
|
||||
<RunCodeAnalysis>false</RunCodeAnalysis>
|
||||
<EnableCppCoreCheck>true</EnableCppCoreCheck>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Static|Win32'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<OutDir>$(SolutionDir)binstatic\</OutDir>
|
||||
<TargetName>AStyle</TargetName>
|
||||
<RunCodeAnalysis>false</RunCodeAnalysis>
|
||||
<EnableCppCoreCheck>true</EnableCppCoreCheck>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<OutDir>$(SolutionDir)$(Platform)\bin\</OutDir>
|
||||
<TargetName>AStyle</TargetName>
|
||||
<RunCodeAnalysis>false</RunCodeAnalysis>
|
||||
<EnableCppCoreCheck>true</EnableCppCoreCheck>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Static|x64'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<OutDir>$(SolutionDir)$(Platform)\binstatic\</OutDir>
|
||||
<TargetName>AStyle</TargetName>
|
||||
<RunCodeAnalysis>false</RunCodeAnalysis>
|
||||
<EnableCppCoreCheck>true</EnableCppCoreCheck>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<PreprocessorDefinitions>_DEBUG</PreprocessorDefinitions>
|
||||
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<AdditionalOptions>/utf-8</AdditionalOptions>
|
||||
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<EnablePREfast>false</EnablePREfast>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<PreprocessorDefinitions>_DEBUG</PreprocessorDefinitions>
|
||||
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<AdditionalOptions>/utf-8</AdditionalOptions>
|
||||
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<EnablePREfast>false</EnablePREfast>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<PreprocessorDefinitions>NDEBUG;_HAS_EXCEPTIONS=0</PreprocessorDefinitions>
|
||||
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<ExceptionHandling>false</ExceptionHandling>
|
||||
<AdditionalOptions>/utf-8</AdditionalOptions>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<EnablePREfast>false</EnablePREfast>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<GenerateDebugInformation>false</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Static|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<PreprocessorDefinitions>NDEBUG;_HAS_EXCEPTIONS=0</PreprocessorDefinitions>
|
||||
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<ExceptionHandling>false</ExceptionHandling>
|
||||
<AdditionalOptions>/utf-8</AdditionalOptions>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<EnablePREfast>false</EnablePREfast>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<GenerateDebugInformation>false</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<PreprocessorDefinitions>NDEBUG;_HAS_EXCEPTIONS=0</PreprocessorDefinitions>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||
<ExceptionHandling>false</ExceptionHandling>
|
||||
<AdditionalOptions>/utf-8</AdditionalOptions>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<EnablePREfast>false</EnablePREfast>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<GenerateDebugInformation>false</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Static|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<PreprocessorDefinitions>NDEBUG;_HAS_EXCEPTIONS=0</PreprocessorDefinitions>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<ExceptionHandling>false</ExceptionHandling>
|
||||
<AdditionalOptions>/utf-8</AdditionalOptions>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<EnablePREfast>false</EnablePREfast>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<GenerateDebugInformation>false</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\..\src\ASBeautifier.cpp" />
|
||||
<ClCompile Include="..\..\..\src\ASEnhancer.cpp" />
|
||||
<ClCompile Include="..\..\..\src\ASFormatter.cpp" />
|
||||
<ClCompile Include="..\..\..\src\ASLocalizer.cpp" />
|
||||
<ClCompile Include="..\..\..\src\ASResource.cpp" />
|
||||
<ClCompile Include="..\..\..\src\astyle_main.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\..\src\ASLocalizer.h" />
|
||||
<ClInclude Include="..\..\..\src\astyle.h" />
|
||||
<ClInclude Include="..\..\..\src\astyle_main.h" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,48 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Header Files">
|
||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||
<Extensions>h;hh;hpp;hxx;hm;inl;inc;ipp;xsd</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Resource Files">
|
||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\..\src\ASBeautifier.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\ASEnhancer.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\ASFormatter.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\ASLocalizer.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\ASResource.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\astyle_main.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\..\src\ASLocalizer.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\src\astyle.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\src\astyle_main.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,79 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.28516.95
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AStyle", "AStyle\AStyle.vcxproj", "{24189F85-8CB6-4993-8530-855BD6C8B70A}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AStyle Dll", "AStyle Dll\AStyle Dll.vcxproj", "{07229666-1841-4021-B206-1A8917985A66}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AStyle Java", "AStyle Java\AStyle Java.vcxproj", "{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AStyle Lib", "AStyle Lib\AStyle Lib.vcxproj", "{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
Static|x64 = Static|x64
|
||||
Static|x86 = Static|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Debug|x64.Build.0 = Debug|x64
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Debug|x86.ActiveCfg = Debug|Win32
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Debug|x86.Build.0 = Debug|Win32
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Release|x64.ActiveCfg = Release|x64
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Release|x64.Build.0 = Release|x64
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Release|x86.ActiveCfg = Release|Win32
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Release|x86.Build.0 = Release|Win32
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Static|x64.ActiveCfg = Static|x64
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Static|x64.Build.0 = Static|x64
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Static|x86.ActiveCfg = Static|Win32
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Static|x86.Build.0 = Static|Win32
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Debug|x64.Build.0 = Debug|x64
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Debug|x86.ActiveCfg = Debug|Win32
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Debug|x86.Build.0 = Debug|Win32
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Release|x64.ActiveCfg = Release|x64
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Release|x64.Build.0 = Release|x64
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Release|x86.ActiveCfg = Release|Win32
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Release|x86.Build.0 = Release|Win32
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Static|x64.ActiveCfg = Static|x64
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Static|x64.Build.0 = Static|x64
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Static|x86.ActiveCfg = Static|Win32
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Static|x86.Build.0 = Static|Win32
|
||||
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Debug|x64.Build.0 = Debug|x64
|
||||
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Debug|x86.ActiveCfg = Debug|Win32
|
||||
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Debug|x86.Build.0 = Debug|Win32
|
||||
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Release|x64.ActiveCfg = Release|x64
|
||||
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Release|x64.Build.0 = Release|x64
|
||||
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Release|x86.ActiveCfg = Release|Win32
|
||||
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Release|x86.Build.0 = Release|Win32
|
||||
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Static|x64.ActiveCfg = Static|x64
|
||||
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Static|x64.Build.0 = Static|x64
|
||||
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Static|x86.ActiveCfg = Static|Win32
|
||||
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Static|x86.Build.0 = Static|Win32
|
||||
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Debug|x64.Build.0 = Debug|x64
|
||||
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Debug|x86.ActiveCfg = Debug|Win32
|
||||
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Debug|x86.Build.0 = Debug|Win32
|
||||
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Release|x64.ActiveCfg = Release|x64
|
||||
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Release|x64.Build.0 = Release|x64
|
||||
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Release|x86.ActiveCfg = Release|Win32
|
||||
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Release|x86.Build.0 = Release|Win32
|
||||
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Static|x64.ActiveCfg = Static|x64
|
||||
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Static|x64.Build.0 = Static|x64
|
||||
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Static|x86.ActiveCfg = Static|Win32
|
||||
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Static|x86.Build.0 = Static|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {33934F68-90BE-4D0F-B5D0-5EEF8F43412D}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -53,7 +53,7 @@ if [ ! -f install.sh ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# remove previous documentaion
|
||||
# remove previous documentation
|
||||
echo $CYAN
|
||||
echo "Installing documentation to $SYSCONF_PATH"
|
||||
echo -n $YELLOW
|
||||
@@ -61,12 +61,12 @@ if [ -d $SYSCONF_PATH/html ]; then
|
||||
rm -rf $SYSCONF_PATH/html
|
||||
result=$?; check_error
|
||||
fi
|
||||
# create documentaion install directory
|
||||
# create documentation install directory
|
||||
if [ ! -d $SYSCONF_PATH/html ]; then
|
||||
$INSTALL -m 755 -d $SYSCONF_PATH/html
|
||||
result=$?; check_error
|
||||
fi
|
||||
# copy documentaion
|
||||
# copy documentation
|
||||
for files in astyle.html \
|
||||
install.html \
|
||||
news.html \
|
||||
|
||||
+36
-1
@@ -60,7 +60,7 @@
|
||||
|
||||
<button onclick="topFunction()" id="topBtn" title="Go to Contents"><b>Top</b></button>
|
||||
|
||||
<h1>Artistic Style 3.3</h1>
|
||||
<h1>Artistic Style 3.4.6</h1>
|
||||
|
||||
<h2>
|
||||
A Free, Fast, and Small Automatic Formatter<br />
|
||||
@@ -139,6 +139,8 @@
|
||||
<a class="contents" href="#_indent-col1-comments">indent-col1-comments</a>
|
||||
<a class="contents" href="#_min-conditional-indent">min-conditional-indent</a>
|
||||
<a class="contents" href="#_max-continuation-indent">max-continuation-indent</a>
|
||||
<a class="contents" href="#_lambda_indent">lambda-indent</a>
|
||||
|
||||
</p>
|
||||
<p class="contents1">
|
||||
<a href="#_Padding_Options">Padding Options</a></p>
|
||||
@@ -1513,6 +1515,7 @@ if (a < b
|
||||
</div>
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<p id="_max-continuation-indent">
|
||||
<code class="title">--max-continuation-indent=<span class="option">#</span> / -M<span class="option">#</span></code><br />
|
||||
Set the maximum of <span class="option">#</span> spaces to indent a continuation line. The
|
||||
@@ -1540,6 +1543,38 @@ fooFunction(barArg1,
|
||||
barArg3);
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<p id="_lambda_indent">
|
||||
<code class="title">--lambda-indent</code><br />
|
||||
This option improves indentation of C++ lambda functions. As it currently does not work well with complex lambda function bodies, this feature is not enabled by default.
|
||||
</p>
|
||||
|
||||
<div class="code">
|
||||
<pre>void abssort (float* x, unsigned n)
|
||||
{
|
||||
std::sort (x, x + n,
|
||||
[] (float a, float b) {
|
||||
return (std::abs (a) < std::abs (b));
|
||||
}
|
||||
);
|
||||
}</pre>
|
||||
</div>
|
||||
|
||||
<p class="code">
|
||||
becomes:</p>
|
||||
|
||||
<div class="code">
|
||||
<pre>void abssort (float* x, unsigned n)
|
||||
{
|
||||
std::sort (x, x + n,
|
||||
[] (float a, float b) {
|
||||
return (std::abs (a) < std::abs (b));
|
||||
}
|
||||
);
|
||||
}</pre>
|
||||
</div>
|
||||
|
||||
|
||||
<p>
|
||||
</p>
|
||||
<hr />
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
<!-- body text -->
|
||||
|
||||
<h1>Artistic Style 3.2</h1>
|
||||
<h1>Artistic Style 3.4.6</h1>
|
||||
|
||||
<h2>
|
||||
A Free, Fast, and Small Automatic Formatter<br />
|
||||
|
||||
+11
-2
@@ -58,6 +58,9 @@
|
||||
<p class="contents1">
|
||||
<a class="contents" href="#_Compiler_Options">Compiler Options</a></p>
|
||||
|
||||
<p class="contents2">
|
||||
<a class="contents" href="#_PIP">Python PIP</a></p>
|
||||
|
||||
<h3 id="_Artistic_Style_Versions">Artistic Style Versions</h3>
|
||||
|
||||
<p>
|
||||
@@ -585,8 +588,14 @@ mingw32-make</pre>
|
||||
option that allows inline function expansion. Runtime Type Information (RTTI) is NOT needed and exceptions are
|
||||
NOT used. Use whole program optimization if your compiler supports it. There may be other options you can use
|
||||
depending on the compiler. </p>
|
||||
<p>
|
||||
</p>
|
||||
|
||||
<h3 id="_PIP">Python PIP</h3>
|
||||
|
||||
<p>
|
||||
There are two projects which enable astyle installation using PIP: <a href="https://github.com/Freed-Wu/astyle-wheel/">astyle-wheel</a> and <a href="https://github.com/igrr/astyle_py">astyle_py (using WASM)</a>.<br>
|
||||
These are useful to be included in git pre-commit hooks.
|
||||
</p>
|
||||
|
||||
|
||||
<p style="margin-left: -0.4in; text-align: center;">
|
||||
<a href="http://sourceforge.net/projects/astyle">
|
||||
|
||||
+12
-1
@@ -14,7 +14,18 @@
|
||||
|
||||
<h1>Artistic Style News</h1>
|
||||
|
||||
<h3>Artistic Style 3.3 (ongoing)</h3>
|
||||
<h3>Artistic Style 3.4</h3>
|
||||
|
||||
<p>
|
||||
A new option "--indent-lambda" was added to apply the lambda recognition only if applicable.
|
||||
Currently complex lambda functions are not intended properly.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Some C# related formatting issues were fixed.
|
||||
</p>
|
||||
|
||||
<h3>Artistic Style 3.3</h3>
|
||||
|
||||
<p>
|
||||
The source code has been refactored to no longer use the std namespace globally.
|
||||
|
||||
@@ -209,7 +209,7 @@
|
||||
This bug fix release is issued because of the length of time required for the some of the changes in the next
|
||||
release (2.03). Bugs with the breaking of "case" statements and a crash with pointer to pointer (**) in align-pointer=type
|
||||
have been fixed. The "case" statements that have been incorrectly broken will be fixed in this release. Pointers
|
||||
and references are now processed for C# files. See the "Release Notes" for more information and additional
|
||||
and references are now processed for C# files. See the "Release Notes" for more information and additional
|
||||
changes.</p>
|
||||
|
||||
<h4><strong>The following information is for the original 2.02 release.</strong></h4>
|
||||
@@ -229,8 +229,8 @@
|
||||
must be input from the command line and not an option file. See the documentation for details.</p>
|
||||
<p>
|
||||
The translations were mostly done with an automated translation program, Google Translate, so they may not be
|
||||
the best translation possible. The translations are at the end of ASLocalizer.cpp in the form of an
|
||||
English‑Translation pair. If you correct a translation, send the source as a bug report and it will be
|
||||
the best translation possible. The translations are at the end of ASLocalizer.cpp in the form of an
|
||||
English‑Translation pair. If you correct a translation, send the source as a bug report and it will be
|
||||
included in the next release.</p>
|
||||
<p>
|
||||
To add a language, add a new translation class to ASLocalizer.h. Add the English‑Translation pair to the
|
||||
@@ -270,15 +270,15 @@
|
||||
of containing no uninformative lines. Like Pico, it is also a very compact style.</p>
|
||||
<p>
|
||||
The option "brackets=horstmann" has been removed. Instead use "style=horstmann" or "A9". The short option "g"
|
||||
is now equivalent to the new "brackets=run-in". Run-in brackets are used for both Horstmann and Pico
|
||||
is now equivalent to the new "brackets=run-in". Run-in brackets are used for both Horstmann and Pico
|
||||
styles.</p>
|
||||
<p>
|
||||
The option "indent-brackets" and short option "B" have been removed. Instead use "style=whitesmith" or
|
||||
The option "indent-brackets" and short option "B" have been removed. Instead use "style=whitesmith" or
|
||||
"style=banner".</p>
|
||||
<p>
|
||||
The option "indent-blocks" and short option "G" have been removed. Instead use "style=gnu".</p>
|
||||
<p>
|
||||
Two new options, "style=break" and "style=attach", have been added for Allman and Java bracket styles
|
||||
Two new options, "style=break" and "style=attach", have been added for Allman and Java bracket styles
|
||||
respectively.</p>
|
||||
|
||||
<h4>Other Changes</h4>
|
||||
@@ -399,7 +399,7 @@
|
||||
is no change necessary to the input. Otherwise, check the documentation for the new codes.</p>
|
||||
<p>
|
||||
The --style=linux has been changed to ALWAYS use a minimum conditional indent of one-half the indent length. This
|
||||
is in the style definition and cannot be changed. If you do not want this setting use the K&R style
|
||||
is in the style definition and cannot be changed. If you do not want this setting use the K&R style
|
||||
instead.</p>
|
||||
<p>
|
||||
The MFC macros BEGIN_DISPATCH_MAP, BEGIN_EVENT_MAP, and BEGIN_PROPPAGEIDS are now formatted.</p>
|
||||
@@ -518,7 +518,7 @@
|
||||
should result in a noticeable speed improvement.</p>
|
||||
<p>
|
||||
Checks for the maximum in-statement indent have been fixed. The indent for some long continuation lines may be
|
||||
decreased. If you want the previous indentation, increase the ‑‑max‑in‑statement
|
||||
decreased. If you want the previous indentation, increase the ‑‑max‑in‑statement
|
||||
option.</p>
|
||||
<p>
|
||||
Occasionally, someone will use Artistic Style to format a file encoded with UTF-16 or UTF-32 bit encoding. These
|
||||
@@ -529,7 +529,7 @@
|
||||
of Unicode encodings", "Compatibility issues".</p>
|
||||
<p>
|
||||
The Artistic Style documentation has been changed to include a new "Padding Options" section. The padding options
|
||||
were previously in the "Formatting Options" section. This was done to allow space for additional options in
|
||||
were previously in the "Formatting Options" section. This was done to allow space for additional options in
|
||||
GUIs.</p>
|
||||
<p>
|
||||
The Scripts page has a couple of new scripts, including a "clean" script in python.</p>
|
||||
@@ -669,7 +669,7 @@
|
||||
and Emacs does not have the style. <strong>Artistic Style uses an extra indent for switch blocks and C++ class blocks
|
||||
for both Whitesmith and Banner styles.</strong> This provides the best appearance in defining the style. If
|
||||
a different format is wanted, use the individual options instead of the predefined style. You can try indent‑brackets,
|
||||
indent‑classes, and indent‑swiches on a class or switch block to see the results.</p>
|
||||
indent‑classes, and indent‑switches on a class or switch block to see the results.</p>
|
||||
<p>
|
||||
The GNU style and indent‑blocks option have been changed to indent only the blocks within a function body.
|
||||
The opening bracket for namespaces and classes is no longer indented. The opening bracket for functions remains
|
||||
@@ -794,13 +794,13 @@
|
||||
The OpenVMS distribution is prepared by Jim Duff, an OpenVMS Systems Specialist living in Sydney, Australia. His
|
||||
website is eight‑cubed.com.</p>
|
||||
<p>
|
||||
Thanks to Eran Ifrah and Max Horn for their contributions. Travis Robinson wrote the original C# interface
|
||||
Thanks to Eran Ifrah and Max Horn for their contributions. Travis Robinson wrote the original C# interface
|
||||
program.</p>
|
||||
|
||||
<h4>Developers</h4>
|
||||
|
||||
<p>
|
||||
There is a new page in the Developer Information that has an example of calling Artistic Style from a C#
|
||||
There is a new page in the Developer Information that has an example of calling Artistic Style from a C#
|
||||
program.</p>
|
||||
<p>
|
||||
There was an omission in the peekNextLine function added in the last release which causes it to bypass empty lines.
|
||||
@@ -815,7 +815,7 @@
|
||||
<p>
|
||||
The predefined style options will now override all other options. The order of entry does not matter as in previous
|
||||
versions. This will be done even if astyle_main is not used by your system. This was done by moving the checks
|
||||
from astyle_main to ASFormatter. The procedure is in the function fixOptionVariableConflicts in
|
||||
from astyle_main to ASFormatter. The procedure is in the function fixOptionVariableConflicts in
|
||||
ASFormatter.</p>
|
||||
<p>
|
||||
The predefined style options now define only the bracket placement and sometimes the spaces per tab. This will
|
||||
@@ -824,7 +824,7 @@
|
||||
The conflicts will be resolved by the fixOptionVariableConflicts function which is called after all options have
|
||||
been processed. All you need to do is set the options selected by the user.</p>
|
||||
<p>
|
||||
The Artistic Style for Windows program has been updated to support the current release. It is available at
|
||||
The Artistic Style for Windows program has been updated to support the current release. It is available at
|
||||
jimp03.zxq.net</p>
|
||||
<p>
|
||||
I apologize for the unplanned changes this may add to your system. But Artistic Style is starting to mature as
|
||||
@@ -869,7 +869,7 @@
|
||||
<p>
|
||||
When processing directories recursively it is sometimes necessary to exclude certain files or directories. This
|
||||
can be done using a new exclude (‑‑exclude=file‑or‑directory) option. There is no short
|
||||
option. Multiple exclude statements are allowed. The Other Options section of the documentation contains the
|
||||
option. Multiple exclude statements are allowed. The Other Options section of the documentation contains the
|
||||
details.</p>
|
||||
<p>
|
||||
It is always a good idea to create a backup for files that have been formatted. This can cause a problem in that
|
||||
@@ -964,7 +964,7 @@
|
||||
There is now a distribution package for OpenVMS thanks to Jim Duff, an OpenVMS Systems Specialist living in Sydney
|
||||
Australia. His website is at eight-cubed.com.</p>
|
||||
<p>
|
||||
Thanks to Norbert Holzki and Siemens AG, Medical Solutions, Forchheim, Germany for testing the array
|
||||
Thanks to Norbert Holzki and Siemens AG, Medical Solutions, Forchheim, Germany for testing the array
|
||||
formatting.</p>
|
||||
<p>
|
||||
Thanks to Sam Cooler for testing the Mac OS X version.</p>
|
||||
@@ -996,7 +996,7 @@
|
||||
<p>
|
||||
There is a sample GUI program for Windows available at http://jimp03.zxq.net/. It uses the unmodified Artistic
|
||||
Style compiled for a GUI. The source code needs some work so it is not available for now. It should work under
|
||||
Linux using WINE. Future enhancements and platform support will depend on the response to the sample
|
||||
Linux using WINE. Future enhancements and platform support will depend on the response to the sample
|
||||
program.</p>
|
||||
<p>
|
||||
To support the new Artistic Style preprocessor option there are new makefiles and project files. Windows users
|
||||
@@ -1024,7 +1024,7 @@
|
||||
A new option, unpad=paren, was added. This will undo the pad=paren, pad=paren-out and pad=paren-in options. It
|
||||
can be used alone or with pad=paren-out or pad=paren-in. If used alone it will unpad all parens that have been
|
||||
previously padded. If used with a paren padding option, the paren padding option will take precedence and only
|
||||
the unnecessary padding will be removed. This will enable the paren padding to be changed in one formatting
|
||||
the unnecessary padding will be removed. This will enable the paren padding to be changed in one formatting
|
||||
run.</p>
|
||||
<p>
|
||||
Padding to paren headers (e.g. "if", "for", "while") was reinstated. This was done in previous releases if pad=oper
|
||||
|
||||
@@ -14,6 +14,34 @@
|
||||
|
||||
<h1>Artistic Style Release Notes</h1>
|
||||
|
||||
<h3>Artistic Style 3.4.6 (August 2023)</h3>
|
||||
|
||||
<ul>
|
||||
<li>added VS2022 project files (https://gitlab.com/saalen/astyle/-/merge_requests/3)</li>
|
||||
<li>fixed CS regressions (https://gitlab.com/saalen/astyle/-/issues/16)</li>
|
||||
<li>added CS coalesce assignment operator (https://gitlab.com/saalen/astyle/-/issues/17)</li>
|
||||
</ul>
|
||||
|
||||
<h3>Artistic Style 3.4.1 (August 2023)</h3>
|
||||
|
||||
<ul>
|
||||
<li>fixed padding of & following a comma (#552)</li>
|
||||
<li>fixed indent of function declarations following access modifiers (#504)</li>
|
||||
<li>fixed indent of C# allocation blocks (#464)</li>
|
||||
<li>fixed indentation of comments after CS interpolation quotes (https://gitlab.com/saalen/astyle/-/issues/16)</li>
|
||||
</ul>
|
||||
|
||||
<h3>Artistic Style 3.4 (June 2023)</h3>
|
||||
|
||||
<ul>
|
||||
<li>fixed formatting of CS interpolation literals (https://gitlab.com/saalen/astyle/-/issues/8).</li>
|
||||
<li>fixed false lambda recognition (https://gitlab.com/saalen/astyle/-/issues/11)</li>
|
||||
<li>fixed indentation of member declarations (https://gitlab.com/saalen/astyle/-/issues/10)</li>
|
||||
<li>fixed indentation of struct assignments (https://gitlab.com/saalen/astyle/-/issues/12)</li>
|
||||
<li>added new option "--indent-lambda" to to enable new lambda recognition (https://gitlab.com/saalen/astyle/-/issues/7)</li>
|
||||
<li>added link to astyle Python distribution projects (https://gitlab.com/saalen/astyle/-/issues/6)</li>
|
||||
</ul>
|
||||
|
||||
<h3>Artistic Style 3.3 (May 2023)</h3>
|
||||
|
||||
<ul>
|
||||
|
||||
@@ -268,6 +268,9 @@ parser:option "--squeeze-lines"
|
||||
parser:flag "--squeeze-ws"
|
||||
:description "Remove superfluous whitespace"
|
||||
|
||||
parser:flag "--indent-lambda"
|
||||
:description "Indent C++ lambda functions (experimental, broken for complex fct bodies)"
|
||||
|
||||
local p = argparse "gen-completions"
|
||||
p:argument "shell"
|
||||
:choices {"bash", "zsh", "fish"}
|
||||
|
||||
+48
-11
@@ -60,6 +60,7 @@ ASBeautifier::ASBeautifier()
|
||||
setSwitchIndent(false);
|
||||
setCaseIndent(false);
|
||||
setSqueezeWhitespace(false);
|
||||
setLambdaIndentation(false);
|
||||
setBlockIndent(false);
|
||||
setBraceIndent(false);
|
||||
setBraceIndentVtk(false);
|
||||
@@ -207,6 +208,7 @@ ASBeautifier::ASBeautifier(const ASBeautifier& other) : ASBase(other)
|
||||
switchIndent = other.switchIndent;
|
||||
caseIndent = other.caseIndent;
|
||||
squeezeWhitespace = other.squeezeWhitespace;
|
||||
attemptLambdaIndentation = other.attemptLambdaIndentation;
|
||||
namespaceIndent = other.namespaceIndent;
|
||||
braceIndent = other.braceIndent;
|
||||
braceIndentVtk = other.braceIndentVtk;
|
||||
@@ -236,7 +238,7 @@ ASBeautifier::ASBeautifier(const ASBeautifier& other) : ASBase(other)
|
||||
shouldAlignMethodColon = other.shouldAlignMethodColon;
|
||||
shouldIndentPreprocDefine = other.shouldIndentPreprocDefine;
|
||||
shouldIndentPreprocConditional = other.shouldIndentPreprocConditional;
|
||||
lambdaIndicator = other.lambdaIndicator;
|
||||
lambdaIndicator = other.lambdaIndicator;
|
||||
|
||||
indentCount = other.indentCount;
|
||||
spaceIndentCount = other.spaceIndentCount;
|
||||
@@ -418,6 +420,7 @@ void ASBeautifier::init(ASSourceIterator* iter)
|
||||
isInBeautifySQL = false;
|
||||
isInIndentableStruct = false;
|
||||
isInIndentablePreproc = false;
|
||||
|
||||
inLineNumber = 0;
|
||||
runInIndentContinuation = 0;
|
||||
nonInStatementBrace = 0;
|
||||
@@ -1120,6 +1123,18 @@ void ASBeautifier::setSqueezeWhitespace(bool state)
|
||||
squeezeWhitespace = state;
|
||||
}
|
||||
|
||||
/**
|
||||
* set the state of the lambda indentation option. If true,
|
||||
* the parser tries to recognize lambda code. Indentation
|
||||
* is bad if the lambda code is more complex (if/switch etc)
|
||||
*
|
||||
* @param state state of option.
|
||||
*/
|
||||
void ASBeautifier::setLambdaIndentation(bool state)
|
||||
{
|
||||
attemptLambdaIndentation = state;
|
||||
}
|
||||
|
||||
/**
|
||||
* get the file type.
|
||||
*/
|
||||
@@ -2191,6 +2206,8 @@ void ASBeautifier::computePreliminaryIndentation()
|
||||
--indentCount;
|
||||
if (g_preprocessorCppExternCBrace >= 4)
|
||||
--indentCount;
|
||||
|
||||
|
||||
}
|
||||
|
||||
void ASBeautifier::adjustParsedLineIndentation(size_t iPrelim, bool isInExtraHeaderIndent)
|
||||
@@ -2611,8 +2628,9 @@ void ASBeautifier::parseCurrentLine(const std::string& line)
|
||||
// bypass whitespace here
|
||||
if (isWhiteSpace(ch))
|
||||
{
|
||||
if (squeezeWhitespace && !isInComment && !isInQuote && isWhiteSpace(line[i+1]) && !isWhiteSpace(line[i-1])) {
|
||||
size_t wsSpanEnd = line.find_first_not_of(" \t", i+1);
|
||||
if (squeezeWhitespace && !isInComment && !isInQuote && isWhiteSpace(line[i + 1]) && !isWhiteSpace(line[i - 1]))
|
||||
{
|
||||
size_t wsSpanEnd = line.find_first_not_of(" \t", i + 1);
|
||||
std::pair<size_t, size_t> wsSpan(i, wsSpanEnd - i - 1);
|
||||
squeezeWSStack.emplace_back(wsSpan);
|
||||
}
|
||||
@@ -2665,7 +2683,9 @@ void ASBeautifier::parseCurrentLine(const std::string& line)
|
||||
else if (isSharpStyle())
|
||||
{
|
||||
if (line.compare(i, 2, "\"\"") == 0)
|
||||
{
|
||||
i++;
|
||||
}
|
||||
else
|
||||
{
|
||||
isInQuote = false;
|
||||
@@ -2846,7 +2866,8 @@ void ASBeautifier::parseCurrentLine(const std::string& line)
|
||||
{
|
||||
headerStack->pop_back();
|
||||
isInClassHeader = false;
|
||||
if ( !findKeyword(line, i, AS_STRUCT) ) // if not on this line #526
|
||||
|
||||
if (line.find("struct ", 0) > i) // if not on this line #526, GH #12
|
||||
indentCount -= classInitializerIndents;
|
||||
if (indentCount < 0)
|
||||
indentCount = 0;
|
||||
@@ -2870,7 +2891,12 @@ void ASBeautifier::parseCurrentLine(const std::string& line)
|
||||
}
|
||||
|
||||
// #121
|
||||
if (!isLegalNameChar(prevNonSpaceCh) && prevNonSpaceCh != ']' && prevNonSpaceCh != ')' && line.find(AS_AUTO, 0 ) == std::string::npos) {
|
||||
if ( !isLegalNameChar(prevNonSpaceCh)
|
||||
&& prevNonSpaceCh != ']'
|
||||
&& prevNonSpaceCh != ')'
|
||||
&& prevNonSpaceCh != '*' // GH #11
|
||||
&& line.find(AS_AUTO, 0 ) == std::string::npos)
|
||||
{
|
||||
lambdaIndicator = true;
|
||||
}
|
||||
}
|
||||
@@ -2880,7 +2906,7 @@ void ASBeautifier::parseCurrentLine(const std::string& line)
|
||||
if (currentHeader != nullptr)
|
||||
registerContinuationIndent(line, i, spaceIndentCount, tabIncrementIn, minConditionalIndent, true);
|
||||
else if (!isInObjCMethodDefinition
|
||||
//&& xxxCondition && shouldForceTabIndentation // only count one opening parenthese per line #498
|
||||
//&& xxxCondition && shouldForceTabIndentation // only count one opening parentheses per line #498
|
||||
)
|
||||
registerContinuationIndent(line, i, spaceIndentCount, tabIncrementIn, 0, true);
|
||||
}
|
||||
@@ -2897,6 +2923,7 @@ void ASBeautifier::parseCurrentLine(const std::string& line)
|
||||
}
|
||||
foundPreCommandHeader = false;
|
||||
parenDepth--;
|
||||
|
||||
if (parenDepth == 0)
|
||||
{
|
||||
if (!parenStatementStack->empty()) // in case of unmatched closing parens
|
||||
@@ -2945,7 +2972,7 @@ void ASBeautifier::parseCurrentLine(const std::string& line)
|
||||
|| isSharpDelegate
|
||||
|| isInExternC
|
||||
|| isInAsmBlock
|
||||
//|| (getNextWord(line, i) == AS_NEW // #487
|
||||
//|| getNextWord(line, i) == AS_NEW // #487
|
||||
|| (isInDefine
|
||||
&& (prevNonSpaceCh == '('
|
||||
|| isLegalNameChar(prevNonSpaceCh))));
|
||||
@@ -2975,8 +3002,9 @@ void ASBeautifier::parseCurrentLine(const std::string& line)
|
||||
}
|
||||
}
|
||||
|
||||
// #121 fix indent of lambda bodies
|
||||
if (isCStyle() && lambdaIndicator ) {
|
||||
// #121 fix indent of lambda bodies, also GH #7
|
||||
if (isCStyle() && lambdaIndicator && attemptLambdaIndentation )
|
||||
{
|
||||
isBlockOpener = false;
|
||||
}
|
||||
|
||||
@@ -3265,10 +3293,18 @@ void ASBeautifier::parseCurrentLine(const std::string& line)
|
||||
if (isObjCStyle() && findKeyword(line, i, AS_NS_HANDLER))
|
||||
foundPreCommandMacro = true;
|
||||
|
||||
//https://sourceforge.net/p/astyle/bugs/353/
|
||||
// new is ending the line?
|
||||
if (isJavaStyle() && findKeyword(line, i, AS_NEW) && line.length() - 3 == i)
|
||||
{
|
||||
headerStack->emplace_back(&AS_FIXED); // needs to be something which will not match - need to define a token which will never match
|
||||
}
|
||||
|
||||
//https://sourceforge.net/p/astyle/bugs/550/
|
||||
//enum can be function return value
|
||||
if (parenDepth == 0 && findKeyword(line, i, AS_ENUM) && line.find_first_of(AS_OPEN_PAREN, i) == std::string::npos)
|
||||
if (parenDepth == 0 && findKeyword(line, i, AS_ENUM) && line.find_first_of(AS_OPEN_PAREN, i) == std::string::npos){
|
||||
isInEnum = true;
|
||||
}
|
||||
|
||||
if (parenDepth == 0 && (findKeyword(line, i, AS_TYPEDEF_STRUCT) || findKeyword(line, i, AS_STRUCT)) && line.find_first_of(AS_SEMICOLON, i) == std::string::npos)
|
||||
{
|
||||
@@ -3808,7 +3844,8 @@ void ASBeautifier::parseCurrentLine(const std::string& line)
|
||||
&& prevNonSpaceCh != ']' // an array
|
||||
&& statementEndsWithComma(line, i))
|
||||
{
|
||||
if (!haveAssignmentThisLine) // only one assignment indent per line
|
||||
// only one assignment indent per line + GH #10
|
||||
if (!haveAssignmentThisLine && line.find(AS_SCOPE_RESOLUTION) == std::string::npos)
|
||||
{
|
||||
// register indent at previous word
|
||||
haveAssignmentThisLine = true;
|
||||
|
||||
+104
-38
@@ -309,13 +309,15 @@ void ASFormatter::init(ASSourceIterator* si)
|
||||
isImmediatelyPostHeader = false;
|
||||
isInHeader = false;
|
||||
isInCase = false;
|
||||
isInAllocator = false;
|
||||
|
||||
isFirstPreprocConditional = false;
|
||||
processedFirstConditional = false;
|
||||
isJavaStaticConstructor = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* build std::vectors for each programing language
|
||||
* build std::vectors for each programming language
|
||||
* depending on the file extension.
|
||||
*/
|
||||
void ASFormatter::buildLanguageVectors()
|
||||
@@ -861,6 +863,7 @@ std::string ASFormatter::nextLine()
|
||||
|
||||
if (passedSemicolon) // need to break the formattedLine
|
||||
{
|
||||
isInAllocator = false; // GH16
|
||||
passedSemicolon = false;
|
||||
if (parenStack->back() == 0 && !isCharImmediatelyPostComment && currentChar != ';') // allow ;;
|
||||
{
|
||||
@@ -997,6 +1000,7 @@ std::string ASFormatter::nextLine()
|
||||
++parenthesesCount;
|
||||
}
|
||||
}
|
||||
|
||||
else if (currentChar == ')' || currentChar == ']' || (isInTemplate && currentChar == '>'))
|
||||
{
|
||||
foundPreCommandHeader = false;
|
||||
@@ -1020,7 +1024,8 @@ std::string ASFormatter::nextLine()
|
||||
}
|
||||
|
||||
// check if this parenthesis closes a header, e.g. if (...), while (...)
|
||||
if (isInHeader && parenStack->back() == 0)
|
||||
//GH16
|
||||
if ( !(isSharpStyle() && peekNextChar() == ',') && isInHeader && parenStack->back() == 0)
|
||||
{
|
||||
isInHeader = false;
|
||||
isImmediatelyPostHeader = true;
|
||||
@@ -1036,6 +1041,8 @@ std::string ASFormatter::nextLine()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// GH16 break
|
||||
if (currentChar == ')')
|
||||
{
|
||||
--parenthesesCount;
|
||||
@@ -1066,15 +1073,14 @@ std::string ASFormatter::nextLine()
|
||||
isImmediatelyPostObjCMethodPrefix = false;
|
||||
isInObjCInterface = false;
|
||||
isInEnum = false;
|
||||
//isInStruct = false;
|
||||
|
||||
isJavaStaticConstructor = false;
|
||||
isCharImmediatelyPostNonInStmt = false;
|
||||
needHeaderOpeningBrace = false;
|
||||
shouldKeepLineUnbroken = false;
|
||||
returnTypeChecked = false;
|
||||
objCColonAlign = 0;
|
||||
//assert(methodBreakCharNum == std::string::npos); // comment out
|
||||
//assert(methodBreakLineNum == 0); // comment out
|
||||
|
||||
methodBreakCharNum = std::string::npos;
|
||||
methodBreakLineNum = 0;
|
||||
methodAttachCharNum = std::string::npos;
|
||||
@@ -1110,6 +1116,7 @@ std::string ASFormatter::nextLine()
|
||||
isInAsmOneLine = isInQuote = false;
|
||||
shouldKeepLineUnbroken = false;
|
||||
squareBracketCount = 0;
|
||||
isInAllocator = false;
|
||||
|
||||
if (braceTypeStack->size() > 1)
|
||||
{
|
||||
@@ -1507,7 +1514,7 @@ std::string ASFormatter::nextLine()
|
||||
}
|
||||
}
|
||||
if (currentChar != ';'
|
||||
|| foundStructHeader // #518
|
||||
|| foundStructHeader // #518
|
||||
|| (needHeaderOpeningBrace && parenStack->back() == 0))
|
||||
currentHeader = nullptr;
|
||||
|
||||
@@ -1584,6 +1591,21 @@ std::string ASFormatter::nextLine()
|
||||
isImmediatelyPostNewDelete = true;
|
||||
}
|
||||
|
||||
//https://sourceforge.net/p/astyle/bugs/464/ + GH16
|
||||
if (isSharpStyle() && findKeyword(currentLine, charNum, AS_NEW)
|
||||
&& currentHeader != &AS_FOREACH
|
||||
&& currentHeader != &AS_FOR
|
||||
&& currentHeader != &AS_USING
|
||||
&& currentHeader != &AS_WHILE
|
||||
&& currentHeader != &AS_IF
|
||||
&& currentLine.find(AS_PUBLIC) == std::string::npos
|
||||
&& currentLine.find(AS_PROTECTED) == std::string::npos
|
||||
&& currentLine.find(AS_PRIVATE) == std::string::npos
|
||||
)
|
||||
{
|
||||
isInAllocator = true;
|
||||
}
|
||||
|
||||
if (findKeyword(currentLine, charNum, AS_RETURN))
|
||||
{
|
||||
isInPotentialCalculation = true;
|
||||
@@ -1641,10 +1663,13 @@ std::string ASFormatter::nextLine()
|
||||
&& !isInObjCMethodDefinition
|
||||
// bypass objective-C and java @ character
|
||||
&& charNum == (int) currentLine.find_first_not_of(" \t")
|
||||
|
||||
// possibly related to #504
|
||||
&& !(isCStyle() && isCharPotentialHeader(currentLine, charNum)
|
||||
&& (findKeyword(currentLine, charNum, AS_PUBLIC)
|
||||
|| findKeyword(currentLine, charNum, AS_PRIVATE)
|
||||
|| findKeyword(currentLine, charNum, AS_PROTECTED))))
|
||||
|| findKeyword(currentLine, charNum, AS_PROTECTED)))
|
||||
)
|
||||
{
|
||||
findReturnTypeSplitPoint(currentLine);
|
||||
returnTypeChecked = true;
|
||||
@@ -1869,7 +1894,6 @@ std::string ASFormatter::nextLine()
|
||||
&& nextChar != '>'
|
||||
&& nextChar != ';'
|
||||
&& !isBeforeAnyComment()
|
||||
/* && !(isBraceType(braceTypeStack->back(), ARRAY_TYPE)) */
|
||||
)
|
||||
{
|
||||
appendCurrentChar();
|
||||
@@ -2922,7 +2946,8 @@ void ASFormatter::initNewLine()
|
||||
else if (isWhiteSpace(currentLine[charNum]) && !(charNum + 1 < (int) currentLine.length()))
|
||||
{
|
||||
lineIsEmpty = true;
|
||||
if (!isImmediatelyPostEmptyLine ) {
|
||||
if (!isImmediatelyPostEmptyLine )
|
||||
{
|
||||
squeezeEmptyLineCount = 0;
|
||||
}
|
||||
}
|
||||
@@ -3110,12 +3135,18 @@ BraceType ASFormatter::getBraceType()
|
||||
{
|
||||
returnVal = (BraceType)(ARRAY_TYPE | ENUM_TYPE);
|
||||
}
|
||||
else if (isSharpStyle() &&
|
||||
(currentHeader == &AS_IF || currentHeader == &AS_WHILE
|
||||
|| currentHeader == &AS_USING || currentHeader == &AS_WHILE
|
||||
|| currentHeader == &AS_FOR || currentHeader == &AS_FOREACH) ) { // GH16
|
||||
returnVal = (BraceType) COMMAND_TYPE;
|
||||
}
|
||||
else
|
||||
{
|
||||
bool isCommandType = (foundPreCommandHeader
|
||||
|| foundPreCommandMacro
|
||||
|| (currentHeader != nullptr && isNonParenHeader)
|
||||
|| (previousCommandChar == ')')
|
||||
|| (previousCommandChar == ')' && !isInAllocator)
|
||||
|| (previousCommandChar == ':' && !foundQuestionMark)
|
||||
|| (previousCommandChar == ';')
|
||||
|| ((previousCommandChar == '{' || previousCommandChar == '}')
|
||||
@@ -3128,7 +3159,6 @@ BraceType ASFormatter::getBraceType()
|
||||
|| isInObjCInterface
|
||||
|| isJavaStaticConstructor
|
||||
|| isSharpDelegate);
|
||||
|
||||
// C# methods containing 'get', 'set', 'add', and 'remove' do NOT end with parens
|
||||
if (!isCommandType && isSharpStyle() && isNextWordSharpNonParenHeader(charNum + 1))
|
||||
{
|
||||
@@ -3169,6 +3199,7 @@ BraceType ASFormatter::getBraceType()
|
||||
returnVal = (BraceType)(returnVal | INIT_TYPE);
|
||||
}
|
||||
|
||||
|
||||
return returnVal;
|
||||
}
|
||||
|
||||
@@ -3436,14 +3467,15 @@ bool ASFormatter::isDereferenceOrAddressOf() const
|
||||
if (isCharImmediatelyPostTemplate)
|
||||
return false;
|
||||
|
||||
//TODO FIXME
|
||||
// https://sourceforge.net/p/astyle/bugs/537/
|
||||
if ( previousNonWSChar == ',' && parenthesesCount <= 0) {
|
||||
// https://sourceforge.net/p/astyle/bugs/552/
|
||||
if ( previousNonWSChar == ',' && parenthesesCount <= 0 && currentChar != '&')
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (previousNonWSChar == '='
|
||||
//|| previousNonWSChar == ',' // #537
|
||||
|| (previousNonWSChar == ',' && currentChar == '&') // #537, #552
|
||||
|| previousNonWSChar == '.'
|
||||
|| previousNonWSChar == '{'
|
||||
|| previousNonWSChar == '>'
|
||||
@@ -3501,9 +3533,9 @@ bool ASFormatter::isDereferenceOrAddressOf() const
|
||||
return true;
|
||||
if (isPointerOrReferenceVariable(lastWord))
|
||||
return false;
|
||||
bool isDA = (!(isLegalNameChar(previousNonWSChar) || previousNonWSChar == '>')
|
||||
bool isDA = (!(isLegalNameChar(previousNonWSChar) || previousNonWSChar == '>') // TODO GH14
|
||||
|| (nextText.length() > 0 && !isLegalNameChar(nextText[0]) && nextText[0] != '/')
|
||||
|| (ispunct((unsigned char)previousNonWSChar) && previousNonWSChar != '.')
|
||||
|| (ispunct((unsigned char)previousNonWSChar) && previousNonWSChar != '.') // TODO GH14
|
||||
|| isCharImmediatelyPostReturn);
|
||||
|
||||
return isDA;
|
||||
@@ -3976,8 +4008,8 @@ bool ASFormatter::isMultiStatementLine() const
|
||||
* @return the next non-whitespace substd::string.
|
||||
*/
|
||||
std::string ASFormatter::peekNextText(const std::string& firstLine,
|
||||
bool endOnEmptyLine /*false*/,
|
||||
const std::shared_ptr<ASPeekStream>& streamArg /*nullptr*/) const
|
||||
bool endOnEmptyLine /*false*/,
|
||||
const std::shared_ptr<ASPeekStream>& streamArg /*nullptr*/) const
|
||||
{
|
||||
assert(sourceIterator->getPeekStart() == 0 || streamArg != nullptr); // Borland may need != 0
|
||||
bool isFirstLine = true;
|
||||
@@ -4681,7 +4713,7 @@ void ASFormatter::padParensOrBrackets(char openDelim, char closeDelim, bool shou
|
||||
int spacesOutsideToDelete = 0;
|
||||
int spacesInsideToDelete = 0;
|
||||
|
||||
if (currentChar ==openDelim)
|
||||
if (currentChar == openDelim)
|
||||
{
|
||||
spacesOutsideToDelete = formattedLine.length() - 1;
|
||||
spacesInsideToDelete = 0;
|
||||
@@ -4828,8 +4860,10 @@ void ASFormatter::padParensOrBrackets(char openDelim, char closeDelim, bool shou
|
||||
&& peekedCharOutside != '.'
|
||||
&& peekedCharOutside != '+' // check for ++
|
||||
&& peekedCharOutside != '-' // check for --
|
||||
&& peekedCharOutside != ']')
|
||||
appendSpaceAfter();
|
||||
&& peekedCharOutside != ']'){
|
||||
appendSpaceAfter();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5847,13 +5881,17 @@ bool ASFormatter::isCurrentBraceBroken() const
|
||||
{
|
||||
if (currentLineBeginsWithBrace
|
||||
|| braceFormatMode == RUN_IN_MODE)
|
||||
{
|
||||
breakBrace = true;
|
||||
}
|
||||
}
|
||||
else if (braceFormatMode == NONE_MODE)
|
||||
{
|
||||
if (currentLineBeginsWithBrace
|
||||
&& currentLineFirstBraceNum == (size_t) charNum)
|
||||
breakBrace = true;
|
||||
{
|
||||
breakBrace = true;
|
||||
}
|
||||
}
|
||||
else if (braceFormatMode == BREAK_MODE || braceFormatMode == RUN_IN_MODE)
|
||||
{
|
||||
@@ -5867,7 +5905,9 @@ bool ASFormatter::isCurrentBraceBroken() const
|
||||
if (formattingStyle != STYLE_STROUSTRUP
|
||||
&& formattingStyle != STYLE_MOZILLA
|
||||
&& formattingStyle != STYLE_WEBKIT)
|
||||
breakBrace = true;
|
||||
{
|
||||
breakBrace = true;
|
||||
}
|
||||
}
|
||||
// break a class or interface
|
||||
else if (isBraceType((*braceTypeStack)[stackEnd], CLASS_TYPE)
|
||||
@@ -5875,13 +5915,17 @@ bool ASFormatter::isCurrentBraceBroken() const
|
||||
{
|
||||
if (formattingStyle != STYLE_STROUSTRUP
|
||||
&& formattingStyle != STYLE_WEBKIT)
|
||||
breakBrace = true;
|
||||
{
|
||||
breakBrace = true;
|
||||
}
|
||||
}
|
||||
// break a struct if mozilla - an enum is processed as an array brace
|
||||
else if (isBraceType((*braceTypeStack)[stackEnd], STRUCT_TYPE))
|
||||
{
|
||||
if (formattingStyle == STYLE_MOZILLA)
|
||||
breakBrace = true;
|
||||
{
|
||||
breakBrace = true;
|
||||
}
|
||||
}
|
||||
// break the first brace if a function
|
||||
else if (isBraceType((*braceTypeStack)[stackEnd], COMMAND_TYPE))
|
||||
@@ -5895,15 +5939,18 @@ bool ASFormatter::isCurrentBraceBroken() const
|
||||
// break the first brace after these if a function
|
||||
if (isBraceType((*braceTypeStack)[stackEnd - 1], NAMESPACE_TYPE)
|
||||
|| isBraceType((*braceTypeStack)[stackEnd - 1], CLASS_TYPE)
|
||||
|| isBraceType((*braceTypeStack)[stackEnd - 1], ARRAY_TYPE)
|
||||
|| (isBraceType((*braceTypeStack)[stackEnd - 1], ARRAY_TYPE) && !lambdaIndicator)
|
||||
|| isBraceType((*braceTypeStack)[stackEnd - 1], STRUCT_TYPE)
|
||||
|| isBraceType((*braceTypeStack)[stackEnd - 1], EXTERN_TYPE))
|
||||
|| isBraceType((*braceTypeStack)[stackEnd - 1], EXTERN_TYPE)
|
||||
)
|
||||
{
|
||||
breakBrace = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//breakBrace = false;
|
||||
return breakBrace;
|
||||
}
|
||||
|
||||
@@ -6226,7 +6273,8 @@ void ASFormatter::formatQuoteBody()
|
||||
|
||||
int _braceCount = 0;
|
||||
|
||||
if (checkInterpolation && currentChar=='{') {
|
||||
if (checkInterpolation && currentChar == '{')
|
||||
{
|
||||
++_braceCount;
|
||||
}
|
||||
|
||||
@@ -6241,7 +6289,7 @@ void ASFormatter::formatQuoteBody()
|
||||
else
|
||||
isSpecialChar = true;
|
||||
}
|
||||
else if (isInVerbatimQuote && currentChar == '"')
|
||||
else if (isInVerbatimQuote && currentChar == '"' )
|
||||
{
|
||||
if (isCStyle())
|
||||
{
|
||||
@@ -6254,7 +6302,7 @@ void ASFormatter::formatQuoteBody()
|
||||
checkInterpolation = false;
|
||||
}
|
||||
}
|
||||
else if (isSharpStyle())
|
||||
else if (isSharpStyle() ) // GH16
|
||||
{
|
||||
if ((int) currentLine.length() > charNum + 1
|
||||
&& currentLine[charNum + 1] == '"') // check consecutive quotes
|
||||
@@ -6263,8 +6311,13 @@ void ASFormatter::formatQuoteBody()
|
||||
goForward(1);
|
||||
return;
|
||||
}
|
||||
isInQuote = false;
|
||||
isInVerbatimQuote = false;
|
||||
|
||||
//if ( charNum>0 && currentLine[charNum - 1] != '\\')
|
||||
isInQuote = false;
|
||||
|
||||
if (checkInterpolation)
|
||||
isInVerbatimQuote = false;
|
||||
|
||||
checkInterpolation = false;
|
||||
}
|
||||
}
|
||||
@@ -6286,11 +6339,12 @@ void ASFormatter::formatQuoteBody()
|
||||
{
|
||||
currentChar = currentLine[++charNum];
|
||||
|
||||
if (checkInterpolation) {
|
||||
if (currentChar=='{')
|
||||
if (checkInterpolation)
|
||||
{
|
||||
if (currentChar == '{')
|
||||
++_braceCount;
|
||||
|
||||
if (currentChar=='}')
|
||||
if (currentChar == '}')
|
||||
--_braceCount;
|
||||
}
|
||||
appendCurrentChar();
|
||||
@@ -6298,8 +6352,9 @@ void ASFormatter::formatQuoteBody()
|
||||
}
|
||||
if (charNum + 1 >= (int) currentLine.length()
|
||||
&& currentChar != '\\'
|
||||
&& !isInVerbatimQuote) {
|
||||
isInQuote = false; // missing closing quote
|
||||
&& !isInVerbatimQuote)
|
||||
{
|
||||
isInQuote = false; // missing closing quote
|
||||
}
|
||||
|
||||
}
|
||||
@@ -6325,7 +6380,8 @@ void ASFormatter::formatQuoteOpener()
|
||||
verbatimDelimiter = currentLine.substr(charNum + 1, parenPos - charNum - 1);
|
||||
}
|
||||
}
|
||||
else if (isSharpStyle() && (previousChar == '@' || previousChar == '$' )) {
|
||||
else if (isSharpStyle() && (previousChar == '@' ))
|
||||
{
|
||||
isInVerbatimQuote = true;
|
||||
checkInterpolation = true;
|
||||
}
|
||||
@@ -6809,6 +6865,15 @@ void ASFormatter::findReturnTypeSplitPoint(const std::string& firstLine)
|
||||
i = line.length();
|
||||
continue;
|
||||
}
|
||||
|
||||
// https://sourceforge.net/p/astyle/bugs/504/
|
||||
if (line[line.length()-1] == ':')
|
||||
{
|
||||
i = line.length();
|
||||
foundSplitPoint = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
// not in quote or comment
|
||||
if (!foundSplitPoint)
|
||||
{
|
||||
@@ -6920,6 +6985,7 @@ void ASFormatter::findReturnTypeSplitPoint(const std::string& firstLine)
|
||||
}
|
||||
if (line[i] == '(' && !squareCount)
|
||||
{
|
||||
|
||||
// is line is already broken?
|
||||
if (breakCharNum == firstCharNum && breakLineNum > 0)
|
||||
isAlreadyBroken = true;
|
||||
|
||||
@@ -142,6 +142,7 @@ const std::string ASResource::AS_OR = std::string("||");
|
||||
const std::string ASResource::AS_SCOPE_RESOLUTION = std::string("::");
|
||||
const std::string ASResource::AS_SPACESHIP = std::string("<=>");
|
||||
const std::string ASResource::AS_EQUAL_JS = std::string("===");
|
||||
const std::string ASResource::AS_COALESCE_CS = std::string("?" "?="); // Avoid trigraph
|
||||
|
||||
const std::string ASResource::AS_PLUS = std::string("+");
|
||||
const std::string ASResource::AS_MINUS = std::string("-");
|
||||
@@ -498,6 +499,10 @@ void ASResource::buildOperators(std::vector<const std::string*>* operators, int
|
||||
{
|
||||
operators->emplace_back(&AS_EQUAL_JS);
|
||||
}
|
||||
if (fileType == SHARP_TYPE)
|
||||
{
|
||||
operators->emplace_back(&AS_COALESCE_CS);
|
||||
}
|
||||
assert(operators->size() < elements);
|
||||
sort(operators->begin(), operators->end(), sortOnLength);
|
||||
}
|
||||
@@ -627,7 +632,7 @@ void ASResource::buildPreDefinitionHeaders(std::vector<const std::string*>* preD
|
||||
|
||||
// check if a specific line position contains a header.
|
||||
const std::string* ASBase::findHeader(const std::string& line, int i,
|
||||
const std::vector<const std::string*>* possibleHeaders) const
|
||||
const std::vector<const std::string*>* possibleHeaders) const
|
||||
{
|
||||
assert(isCharPotentialHeader(line, i));
|
||||
// check the word
|
||||
@@ -678,7 +683,8 @@ bool ASBase::findKeyword(const std::string& line, int i, const std::string& keyw
|
||||
if (line.compare(i, keywordLength, keyword) != 0)
|
||||
return false;
|
||||
// check that this is not part of a longer word
|
||||
if (wordEnd == line.length()) {
|
||||
if (wordEnd == line.length())
|
||||
{
|
||||
//std::cerr << "findKeyword t1 \n";
|
||||
return true;
|
||||
}
|
||||
@@ -696,7 +702,7 @@ bool ASBase::findKeyword(const std::string& line, int i, const std::string& keyw
|
||||
|
||||
// check if a specific line position contains an operator.
|
||||
const std::string* ASBase::findOperator(const std::string& line, int i,
|
||||
const std::vector<const std::string*>* possibleOperators) const
|
||||
const std::vector<const std::string*>* possibleOperators) const
|
||||
{
|
||||
assert(isCharPotentialOperator(line[i]));
|
||||
// find the operator in the vector
|
||||
@@ -737,7 +743,8 @@ bool ASBase::isLegalNameChar(char ch) const
|
||||
if ((unsigned char) ch > 127)
|
||||
return false;
|
||||
return (isalnum((unsigned char) ch)
|
||||
|| ch == '.' || ch == '_'
|
||||
|| (!isSharpStyle() && ch == '.')
|
||||
|| ch == '_'
|
||||
|| (isJavaStyle() && ch == '$')
|
||||
|| (isSharpStyle() && ch == '@')); // may be used as a prefix
|
||||
}
|
||||
|
||||
+14
-10
@@ -265,11 +265,11 @@ public:
|
||||
static const std::string AS_OPEN_LINE_COMMENT, AS_OPEN_COMMENT, AS_CLOSE_COMMENT;
|
||||
static const std::string AS_BAR_DEFINE, AS_BAR_INCLUDE, AS_BAR_IF, AS_BAR_EL, AS_BAR_ENDIF;
|
||||
static const std::string AS_AUTO, AS_RETURN;
|
||||
static const std::string AS_CIN, AS_COUT, AS_CERR;
|
||||
static const std::string AS_CIN, AS_COUT, AS_CERR, AS_MAPPING;
|
||||
static const std::string AS_ASSIGN, AS_PLUS_ASSIGN, AS_MINUS_ASSIGN, AS_MULT_ASSIGN;
|
||||
static const std::string AS_DIV_ASSIGN, AS_MOD_ASSIGN, AS_XOR_ASSIGN, AS_OR_ASSIGN, AS_AND_ASSIGN;
|
||||
static const std::string AS_GR_GR_ASSIGN, AS_LS_LS_ASSIGN, AS_GR_GR_GR_ASSIGN, AS_LS_LS_LS_ASSIGN;
|
||||
static const std::string AS_GCC_MIN_ASSIGN, AS_GCC_MAX_ASSIGN, AS_SPACESHIP, AS_EQUAL_JS;
|
||||
static const std::string AS_GCC_MIN_ASSIGN, AS_GCC_MAX_ASSIGN, AS_SPACESHIP, AS_EQUAL_JS, AS_COALESCE_CS;
|
||||
static const std::string AS_EQUAL, AS_PLUS_PLUS, AS_MINUS_MINUS, AS_NOT_EQUAL, AS_GR_EQUAL;
|
||||
static const std::string AS_LS_EQUAL, AS_LS_LS_LS, AS_LS_LS, AS_GR_GR_GR, AS_GR_GR;
|
||||
static const std::string AS_QUESTION_QUESTION, AS_LAMBDA;
|
||||
@@ -313,10 +313,10 @@ protected: // inline functions
|
||||
|
||||
protected: // functions definitions are at the end of ASResource.cpp
|
||||
const std::string* findHeader(const std::string& line, int i,
|
||||
const std::vector<const std::string*>* possibleHeaders) const;
|
||||
const std::vector<const std::string*>* possibleHeaders) const;
|
||||
bool findKeyword(const std::string& line, int i, const std::string& keyword) const;
|
||||
const std::string* findOperator(const std::string& line, int i,
|
||||
const std::vector<const std::string*>* possibleOperators) const;
|
||||
const std::vector<const std::string*>* possibleOperators) const;
|
||||
std::string getCurrentWord(const std::string& line, size_t index) const;
|
||||
bool isDigit(char ch) const;
|
||||
bool isLegalNameChar(char ch) const;
|
||||
@@ -353,8 +353,8 @@ public:
|
||||
void setAfterParenIndent(bool state);
|
||||
void setJavaStyle();
|
||||
void setJSStyle();
|
||||
void setObjCStyle();
|
||||
void setSharpStyle();
|
||||
void setObjCStyle();
|
||||
void setSharpStyle();
|
||||
|
||||
void setLabelIndent(bool state);
|
||||
void setMaxContinuationIndentLength(int max);
|
||||
@@ -371,6 +371,7 @@ public:
|
||||
void setPreprocDefineIndent(bool state);
|
||||
void setPreprocConditionalIndent(bool state);
|
||||
void setSqueezeWhitespace(bool state);
|
||||
void setLambdaIndentation(bool state);
|
||||
int getBeautifierFileType() const;
|
||||
int getFileType() const;
|
||||
int getIndentLength() const;
|
||||
@@ -416,6 +417,8 @@ protected:
|
||||
bool isInBeautifySQL;
|
||||
bool isInIndentableStruct;
|
||||
bool isInIndentablePreproc;
|
||||
bool lambdaIndicator;
|
||||
|
||||
|
||||
private: // functions
|
||||
void adjustObjCMethodDefinitionIndentation(const std::string& line_);
|
||||
@@ -554,8 +557,8 @@ private: // variables
|
||||
bool foundPreCommandMacro;
|
||||
bool shouldAlignMethodColon;
|
||||
bool shouldIndentPreprocConditional;
|
||||
bool lambdaIndicator;
|
||||
bool squeezeWhitespace;
|
||||
bool attemptLambdaIndentation;
|
||||
int indentCount;
|
||||
int spaceIndentCount;
|
||||
int spaceIndentObjCMethodAlignment;
|
||||
@@ -853,8 +856,8 @@ private: // functions
|
||||
const std::string* getFollowingOperator() const;
|
||||
std::string getPreviousWord(const std::string& line, int currPos) const;
|
||||
std::string peekNextText(const std::string& firstLine,
|
||||
bool endOnEmptyLine = false,
|
||||
const std::shared_ptr<ASPeekStream>& streamArg = nullptr) const;
|
||||
bool endOnEmptyLine = false,
|
||||
const std::shared_ptr<ASPeekStream>& streamArg = nullptr) const;
|
||||
|
||||
private: // variables
|
||||
int formatterFileType;
|
||||
@@ -991,7 +994,7 @@ private: // variables
|
||||
bool isFormattingModeOff;
|
||||
bool isInEnum;
|
||||
bool isInStruct;
|
||||
bool isInContinuedPreProc;
|
||||
bool isInContinuedPreProc;
|
||||
bool isInExecSQL;
|
||||
bool isInAsm;
|
||||
bool isInAsmOneLine;
|
||||
@@ -1081,6 +1084,7 @@ private: // variables
|
||||
bool isFirstPreprocConditional;
|
||||
bool processedFirstConditional;
|
||||
bool isJavaStaticConstructor;
|
||||
bool isInAllocator;
|
||||
|
||||
private: // inline functions
|
||||
// append the CURRENT character (curentChar) to the current formatted line.
|
||||
|
||||
+60
-113
@@ -94,7 +94,7 @@ namespace astyle {
|
||||
jmethodID g_mid;
|
||||
#endif
|
||||
|
||||
const char* g_version = "3.3";
|
||||
const char* g_version = "3.4.6";
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// ASStreamIterator class
|
||||
@@ -431,69 +431,6 @@ void ASConsole::convertLineEnds(std::ostringstream& out, int lineEnd)
|
||||
out.str(outStr);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
void ASConsole::convertLineEnds(std::ostringstream& out, int lineEnd) {
|
||||
assert(lineEnd == LINEEND_WINDOWS || lineEnd == LINEEND_LINUX || lineEnd == LINEEND_MACOLD);
|
||||
|
||||
const std::string inStr = out.str();
|
||||
std::ostringstream outStream;
|
||||
|
||||
for (std::string::size_type i = 0; i < inStr.length(); ++i) {
|
||||
const char currChar = inStr[i];
|
||||
const char nextChar = i < inStr.length() - 1 ? inStr[i + 1] : 0;
|
||||
|
||||
if (currChar == '\r') {
|
||||
if (nextChar == '\n') {
|
||||
// CRLF
|
||||
if (lineEnd == LINEEND_CR) {
|
||||
outStream << currChar; // Delete the LF
|
||||
++i;
|
||||
}
|
||||
else if (lineEnd == LINEEND_LF) {
|
||||
outStream << nextChar; // Delete the CR
|
||||
++i;
|
||||
}
|
||||
else {
|
||||
outStream << currChar << nextChar; // Do not change
|
||||
++i;
|
||||
}
|
||||
}
|
||||
else {
|
||||
// CR
|
||||
if (lineEnd == LINEEND_CRLF) {
|
||||
outStream << currChar << '\n'; // Insert the LF
|
||||
}
|
||||
else if (lineEnd == LINEEND_LF) {
|
||||
outStream << '\n'; // Insert the LF
|
||||
}
|
||||
else {
|
||||
outStream << currChar; // Do not change
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (currChar == '\n') {
|
||||
// LF
|
||||
if (lineEnd == LINEEND_CRLF) {
|
||||
outStream << '\r' << currChar; // Insert the CR and LF
|
||||
}
|
||||
else if (lineEnd == LINEEND_CR) {
|
||||
outStream << '\r'; // Insert the CR
|
||||
}
|
||||
else {
|
||||
outStream << currChar; // Do not change
|
||||
}
|
||||
}
|
||||
else {
|
||||
outStream << currChar; // Write the current character
|
||||
}
|
||||
}
|
||||
|
||||
out.str(outStream.str()); // Replace the stream
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
void ASConsole::correctMixedLineEnds(std::ostringstream& out)
|
||||
{
|
||||
LineEndFormat lineEndFormat = LINEEND_DEFAULT;
|
||||
@@ -511,35 +448,35 @@ void ASConsole::correctMixedLineEnds(std::ostringstream& out)
|
||||
// NOTE: some string functions don't work with NULLs (e.g. length())
|
||||
FileEncoding ASConsole::detectEncoding(const char* data, size_t dataSize) const
|
||||
{
|
||||
if (dataSize >= 3 && memcmp(data, "\xEF\xBB\xBF", 3) == 0)
|
||||
{
|
||||
return UTF_8BOM;
|
||||
}
|
||||
if (dataSize >= 3 && memcmp(data, "\xEF\xBB\xBF", 3) == 0)
|
||||
{
|
||||
return UTF_8BOM;
|
||||
}
|
||||
|
||||
if (dataSize >= 4)
|
||||
{
|
||||
if (memcmp(data, "\x00\x00\xFE\xFF", 4) == 0)
|
||||
{
|
||||
return UTF_32BE;
|
||||
}
|
||||
else if (memcmp(data, "\xFF\xFE\x00\x00", 4) == 0)
|
||||
{
|
||||
return UTF_32LE;
|
||||
}
|
||||
}
|
||||
if (dataSize >= 4)
|
||||
{
|
||||
if (memcmp(data, "\x00\x00\xFE\xFF", 4) == 0)
|
||||
{
|
||||
return UTF_32BE;
|
||||
}
|
||||
else if (memcmp(data, "\xFF\xFE\x00\x00", 4) == 0)
|
||||
{
|
||||
return UTF_32LE;
|
||||
}
|
||||
}
|
||||
|
||||
if (dataSize >= 2)
|
||||
{
|
||||
if (memcmp(data, "\xFE\xFF", 2) == 0)
|
||||
{
|
||||
return UTF_16BE;
|
||||
}
|
||||
else if (memcmp(data, "\xFF\xFE", 2) == 0)
|
||||
{
|
||||
return UTF_16LE;
|
||||
}
|
||||
}
|
||||
return ENCODING_8BIT;
|
||||
if (dataSize >= 2)
|
||||
{
|
||||
if (memcmp(data, "\xFE\xFF", 2) == 0)
|
||||
{
|
||||
return UTF_16BE;
|
||||
}
|
||||
else if (memcmp(data, "\xFF\xFE", 2) == 0)
|
||||
{
|
||||
return UTF_16LE;
|
||||
}
|
||||
}
|
||||
return ENCODING_8BIT;
|
||||
}
|
||||
|
||||
// error exit without a message
|
||||
@@ -753,14 +690,17 @@ std::string ASConsole::findProjectOptionFilePath(const std::string& fileName_) c
|
||||
if (endPath != std::string::npos)
|
||||
{
|
||||
first.erase(endPath + 1, std::string::npos);
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
first = ".";
|
||||
first.push_back(g_fileSeparator);
|
||||
}
|
||||
}
|
||||
|
||||
parent = getFullPathName(first);
|
||||
if (parent[parent.size()] != g_fileSeparator) {
|
||||
if (parent[parent.size()] != g_fileSeparator)
|
||||
{
|
||||
parent.push_back(g_fileSeparator);
|
||||
}
|
||||
|
||||
@@ -1504,7 +1444,7 @@ std::string ASConsole::getNumberFormat(int num, size_t /*lcid*/) const
|
||||
// The C locale should be set but not the C++.
|
||||
// This function is not necessary if the C++ locale is set.
|
||||
// The locale().name() return value is not portable to all compilers.
|
||||
assert(locale().name() == "C");
|
||||
assert(std::locale().name() == "C");
|
||||
#endif
|
||||
|
||||
// get the locale info
|
||||
@@ -1576,7 +1516,7 @@ bool ASConsole::isHomeOrInvalidAbsPath(const std::string& absPath) const
|
||||
if (env == nullptr)
|
||||
return true;
|
||||
|
||||
return (absPath.compare(env) == 0 || absPath=="/" );
|
||||
return (absPath.compare(env) == 0 || absPath == "/" );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -2114,6 +2054,9 @@ void ASConsole::printHelp() const
|
||||
std::cout << " --indent-col1-comments OR -Y\n";
|
||||
std::cout << " Indent line comments that start in column one.\n";
|
||||
std::cout << std::endl;
|
||||
std::cout << " --indent-lambda\n";
|
||||
std::cout << " Indent C++ lambda functions (experimental, broken for complex fct bodies)\n";
|
||||
std::cout << std::endl;
|
||||
std::cout << " --min-conditional-indent=# OR -m#\n";
|
||||
std::cout << " Indent a minimal # spaces in a continuous conditional\n";
|
||||
std::cout << " belonging to a conditional header.\n";
|
||||
@@ -3278,10 +3221,10 @@ void ASOptions::parseOption(const std::string& arg, const std::string& errorInfo
|
||||
formatter.setModeManuallySet(true);
|
||||
}
|
||||
else if (isOption(arg, "mode=objc"))
|
||||
{
|
||||
formatter.setObjCStyle();
|
||||
formatter.setModeManuallySet(true);
|
||||
}
|
||||
{
|
||||
formatter.setObjCStyle();
|
||||
formatter.setModeManuallySet(true);
|
||||
}
|
||||
else if (isParamOption(arg, "t", "indent=tab="))
|
||||
{
|
||||
int spaceNum = 4;
|
||||
@@ -3474,6 +3417,17 @@ void ASOptions::parseOption(const std::string& arg, const std::string& errorInfo
|
||||
{
|
||||
formatter.setDeleteEmptyLinesMode(true);
|
||||
}
|
||||
else if (isParamOption(arg, "squeeze-lines="))
|
||||
{
|
||||
int keepEmptyLines = 2;
|
||||
std::string keepEmptyLinesParam = getParam(arg, "squeeze-lines=");
|
||||
if (keepEmptyLinesParam.length() > 0)
|
||||
keepEmptyLines = atoi(keepEmptyLinesParam.c_str());
|
||||
if (keepEmptyLines < 1)
|
||||
isOptionError(arg, errorInfo);
|
||||
else
|
||||
formatter.setSqueezeEmptyLinesNumber(keepEmptyLines);
|
||||
}
|
||||
else if (isOption(arg, "E", "fill-empty-lines"))
|
||||
{
|
||||
formatter.setEmptyLineFill(true);
|
||||
@@ -3797,20 +3751,9 @@ bool ASOptions::parseOptionContinued(const std::string& arg, const std::string&
|
||||
formatter.setLineEndFormat(LINEEND_MACOLD);
|
||||
}
|
||||
else if (isOption(arg, "squeeze-ws"))
|
||||
{
|
||||
formatter.setSqueezeWhitespace(true);
|
||||
}
|
||||
else if (isParamOption(arg, "squeeze-lines="))
|
||||
{
|
||||
int keepEmptyLines = 2;
|
||||
std::string keepEmptyLinesParam = getParam(arg, "squeeze-lines=");
|
||||
if (keepEmptyLinesParam.length() > 0)
|
||||
keepEmptyLines = atoi(keepEmptyLinesParam.c_str());
|
||||
if (keepEmptyLines < 1)
|
||||
isOptionError(arg, errorInfo);
|
||||
else
|
||||
formatter.setSqueezeEmptyLinesNumber(keepEmptyLines);
|
||||
}
|
||||
{
|
||||
formatter.setSqueezeWhitespace(true);
|
||||
}
|
||||
else if (isOption(arg, "pad-brackets"))
|
||||
{
|
||||
formatter.setBracketsOutsidePaddingMode(true);
|
||||
@@ -3820,6 +3763,10 @@ bool ASOptions::parseOptionContinued(const std::string& arg, const std::string&
|
||||
{
|
||||
formatter.setBracketsUnPaddingMode(true);
|
||||
}
|
||||
else if (isOption(arg, "indent-lambda"))
|
||||
{
|
||||
formatter.setLambdaIndentation(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user