Skip to content

Commit

Permalink
astyle 3.4.14
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed Aug 1, 2024
1 parent 90d0391 commit 50e393b
Show file tree
Hide file tree
Showing 9 changed files with 257 additions and 218 deletions.
6 changes: 3 additions & 3 deletions build/cmake/CompilerOptions.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Set default compile options for supported compilers
if(APPLE)
target_compile_options( astyle PRIVATE -W -Wall -fno-rtti -fno-exceptions -std=c++11 -stdlib=libc++)
target_compile_options( astyle PRIVATE -W -Wall -fno-rtti -fno-exceptions -std=c++17 -stdlib=libc++)
elseif(NOT WIN32) # Linux
target_compile_options(astyle PRIVATE -Wall -Wextra -fno-rtti -fno-exceptions -std=c++11)
target_compile_options(astyle PRIVATE -Wall -Wextra -fno-rtti -fno-exceptions -std=c++17)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "gnu")
execute_process(COMMAND ${CMAKE_CXX_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION)
if (NOT (GCC_VERSION VERSION_GREATER 4.6 OR GCC_VERSION VERSION_EQUAL 4.6))
Expand All @@ -13,7 +13,7 @@ elseif(NOT WIN32) # Linux
target_compile_options(astyle PRIVATE -wd11074,11076)
endif()
elseif(MINGW)
target_compile_options(astyle PRIVATE -Wall -Wextra -fno-rtti -fno-exceptions -std=c++11)
target_compile_options(astyle PRIVATE -Wall -Wextra -fno-rtti -fno-exceptions -std=c++17)
elseif(BORLAND) # Release must be explicitly requested for Borland
target_compile_options(astyle PRIVATE -q -w -x-) # Cannot use no-rtti (-RT-)
endif()
Expand Down
19 changes: 14 additions & 5 deletions build/cmake/InstallOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,20 @@
# Default linux install prefix is /usr/local"
# This may be modified by -DCMAKE_INSTALL_PREFIX=
# Default Win32 install prefix is not used (C:/Program Files (x86))

option(INSTALL_DOC ON)

if(BUILD_SHARED_LIBS OR BUILD_STATIC_LIBS)
if(NOT WIN32)
install(TARGETS astyle DESTINATION lib)
endif()
else()
if(SKBUILD)
install(TARGETS astyle DESTINATION "${SKBUILD_SCRIPTS_DIR}")
install(FILES ${DOCS} DESTINATION "${SKBUILD_DATA_DIR}/share/doc/astyle/html")
INSTALL(FILES ${MAN} DESTINATION "${SKBUILD_DATA_DIR}/share/man/man1")
if(INSTALL_DOC)
install(FILES ${DOCS} DESTINATION "${SKBUILD_DATA_DIR}/share/doc/astyle/html")
install(FILES ${MAN} DESTINATION "${SKBUILD_DATA_DIR}/share/man/man1")
endif()
elseif(WIN32)
set(pf86 "PROGRAMFILES(x86)")
set(prog_files $ENV{${pf86}})
Expand All @@ -23,14 +28,18 @@ else()
elseif(APPLE)
# install to the default /usr/local/bin because of SIP restrictions
install(TARGETS astyle DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
install(FILES ${DOCS} DESTINATION "${CMAKE_INSTALL_PREFIX}/share/doc/astyle/html")
if(INSTALL_DOC)
install(FILES ${DOCS} DESTINATION "${CMAKE_INSTALL_PREFIX}/share/doc/astyle/html")
endif()
else()
# change default to /usr/bin, the same as package installs
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set(CMAKE_INSTALL_PREFIX "/usr")
endif()
install(TARGETS astyle DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
install(FILES ${DOCS} DESTINATION "${CMAKE_INSTALL_PREFIX}/share/doc/astyle/html")
INSTALL(FILES ${MAN} DESTINATION "${CMAKE_INSTALL_PREFIX}/share/man/man1")
if(INSTALL_DOC)
install(FILES ${DOCS} DESTINATION "${CMAKE_INSTALL_PREFIX}/share/doc/astyle/html")
install(FILES ${MAN} DESTINATION "${CMAKE_INSTALL_PREFIX}/share/man/man1")
endif()
endif()
endif()
2 changes: 1 addition & 1 deletion doc/astyle.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

<button onclick="topFunction()" id="topBtn" title="Go to Contents"><b>Top</b></button>

<h1>Artistic Style 3.4.13</h1>
<h1>Artistic Style</h1>

<h2>
A Free, Fast, and Small Automatic Formatter<br />
Expand Down
101 changes: 54 additions & 47 deletions doc/notes.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,104 +14,111 @@

<h1>Artistic Style Release Notes</h1>

<h3>Artistic Style 3.4.14 (April 2024)</h3>
<ul>
<li>Fix split references with "-k1" option (#565)</li>
<li>Fix "--align-pointer=type" option for fundamental types in lambda parameter lists (https://gitlab.com/saalen/astyle/-/issues/35)</li>
<li>Fix "--indent-after-parens" indent count (https://gitlab.com/saalen/astyle/-/issues/29)</li>
</ul>

<h3>Artistic Style 3.4.13 (March 2024)</h3>
<ul>
<li>fix comment indent after string macro with R suffix (https://gitlab.com/saalen/astyle/-/issues/39)</li>
<li>do not break single line block after enum in mozilla mode (https://gitlab.com/saalen/astyle/-/issues/38)</li>
<li>adjust cmake policy for new versions only (https://gitlab.com/saalen/astyle/-/issues/40)</li>
<li>update man page path</li>
<li>add support for scikit-build-core</li>
<li>Fix comment indent after string macro with R suffix (https://gitlab.com/saalen/astyle/-/issues/39)</li>
<li>Do not break single line block after enum in mozilla mode (https://gitlab.com/saalen/astyle/-/issues/38)</li>
<li>Adjust cmake policy for new versions only (https://gitlab.com/saalen/astyle/-/issues/40)</li>
<li>Update man page path</li>
<li>Add support for scikit-build-core</li>
</ul>

<h3>Artistic Style 3.4.12 (February 2024)</h3>
<ul>
<li>added "--pad-brackets-in" and "--pad-brackets-out" options (https://gitlab.com/saalen/astyle/-/issues/33)</li>
<li>fixed indentation of initializer lists (https://gitlab.com/saalen/astyle/-/issues/28)</li>
<li>fixed crash with "--add-braces=nested" applied to if-else blocks (https://gitlab.com/saalen/astyle/-/issues/36)</li>
<li>Add "--pad-brackets-in" and "--pad-brackets-out" options (https://gitlab.com/saalen/astyle/-/issues/33)</li>
<li>Fix indentation of initializer lists (https://gitlab.com/saalen/astyle/-/issues/28)</li>
<li>Fix crash with "--add-braces=nested" applied to if-else blocks (https://gitlab.com/saalen/astyle/-/issues/36)</li>
</ul>

<h3>Artistic Style 3.4.11 (January 2024)</h3>

<ul>
<li>added new option "--add-braces=nested" to add braces in nested single line statements (https://gitlab.com/saalen/astyle/-/issues/27)</li>
<li>fix indent after double template brackets (https://gitlab.com/saalen/astyle/-/issues/28)</li>
<li>fix indent after dot (https://gitlab.com/saalen/astyle/-/issues/28)</li>
<li>"--squeeze-lines=1" is no longer default with Linux builds (#559)</li>
<li>add experimental GHC mode (https://gitlab.com/saalen/astyle/-/issues/31)</li>
<li>fix indent after raw string (https://gitlab.com/saalen/astyle/-/issues/32)</li>
<li>Add new option "--add-braces=nested" to add braces in nested single line statements (https://gitlab.com/saalen/astyle/-/issues/27)</li>
<li>Fix indent after double template brackets (https://gitlab.com/saalen/astyle/-/issues/28)</li>
<li>Fix indent after dot (https://gitlab.com/saalen/astyle/-/issues/28)</li>
<li>Option "--squeeze-lines=1" is no longer default with Linux builds (#559)</li>
<li>Add experimental GHC mode (https://gitlab.com/saalen/astyle/-/issues/31)</li>
<li>Fix indent after raw string (https://gitlab.com/saalen/astyle/-/issues/32)</li>
</ul>

<h3>Artistic Style 3.4.10 (October 2023)</h3>

<ul>
<li>fixed missing indent in function parameter list (https://gitlab.com/saalen/astyle/-/issues/16)</li>
<li>Fix missing indent in function parameter list (https://gitlab.com/saalen/astyle/-/issues/16)</li>
</ul>

<h3>Artistic Style 3.4.9 (October 2023)</h3>

<ul>
<li>applied one wording for <span style="white-space: nowrap;">Objective-C</span> in the docs</li>
<li>fixed more CS regressions (https://gitlab.com/saalen/astyle/-/issues/16)</li>
<li>fixed inserting space with combined "--pad-oper" and "--align-pointer" options (#557)</li>
<li>Apply one wording for <span style="white-space: nowrap;">Objective-C</span> in the docs</li>
<li>Fix more CS regressions (https://gitlab.com/saalen/astyle/-/issues/16)</li>
<li>Fix inserting space with combined "--pad-oper" and "--align-pointer" options (#557)</li>
</ul>

<h3>Artistic Style 3.4.8 (September 2023)</h3>

<ul>
<li>fixed lambda broken brace after auto keyword (#554)</li>
<li>fixed line break after comment in asm block (#226)</li>
<li>fixed padding of multiply operator (#126)</li>
<li>fixed indentation of method calls (#434)</li>
<li>fixed empty line after closing while block (https://gitlab.com/saalen/astyle/-/issues/18)</li>
<li>added outer padding for empty parens pairs (https://gitlab.com/saalen/astyle/-/issues/19) </li>
<li>fixed more CS regressions (https://gitlab.com/saalen/astyle/-/issues/16)</li>
<li>Fix lambda broken brace after auto keyword (#554)</li>
<li>Fix line break after comment in asm block (#226)</li>
<li>Fix padding of multiply operator (#126)</li>
<li>Fix indentation of method calls (#434)</li>
<li>Fix empty line after closing while block (https://gitlab.com/saalen/astyle/-/issues/18)</li>
<li>Add outer padding for empty parens pairs (https://gitlab.com/saalen/astyle/-/issues/19) </li>
<li>Fix more CS regressions (https://gitlab.com/saalen/astyle/-/issues/16)</li>
</ul>

<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>
<li>Add VS2022 project files (https://gitlab.com/saalen/astyle/-/merge_requests/3)</li>
<li>Fix CS regressions (https://gitlab.com/saalen/astyle/-/issues/16)</li>
<li>Add 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 &amp; 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>
<li>Fix padding of &amp; following a comma (#552)</li>
<li>Fix indent of function declarations following access modifiers (#504)</li>
<li>Fix indent of C# allocation blocks (#464)</li>
<li>Fix 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 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>
<li>Fix formatting of CS interpolation literals (https://gitlab.com/saalen/astyle/-/issues/8).</li>
<li>Fix false lambda recognition (https://gitlab.com/saalen/astyle/-/issues/11)</li>
<li>Fix indentation of member declarations (https://gitlab.com/saalen/astyle/-/issues/10)</li>
<li>Fix indentation of struct assignments (https://gitlab.com/saalen/astyle/-/issues/12)</li>
<li>Add new option "--indent-lambda" to enable new lambda recognition (https://gitlab.com/saalen/astyle/-/issues/7)</li>
<li>Add link to astyle Python distribution projects (https://gitlab.com/saalen/astyle/-/issues/6)</li>
</ul>

<h3>Artistic Style 3.3 (May 2023)</h3>

<ul>
<li>added new option "--squeeze-ws" to remove superfluous whitespace (experimental)</li>
<li>added new option "--squeeze-lines" to remove superfluous empty lines (experimental, #19, #22, #43, #72, #84, #93, #105, #517)</li>
<li>added new options "--pad-brackets" and "--unpad-brackets" to add or remove whitespace around square brackets (experimental)</li>
<li>fixed indent of lambda bodies in fct calls (#121)</li>
<li>fixed indent of struct names including &quot;struct&quot; (#526)</li>
<li>fixed indent of C++11 initializer lists (#516)</li>
<li>fixed padding of pointers separated by comma (#537)</li>
<li>refactored namespace std usage</li>
<li>Add new option "--squeeze-ws" to remove superfluous whitespace (experimental)</li>
<li>Add new option "--squeeze-lines" to remove superfluous empty lines (experimental, #19, #22, #43, #72, #84, #93, #105, #517)</li>
<li>Add new options "--pad-brackets" and "--unpad-brackets" to add or remove whitespace around square brackets (experimental)</li>
<li>Fix indent of lambda bodies in fct calls (#121)</li>
<li>Fix indent of struct names including &quot;struct&quot; (#526)</li>
<li>Fix indent of C++11 initializer lists (#516)</li>
<li>Fix padding of pointers separated by comma (#537)</li>
<li>Refactor namespace std usage</li>
</ul>

<h3>Artistic Style 3.2.1 (March 2023)</h3>

<ul>
<li>fixed struct recognition related to SF #534 (https://gitlab.com/saalen/astyle/-/issues/1)</li>
<li>Fix struct recognition related to SF #534 (https://gitlab.com/saalen/astyle/-/issues/1)</li>
</ul>

<h3>Artistic Style 3.2 (March 2023)</h3>
Expand Down
Loading

0 comments on commit 50e393b

Please sign in to comment.