Compare commits

..
530 Commits
Author SHA1 Message Date
Christopher Sean Morrison 5c9c00de25 remove Mac LIBRARY_PATH override.
it causes tcl's configure to configure CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc which requires full definition of system include and lib search paths (i.e., more than LIBRARY_PATH).  it doesn't work otherwise, resulting in basic failures like not finding system headers.  even with CPATH set, still needs more.  default compiler works, so reverting to see if the previous issue has an alternate solution or was temporary.
2025-01-26 00:20:16 -05:00
Clifford Yapp 8ee34e8381 Merge branch 'main' into RELEASE 2024-11-01 16:31:14 -04:00
Clifford Yapp e051d93fc1 Build relocatable tinygltf 2024-11-01 16:31:05 -04:00
Clifford Yapp ab8b42d88c Remove FindLINENOISE.cmake file as well 2024-10-30 11:38:27 -04:00
Clifford Yapp 142598aa44 Remove C library version of linenoise - using hpp header version 2024-10-30 11:33:04 -04:00
Clifford Yapp 5ad0a9d7b8 Merge branch 'main' into RELEASE 2024-10-24 11:38:41 -04:00
Clifford Yapp 8531c6cbbb Not using meshIO in librt 2024-10-22 16:25:39 -04:00
Clifford Yapp b920e61c64 Not using meshIO in librt 2024-10-22 16:25:19 -04:00
Clifford Yapp 80bc44df7e Add tinygltf as a bext component 2024-10-22 15:22:10 -04:00
Clifford Yapp 2182291409 Reapply "Looks like BSD uses locale_t as well"
Whoops, this should be independent of the zlib changes

This reverts commit 91aaf2a205.
2024-10-15 16:09:59 -04:00
Clifford Yapp dfffb9b80f Revert "Add GLM - Manifold uses this, including in its headers, so we need it installed."
This reverts commit dccdb61ac7.
2024-10-15 15:56:53 -04:00
Clifford Yapp d8f6d0324a Revert "Rework zlib patching"
This reverts commit c2aabae647.
2024-10-15 15:55:43 -04:00
Clifford Yapp 0820e71165 Revert "Try generating a ZLIBConfig.cmake file"
This reverts commit 690b4b07a1.
2024-10-15 15:55:20 -04:00
Clifford Yapp bc4902c4b3 Revert "See if we can remove the FindZLIB.cmake customization patch from assetimport"
This reverts commit 749a13ccf6.
2024-10-15 15:55:19 -04:00
Clifford Yapp 40d105d04e Reapply "See if we can remove the FindZLIB.cmake customization patch from assetimport"
This reverts commit d8dd4807a9.
2024-10-15 15:55:18 -04:00
Clifford Yapp bed5608428 Revert "Fix includes, add Z_PREFIX define"
This reverts commit cf41e92458.
2024-10-15 15:55:16 -04:00
Clifford Yapp 91aaf2a205 Revert "Looks like BSD uses locale_t as well"
This reverts commit dcccf402a7.
2024-10-15 15:55:14 -04:00
Clifford Yapp dcccf402a7 Looks like BSD uses locale_t as well 2024-10-09 17:00:10 -04:00
Clifford Yapp cf41e92458 Fix includes, add Z_PREFIX define 2024-10-09 16:34:44 -04:00
Clifford Yapp d8dd4807a9 Revert "See if we can remove the FindZLIB.cmake customization patch from assetimport"
Need to think more about Z_PREFIX and the Config.cmake setup...

This reverts commit 749a13ccf6.
2024-10-09 16:19:05 -04:00
Clifford Yapp 749a13ccf6 See if we can remove the FindZLIB.cmake customization patch from assetimport 2024-10-09 16:13:15 -04:00
Clifford Yapp 690b4b07a1 Try generating a ZLIBConfig.cmake file 2024-10-09 15:02:44 -04:00
Clifford Yapp c2aabae647 Rework zlib patching
Break CMake changes, rc mod and zlib prefixing out into separate
patches.  To make the diff more useful, incorporate file moves into the
patching process so we can diff the current zlib.h and our zlib.h.in (as
well as the same thing for zconf) rather than deleting and adding.
2024-10-09 13:11:53 -04:00
Clifford Yapp ab8512efcf Add Clipper2 as a dependency (needed by Manifold) 2024-10-09 12:46:40 -04:00
Clifford Yapp dccdb61ac7 Add GLM - Manifold uses this, including in its headers, so we need it installed. 2024-10-09 12:46:40 -04:00
Clifford Yapp 5759ffc9de Add some notes on how to handle switching between bext versions in a clone. 2024-10-02 16:04:34 -04:00
Clifford Yapp 0d3c74b69a List opennurbs_windows_targetver.h header 2024-09-25 10:27:17 -04:00
Clifford Yapp 71d9114419 Adjust patches for newer opennurbs - this succeeds, but should update the last few to reset the line offsets. 2024-09-24 16:43:31 -04:00
Clifford Yapp b6472f23c3 Update OpenNURBS to v8.10.24228.13001 2024-09-24 10:43:53 -04:00
Clifford Yapp 2f91d60a8c Update GeometricTools to 7adae93f8 2024-09-24 10:38:05 -04:00
Clifford Yapp 5db058e750 Update Asset Import Library to v5.4.3 2024-09-24 10:35:31 -04:00
Clifford Yapp 33c1bb2f7b Update GDAL to v3.9.2 2024-09-24 10:30:54 -04:00
Clifford Yapp 2b4dd2c226 Update PROJ to v9.5.0 2024-09-24 10:28:07 -04:00
Clifford Yapp 256cc9af17 Update SQLite to v3.46.1 2024-09-24 10:25:05 -04:00
Clifford Yapp 0ace428b5d Update lmdb to 9c9d345 2024-09-24 10:18:21 -04:00
Clifford Yapp 9795274864 Update libtiff to v4.7.0 2024-09-24 10:15:04 -04:00
Clifford Yapp fc7ddc31ab Update to netpbm v10.86.42 2024-09-24 10:10:08 -04:00
Clifford Yapp 98c7dc83ce Update LIEF to v0.15.1 2024-09-24 10:01:17 -04:00
Clifford Yapp 981b347657 Switch LIEF submodule to point at RELEASE branch 2024-09-24 10:00:35 -04:00
Clifford Yapp 637467b27b Update AStyle to v3.6.2 2024-09-24 09:52:02 -04:00
Clifford Yapp a7cf15c27c Update bext libpng to v1.6.44 2024-09-24 09:46:51 -04:00
Clifford Yapp 7b8f87a428 Merge branch 'main' into RELEASE 2024-09-23 12:25:46 -04:00
Clifford Yapp 544ddc86fd Update gdal to SHA1 6caa025977 2024-09-23 12:25:38 -04:00
Clifford Yapp ba294f7468 Merge branch 'main' into RELEASE 2024-09-20 15:00:32 -04:00
Clifford Yapp 5df71de0b6 Adjust Tk settings 2024-09-20 15:00:14 -04:00
Clifford Yapp d7ddb270ac Merge branch 'main' into RELEASE 2024-09-20 14:11:31 -04:00
Clifford Yapp 17f5b95371 Add cad_enable check for Tk 2024-09-20 14:10:14 -04:00
Clifford Yapp a5cae2177c Merge branch 'main' into RELEASE 2024-09-20 13:59:28 -04:00
Clifford Yapp 0a21754eb3 Add cad_enable check for Itk 2024-09-20 13:59:03 -04:00
Clifford Yapp f91a4ca64e Merge branch 'main' into RELEASE 2024-09-20 12:06:12 -04:00
Clifford Yapp b85a7a0fd8 Depending on configure settings, libdm and liboptical can use Tcl. 2024-09-20 12:05:13 -04:00
Clifford Yapp 2907a171ff Update UtahRLE to get dll export pattern update 2024-09-17 18:20:27 -04:00
Clifford Yapp b2f8f492fe Update UtahRLE to get dll export pattern update 2024-09-17 18:19:55 -04:00
Clifford Yapp 687ff98a23 Learned a way from CMake discourse forum to get CMAKE_SHARED_LIBRARY_SUFFIX in a script. 2024-09-12 19:51:40 -04:00
Clifford Yapp 42f9e40c12 Merge branch 'main' into RELEASE 2024-09-12 19:33:23 -04:00
Clifford Yapp bbaf1808ae Try patches to avoid problems loading Dll on Windows
The JavaCheck.cmake test was failing on Windows.  Starting from the
known working 7.38.2 BRL-CAD version, worked through the changes and it
looks as if these were the "poison pills."

Not 100% sure of the reason for the failure, but it looks like we may be
able to disable the code in question.  Post effects don't seem to be
used by the code paths we're interested in.  The 3dm attribute change is
a little riskier and needs testing.
2024-09-12 16:44:22 -04:00
Clifford Yapp 515e4e710c Note info identified so far on OpenNURBS.dll loading issue. 2024-09-12 16:18:20 -04:00
f4alt f930acc096 improve clarity
try to make it a bit more clear to first-time builders that this should
be the install location (not the build dir), and the path should end at
bext_output
2024-09-12 09:50:38 -04:00
f4alt 72c70f8f3d internal directories have been removed from brlcad main 2024-09-12 09:50:38 -04:00
Clifford Yapp 3d22937cff Since we have to feed command line parameters, print them back out so we can see if anything needs quoting. 2024-09-11 12:02:45 -04:00
Clifford Yapp 84bba8b858 Looks like find_package will run in CMake's -P script mode - leverage it. 2024-09-11 11:54:57 -04:00
Clifford Yapp cf70529670 Add a script to help test dynamic library loading with Java 2024-09-11 11:22:58 -04:00
Clifford Yapp b116cfb258 Patch was malformed 2024-09-09 15:57:27 -04:00
Clifford Yapp 0a3725b628 Yikes. Let's see if we can back the minimum CMake used by LIEF back to 3.18 - 3.24 is quite aggressive. 2024-09-09 14:03:03 -04:00
Clifford Yapp 3353d241f0 Looks like the BSD define isn't working for brlcad.org - try __FreeBSD__ 2024-09-09 13:24:49 -04:00
Clifford Yapp 357a60863f Adjust LoadLibrary cmake script 2024-09-09 12:56:35 -04:00
Clifford Yapp 08248d2897 Fix variable type 2024-09-09 12:43:15 -04:00
Clifford Yapp 6a6d279d4e Fix generator expression syntax 2024-09-09 12:42:11 -04:00
Clifford Yapp 59d1e24e68 Fix path 2024-09-09 12:41:02 -04:00
Clifford Yapp 288e25ef39 First cut at logic to check LoadLibrary behavior with output dlls. 2024-09-09 12:25:52 -04:00
Clifford Yapp 5aaa811f04 Merge branch 'main' into RELEASE 2024-08-31 21:09:51 -04:00
Clifford Yapp 05c22d73f0 Geogram is being used by librt now - not an extra. 2024-08-31 21:09:37 -04:00
f4alt c57507eb2a has to match lib and find_package lower-case 2024-08-27 08:34:15 -04:00
Clifford Yapp c7be60c83b Merge branch 'main' into RELEASE 2024-08-23 22:18:43 -04:00
Clifford Yapp 485cc715e8 Match BRL-CAD FindGTE.cmake file 2024-08-23 16:25:35 -04:00
Clifford Yapp 0872937a11 Update GeometricTools to latest upstream 2024-08-23 16:09:38 -04:00
Clifford Yapp de0df334c0 Set CMP0144 policy to NEW for asset import library 2024-08-22 16:11:15 -04:00
Clifford Yapp 3ff2164b31 Add mmesh submodule 2024-08-19 15:57:28 -04:00
Clifford Yapp 602ac5fb94 Stub in logic for BRL-CAD/mmesh building 2024-08-19 14:29:46 -04:00
Clifford Yapp 39d5d44888 typo 2024-08-19 09:31:52 -04:00
Clifford Yapp 78bce3133a Debug Linux build is hitting disk space issues - disable USE_GDAL 2024-08-16 08:52:11 -04:00
Clifford Yapp aa836fcc63 Add SDK usr/lib to LIBRARY_PATH on Mac for Tcl
Initial clone is failing on an in-build-dir checkout, unable to compile
because it can't find the System lib.
2024-08-14 17:18:13 -04:00
Clifford Yapp cef79c3022 Add SDK usr/lib to LIBRARY_PATH on Mac for Tcl
Initial clone is failing on an in-build-dir checkout, unable to compile
because it can't find the System lib.
2024-08-14 17:16:58 -04:00
Clifford Yapp 696eff58be Try @rpath instead of @executable_path for libtcl
(cherry picked from commit 95696c206e)
2024-08-14 11:27:25 -04:00
Clifford Yapp 50de3088c7 Need find_package(TCL) for TCL_INCLUDE_PATH 2024-08-06 21:13:05 -04:00
Clifford Yapp 0e17d83856 Whoops, need to set TCL_SOURCE_DIR if we found tcl/tcl 2024-08-06 20:59:23 -04:00
Christopher Sean Morrison 21b72aaab2 verb instead of noun, rename TargetDeps to RegisterDeps.
make it a smidge more clear what this macro is doing in the call sites.  document it also and detangle the side effect from its core purpose.
2024-08-06 18:05:14 -04:00
Christopher Sean Morrison 7bebe2a504 need quotes 2024-08-06 17:01:05 -04:00
Christopher Sean Morrison c5c6821632 replace the range with a minimum.
subsequent logic assumes there will be dirs and products like tcl86, so likely needs more work.  probably inadequate if we find a system 8.7+ for example, but we at least use vars which are hopefully set during find_package().
2024-08-06 16:58:56 -04:00
Clifford Yapp f607741abf Add commented out logic for SPSR repository
Not adding the submodule yet - need to be sure this can actually work -
but looking to use the "header only" mode of SPSR added to upstream code
to replace the bundled copy in BRL-CAD.

Once it is demonstrated to be working, add the submodule and uncomment
in dependencies.cmake
2024-08-06 15:14:40 -04:00
Clifford Yapp 1c367b9338 Add patching option to try and make Itcl build more robust to missing private headers. 2024-08-06 13:26:23 -04:00
Clifford Yapp 4d5e8db0c7 Persist our ENABLE_ALL setting after the first CMake run 2024-08-06 12:46:01 -04:00
Clifford Yapp 979ca2e7a4 Fix variable name 2024-08-06 12:46:01 -04:00
Christopher Sean Morrison 6f9914ca14 fix BSD compilation issue.
fcloseall() on BSD returns void, so can't directly use it as a return on a function that returns int.  instead of manually rolling a version that reports how many were closed, we just close all and say 0 (aiming to avoid any error-checking callers while still closing all handles).
2024-08-06 10:19:58 -04:00
Clifford Yapp 95696c206e Try @rpath instead of @executable_path for libtcl 2024-08-05 19:30:03 -04:00
Clifford Yapp b12f5a30c0 Add GeometricTools as a bext module
This is preliminary - setting up to replace our copies of "ported" GTE
algorithms with calls to the upstream copies directly.  The key part of
GTE for our use case is header only, so treating it like Eigen and
staging it in noinstall.
2024-07-31 16:58:15 -04:00
Christopher Sean Morrison 55652f1d98 remove unused patch 2024-07-26 22:54:36 -06:00
Christopher Sean Morrison f39a5b0997 remove unused patch 2024-07-26 22:54:19 -06:00
Christopher Sean Morrison 157a1a7e7b Fix linux build failure affecting tcl/tk, make jobserver related.
Build was failing during Tcl install phase, which was a plain
"make install" and resulting in an error:

make[3]: *** read jobs pipe: Bad file descriptor.  Stop.
make[3]: *** Waiting for unfinished jobs....

This error is related to the make jobserver feature, pointing at
a likely cmake bug in the generated make logic, or a bug in make
itself, or an OS named pipe bug.  Bug encountered on VMs as well
as OpenSuse Linux (which may or may not have been a VM).

Unexpected workaround was to actually add the -j flag to the make
calls which disables jobserver mode on recursive make invocations.
Took that opportunity to enforce -j1 on install calls to avoid
any possibility of output race ordering on what should be an
I/O-bound build stage.
2024-07-26 20:41:20 -06:00
Christopher Sean Morrison 968a13c432 Fix linux build failure affecting tcl/tk, make jobserver related.
Build was failing during Tcl install phase, which was a plain
"make install" and resulting in an error:

make[3]: *** read jobs pipe: Bad file descriptor.  Stop.
make[3]: *** Waiting for unfinished jobs....

This error is related to the make jobserver feature, pointing at
a likely cmake bug in the generated make logic, or a bug in make
itself, or an OS named pipe bug.  Bug encountered on VMs as well
as OpenSuse Linux (which may or may not have been a VM).

Unexpected workaround was to actually add the -j flag to the make
calls which disables jobserver mode on recursive make invocations.
Took that opportunity to enforce -j1 on install calls to avoid
any possibility of output race ordering on what should be an
I/O-bound build stage.
2024-07-27 02:39:10 +00:00
Clifford Yapp 06ee31fce8 Merge branch 'main' into RELEASE 2024-07-26 18:11:58 -04:00
Clifford Yapp d22fbac295 Always build Tcl in series, not parallel - parallel building appears to be problematic in some environments 2024-07-26 18:11:43 -04:00
Clifford Yapp c03b2bd41c Merge branch 'main' into RELEASE 2024-07-13 00:47:25 -04:00
Clifford Yapp 7302a8ab38 Need to install uuid.h header 2024-07-13 00:47:09 -04:00
Clifford Yapp ffbeab6759 Merge branch 'main' into RELEASE 2024-07-12 20:47:51 -04:00
Clifford Yapp 60d8417540 Looks like clang static analyzer build needs -latomic 2024-07-12 20:47:40 -04:00
Clifford Yapp 541f65e180 Merge branch 'main' into RELEASE 2024-07-12 14:22:28 -04:00
Clifford Yapp 24a5e3844f Build both static and shared lmdb libs 2024-07-12 14:21:13 -04:00
Clifford Yapp 6f3de9da78 Merge branch 'main' into RELEASE 2024-07-12 08:22:03 -04:00
Clifford Yapp ffefe2f779 Need build types for Windows builds 2024-07-11 15:49:57 -04:00
Clifford Yapp 675de3d66e Remove --single-branch to support older Git versions 2024-07-11 15:40:08 -04:00
Sean Morrison e4f40da2f2 single-branch is not a valid option on git 2.20.4 2024-07-11 12:39:09 -07:00
Clifford Yapp a7c15d14df Back up Manifold to last successful CI build version
See https://stackoverflow.com/a/8813266/2037687 for how this is done.
Upstream has been notified of a problem when building with Debug config
on Windows, so until then stick with the older version.
2024-07-10 14:51:26 -04:00
Clifford Yapp c0435ce1f4 Put local itcl3 dir first 2024-07-10 11:19:40 -04:00
Clifford Yapp 561eab15a7 Hmm. Simplify to try and get the tmate session to trigger 2024-07-10 10:48:37 -04:00
Clifford Yapp 53c65285e1 Try to make sure Itk always has the internal Itcl headers 2024-07-10 10:46:08 -04:00
Clifford Yapp 943d33711e Try adding an interactive Linux option for bext 2024-07-10 09:25:41 -04:00
Clifford Yapp 0938d6f4da Specify build type for Windows CMake configure 2024-07-09 21:45:31 -04:00
Clifford Yapp 43c3239a4c Whoops, missed a MANIFOLD_EXCEPTIONS check 2024-07-09 21:32:47 -04:00
Clifford Yapp ab640fadfe vec DECL was changed in recent glm - change the def to match the old expanded version. 2024-07-09 20:10:45 -04:00
Clifford Yapp 920ec5dd04 Patch manifold build for OSX 2024-07-09 17:08:23 -04:00
Clifford Yapp bf58700777 Update RELEASE to include manifold upstream changes through b817d07 2024-07-02 20:09:55 -04:00
Clifford Yapp 3258da3917 Remove reference to header not present in repository 2024-06-28 18:44:54 -04:00
Clifford Yapp cba7f6cd90 Looks like we may not need the dynamic zstd, disable to try and avoid Windows build issue. 2024-06-28 15:02:58 -04:00
Clifford Yapp 4167ad7da6 Make sure AStyle compiles C++17 for string_view 2024-06-28 12:13:44 -04:00
Clifford Yapp 481505e796 Update to latest osmesa SHA1 2024-06-28 10:10:27 -04:00
Clifford Yapp 79beea1bc9 Looks like art doesn't need these - try turning off to see if we can avoid the Windows build issue. 2024-06-27 22:00:29 -04:00
Clifford Yapp 264722d045 Fix ast patch 2024-06-27 18:36:10 -04:00
Clifford Yapp bc9516ba98 Remove poly2tri - should be superceded in BRL-CAD by detria 2024-06-27 18:25:54 -04:00
Clifford Yapp c6ef344ce5 Missed a crc32 in the llvm_z_brl patch 2024-06-27 14:49:37 -04:00
Clifford Yapp 4277666e7a Update ISPC to v1.24.0 and OSPRay to v3.1.0 2024-06-26 21:09:46 -04:00
Clifford Yapp 0df2709eec Get latest appleseed changes
This combination of LLVM, OSL and Appleseed compiles on Linux, and will
build the art binary on Linux.  However, art output is incorrect - it
produces only a black silhouette with moss.g  Going ahead and
committing progress thus far since we seem to be relatively close to
getting it working.
2024-06-26 17:11:59 -04:00
Clifford Yapp 3d4f8f1e96 Update OSL to v1.13.10.0 2024-06-26 17:11:41 -04:00
Clifford Yapp 5d0ba73b59 Update LLVM to v18.1.8 2024-06-26 17:11:06 -04:00
Clifford Yapp 896e27bd6e Add missing STRCASECMP define to GDAL patch 2024-06-26 17:02:51 -04:00
Clifford Yapp 033d5e5b2a Add FindZLIB.cmake back into opennurbs CMake patch 2024-06-26 16:57:03 -04:00
Clifford Yapp 0ed488b5ac Tweak to help Appleseed find Eigen 2024-06-26 16:36:19 -04:00
Clifford Yapp 25c74f1e32 Update patches for OSL v1.13.10.0 2024-06-26 16:22:36 -04:00
Clifford Yapp b2df8bdb06 Update patches for LLVM 18 2024-06-26 14:07:23 -04:00
Clifford Yapp 9999edf0d2 Update Qt to v6.7.2 2024-06-26 10:44:00 -04:00
Clifford Yapp fd00536b0d Update embree patch for new sources 2024-06-25 19:46:03 -04:00
Clifford Yapp 918141c701 Update embree to v4.3.2 2024-06-25 19:42:18 -04:00
Clifford Yapp 732955ba5f Update geogram to v1.9.0 2024-06-25 19:40:26 -04:00
Clifford Yapp 5fbc05d675 Update patches for latest OpenNURBS
Also making a stab at trying to get our CMakeLists.txt closer to the
upstream file.  Still significant differences, but trying to work
towards minimizing them for easier updating.
2024-06-25 16:55:09 -04:00
Clifford Yapp 6e75eb24ab Update OpenNURBS to v8.8 2024-06-25 15:02:26 -04:00
Clifford Yapp dbb444eceb Update manifold to v2.5.1 2024-06-25 10:59:50 -04:00
Clifford Yapp aa5a700789 Update OpenMesh to v11.0 2024-06-25 10:36:45 -04:00
Clifford Yapp 22b322d57e Update opencv patch for v4.10.0 2024-06-25 10:33:05 -04:00
Clifford Yapp 5901c2086e Update OpenCV to v4.10.0 2024-06-25 10:17:44 -04:00
Clifford Yapp 0c4efb911f Update asset import patch for new version 2024-06-25 10:11:53 -04:00
Clifford Yapp 7073f5e21d Update Asset Import Library to v5.4.1 2024-06-25 10:08:00 -04:00
Clifford Yapp 1f3c5b17df Update GDAL to v3.9.0 2024-06-25 10:04:53 -04:00
Clifford Yapp 1baa0805d8 Update PROJ patch for new version 2024-06-25 09:50:48 -04:00
Clifford Yapp c27d75f3fa Update PROJ to v9.4.1 2024-06-25 09:45:53 -04:00
Clifford Yapp 86457b6614 Update sqlite3 to v3.46.0 2024-06-25 09:40:27 -04:00
Clifford Yapp 0ee1183d84 Update rkcommon to v1.13.0 2024-06-25 09:37:26 -04:00
Clifford Yapp 43842f962c Update oneTBB to v2021.12.0 2024-06-25 09:34:48 -04:00
Clifford Yapp 18627d5a8e Update lmdb to upstream ddd0a77 2024-06-25 09:30:20 -04:00
Clifford Yapp d00f5b18e1 We don't want OpenImageIO running the generate step every time, since it repeates the full build. 2024-06-25 09:27:30 -04:00
Clifford Yapp a712d631c5 Update OpenImageIO to v2.5.12.0 2024-06-25 09:14:39 -04:00
Clifford Yapp 7b051c101b Update OpenColorIO to v2.3.2 2024-06-24 21:28:20 -04:00
Clifford Yapp 8cb0a1c56d Update openexr to v3.2.4 2024-06-24 21:23:39 -04:00
Clifford Yapp b5f00f5a90 Update libjpeg-turbo to v3.0.3 2024-06-24 21:16:38 -04:00
Clifford Yapp 813e093e28 Update netpbm to 10.86.41 (no change for BRL-CAD subset) 2024-06-24 21:14:23 -04:00
Clifford Yapp eb5a34f461 Update Boost to v1.85.0 2024-06-24 20:59:02 -04:00
Clifford Yapp 3c561a6824 Pull in revert of ICU use of auto in template - causing xerces-c build error 2024-06-24 20:49:45 -04:00
Clifford Yapp e69b1fbc76 Update xerces-c to v3.2.5 2024-06-24 20:37:42 -04:00
Clifford Yapp 2301c69e6d Update ICU to v75.1 2024-06-24 20:24:58 -04:00
Clifford Yapp 4d9afc50bb Update expat patch to more precisely match latest sources 2024-06-24 20:16:05 -04:00
Clifford Yapp 32efb3d026 Update libexpat to v2.6.2 2024-06-24 20:13:11 -04:00
Clifford Yapp d37692aa1e Update fmt LICENSE filename 2024-06-24 20:08:31 -04:00
Clifford Yapp 16f6b5bf82 Update fmt to v10.2.1 2024-06-24 20:07:07 -04:00
Clifford Yapp 9208181d63 Update libdeflate to v1.20 2024-06-24 20:04:19 -04:00
Clifford Yapp 86fb7d34a9 Update minizip-ng to version 4.0.7 2024-06-24 19:57:22 -04:00
Clifford Yapp 5a5e05f5f6 Update zstd to v1.5.6 2024-06-24 19:24:59 -04:00
Clifford Yapp fc2e3c1e07 Update plief to work with latest LIEF upstream 2024-06-24 13:16:57 -04:00
Clifford Yapp 7cbaac4a28 Apply patch for uint64_t type 2024-06-24 12:16:56 -04:00
Clifford Yapp 53cd231363 Update LIEF to 2b68ae5 2024-06-24 11:54:57 -04:00
Clifford Yapp 46c81075fc Update AStyle to v3.5 2024-06-24 11:42:58 -04:00
Clifford Yapp 37d9a2763c Note source of winflexbison 2024-06-24 11:27:31 -04:00
Clifford Yapp d9a36cfb97 Update sb_patch to 47e1729 2024-06-24 11:21:53 -04:00
Clifford Yapp e4c8422a8a Separate the actual project listings into their own file 2024-06-24 11:11:21 -04:00
Clifford Yapp 73a04e14d0 Limit the build types the same way we do for BRL-CAD proper. If multiple configs are desired, one should use multiple build directories and different CMAKE_INSTALL_PREFIX targets. 2024-05-22 15:56:12 -04:00
Clifford Yapp e1fb40ab83 Provide feedback on what is being checked 2024-05-21 16:19:29 -04:00
Clifford Yapp 8646398a31 Adjust dllcheck target 2024-05-21 16:17:44 -04:00
Clifford Yapp dd2a46e07e See if we can cobble together a CMake target to test the dll types of bext outputs, to try and catch if a given project's build logic isn't giving us binaries built using the right config. 2024-05-21 16:04:51 -04:00
Clifford Yapp 5a343665f0 See if we can avoid messing with MD/MD on Windows
Getting test failures in BRL-CAD debug mode on Windows with assert
failures coming from Geogram - indications hunting around are this might
be a consequence of mixing MD and MT.  Try removing the logic that
messes with those settings explicitly in Geogram.
2024-05-16 19:18:05 -04:00
Clifford Yapp 71f137b6d6 Update gdal submodule 2024-05-15 13:59:28 -04:00
Clifford Yapp b9abe63d8d Update geogram submodule 2024-05-10 23:09:04 -04:00
Clifford Yapp 59398dce43 Tweak FindASSETIMPORT so the bundled reporting works 2024-05-09 20:45:10 -04:00
Clifford Yapp 080bbbbc1a Ignore CMakeUserPresets.json 2024-05-09 10:13:37 -04:00
Clifford Yapp dff0841d48 Update manifold submodule 2024-05-08 15:36:07 -04:00
Clifford Yapp 9a99031190 System LIEF isn't working right now 2024-05-08 15:23:53 -04:00
Clifford Yapp 4ab303c820 At least on ubuntu, there is a system liblief-dev package available. 2024-05-08 11:32:03 -04:00
Clifford Yapp ffdfb216a8 If the narrow searches don't find asset import, search more broadly. 2024-05-08 11:24:57 -04:00
Clifford Yapp 2356a7431d Still incorrect syntax 2024-04-29 15:04:51 -04:00
Clifford Yapp 495ea6e414 Incorrect syntax 2024-04-29 15:01:34 -04:00
Clifford Yapp 2b298323a6 Try installing Xquartz on OSX runners
Not sure exactly what happened yet, but main BRL-CAD CI suddenly reports
a Tk build failure on OSX when trying to look for Xlib.h, and there
haven't been any recent changes that I would expect to impact the bext
Tk build unless the Github runner environment has somehow changed.

Since we're not properly supporting Tk aqua, we really do need to do a
Tk X11 build if we're going to properly test our OSX configuration.
This tries out the https://stackoverflow.com/q/63648591/2037687 solution
2024-04-29 14:47:31 -04:00
Clifford Yapp 98a776cf44 Update setup-msbuild version 2024-04-29 14:43:34 -04:00
Clifford Yapp ad7e168a8c Hmm. Quick test of mmesh in librt didn't quite work - back out for now. 2024-04-22 20:15:53 -04:00
Clifford Yapp 2ccad66558 Add basic build files for mmesh 2024-04-22 15:54:11 -04:00
Clifford Yapp c342f95d3e Add mmesh submodule 2024-04-22 15:37:22 -04:00
Clifford Yapp e3fa21f04b Some OSX experiments hint that maybe the Geogram rpath settings are an issue for BRL-CAD's post-processing of the libs after copy? 2024-04-19 18:21:56 -04:00
Clifford Yapp f3b731dd51 Fix geogram superlu build warning on OSX. 2024-04-19 17:16:43 -04:00
Clifford Yapp 20f801ba2e Stop the Eigen build from doing export(PACKAGE)
We definitely don't want Eigen registering its build location with
CMake's find_package.  That's been good for some hilarity with the
BRL-CAD build...  I think we've got the build systems not using the
package registry, but even so let's not do this...

See https://cmake.org/cmake/help/latest/manual/cmake-packages.7.html#user-package-registry
for more info about the CMake User Package Registry
2024-04-16 20:41:34 -04:00
Clifford Yapp b0a2baef8d Getting weird Eigen find_package results due to find_package using the User Package Registry with stale info... disable looking there 2024-04-16 16:52:10 -04:00
Clifford Yapp e7b9880cbb Install the uuid.h header from android_uuid for opennurbs_system.h 2024-04-13 17:22:56 -04:00
Clifford Yapp ba24458387 Try wrapping Tcl configure and build steps the way we wrap Qt 2024-04-11 19:10:59 -04:00
Clifford Yapp c9c2a73cd6 Report output directory 2024-04-09 16:41:52 -04:00
Clifford Yapp c793b273a6 Add TODO file for bext 2024-04-09 13:46:25 -04:00
Clifford Yapp 055c7eb5b2 Use a variable to control the license output directory 2024-04-01 15:55:35 -04:00
Clifford Yapp 40ff1b465b Tweak bext_enable to see if we can use it with the cad_enable function. 2024-04-01 11:27:28 -04:00
Clifford Yapp cc241b036b First step in reducing boilerplate code in subprojects for enable/disable. Eventually want to get better about certain aspects of this, and refactoring this into common logic should help... 2024-04-01 11:01:12 -04:00
Clifford Yapp b6267a0e93 Update to latest utahrle submodule 2024-03-29 17:14:48 -04:00
Clifford Yapp 8f7516154f Don't let expat mess with its filename - that seems to be confusing the OpenColorIO build on Windows in Debug config. 2024-03-27 23:10:29 -04:00
Clifford Yapp 2da0457f56 Right... We can't just build Release with a Windows Debug build. 2024-03-27 20:20:13 -04:00
Clifford Yapp 62a03401c1 Update openimageio version to v2.5.9.0, update patch file 2024-03-27 15:00:47 -04:00
Clifford Yapp 62a736cc67 Debug building on Linux for LLVM is also problematic space wise. Let's just not do this - let the user know what's happening and why via configure message. 2024-03-27 10:32:47 -04:00
Clifford Yapp af131132e9 Need to think a little more about how to manage this - if ENABLE_ITK gets set to off, that sticks even if higher level settings change... 2024-03-27 08:10:55 -04:00
Clifford Yapp b30bd9f527 Windows debug flags were failing on Linux. These expressions can be tricky - make another try, but don't know if this works correctly on MSVC 2024-03-26 22:18:33 -04:00
Clifford Yapp 3344175dea Embree needs ISPC when we're doing the OSPRay build, but afaik doesn't requier it for Appleseed. Need to make this a conditional dep somehow, but for now just remove it. 2024-03-26 20:55:48 -04:00
Clifford Yapp dfb27be0b4 Try turning off a number of LIEF options. 2024-03-25 15:48:11 -04:00
Clifford Yapp 54bd914ff1 See if we can make bext configure respond to a BRLCAD_COMPONENTS list 2024-03-25 13:27:47 -04:00
Clifford Yapp 2f3a221d45 Add a note about shallow cloning and the tradeoffs. 2024-03-19 13:46:11 -04:00
Clifford Yapp 850421c5fa Adjust options 2024-03-19 13:18:08 -04:00
Clifford Yapp 489137979b CI runners appear to be bumping up against space constraints - put the challow clones back for that use case. 2024-03-19 13:02:02 -04:00
Clifford Yapp aa0d0e8bfb Correct which files we're checking for to spot populated repositories. 2024-03-19 11:40:03 -04:00
Clifford Yapp c2083b90fd Back off of using shallow clones
The checkout size, particularly when LLVM is involved, isn't drastically
smaller and the shallow clones act oddly when we try to do things other
that just a simple build.  Go simple unless there is some more
compelling advantage than checkout size.
2024-03-18 14:20:22 -04:00
Clifford Yapp b7caaa8a3e Disable building manifold tests 2024-03-18 13:04:40 -04:00
Clifford Yapp a595fbf590 Disable GDAL test building 2024-03-18 11:35:09 -04:00
Clifford Yapp f34ddb1097 Update osmesa submodule 2024-03-15 16:11:41 -04:00
Clifford Yapp a7ac6300ab Looking at more recent openNURBS upstream CMakeLists.txt, android_uuid isn't built with MSVC. 2024-03-15 16:09:44 -04:00
Clifford Yapp fdadaca0df Update osmesa submodule 2024-03-15 09:08:43 -04:00
Clifford Yapp 5efb97311f Update osmesa to latest upstream 2024-03-14 22:17:30 -04:00
Clifford Yapp 98aa0d9193 && syntax isn't used in powershell 2024-03-14 21:36:13 -04:00
Clifford Yapp 2899f1556a Try using powershell for the ninja build 2024-03-14 21:31:00 -04:00
Clifford Yapp 1d0275f150 Try to make sure we have unistd.h for OSX 2024-03-14 20:09:15 -04:00
Clifford Yapp 36d36de6a6 See if we can make the doc disabling patches more mimimalist 2024-03-14 19:53:10 -04:00
Clifford Yapp f8cdad5e93 Disable install of Tcl and Tk man pages 2024-03-14 11:08:40 -04:00
Clifford Yapp e18c072673 Note packages needed for Qt6 on Rocky Linux 8 2024-03-08 15:29:57 -05:00
Clifford Yapp 07e9c328af Bump Qt to 6.6.2 2024-03-08 00:28:42 -05:00
Clifford Yapp 0b9a6bb2b5 Warn if we have changed build settings and a populated bext_output 2024-03-07 20:30:56 -05:00
Clifford Yapp 8ff7d51859 Update enabled and disable projects based on changes in USE_* flags. 2024-03-07 16:47:57 -05:00
Clifford Yapp d9e846aca3 Update manifold to latest upstream 2024-03-07 12:25:09 -05:00
Clifford Yapp 52b2b62ad9 Try the same trick we use with geogram for Windows .lib 2024-03-07 12:24:21 -05:00
Clifford Yapp d67a290cca Update manifold to latest upstream 2024-03-07 12:07:08 -05:00
Clifford Yapp b46d051e1d Update manifold to latest upstream 2024-03-07 11:56:03 -05:00
Clifford Yapp 56e3221f9d Set some GLM variables 2024-03-07 11:55:23 -05:00
Clifford Yapp 7ce694f8cb Need MANIFOLD_EXPORT=ON for glb writing 2024-03-07 11:30:03 -05:00
Clifford Yapp 1c55f603e9 Run the vcvars bat file for Tcl/Tk
We appear to need this when using the stand-alone CMake GUI and Visual
Studio.  Not sure how this will work in other environments - we may have
to get smarter about when we do or don't use VCVARS_BAT based on what
CMake environment and/or build tools we are using...
2024-03-06 21:10:01 -05:00
Clifford Yapp 488f15defe We still need to respect SQLite3_ROOT 2024-03-06 19:47:31 -05:00
Clifford Yapp ab34dd4119 Adjust zlib.h include in zlib1.rc 2024-03-06 19:13:45 -05:00
Clifford Yapp 3cab8dc142 Put back the zlib prefix logic. 2024-03-06 18:25:35 -05:00
Clifford Yapp 77839da3e6 Adjust zlib patch 2024-03-06 17:31:42 -05:00
Clifford Yapp 4db1dafc99 Update Tcl/Tk to 8.6.14 2024-03-06 17:12:19 -05:00
Clifford Yapp 6ca530c966 Release mode building isn't working for assetimport library due to this line. 2024-03-06 16:22:55 -05:00
Clifford Yapp c6ca10036f Update GDAL to v3.8.4 2024-03-06 12:23:11 -05:00
Clifford Yapp 9bc084a2cd Update PROJ to v9.4.0 2024-03-06 12:22:39 -05:00
Clifford Yapp b056af9f68 Update to netpbm version 10.86.40 2024-03-06 11:23:08 -05:00
Clifford Yapp 3e7b37b263 Update OpenCV to version 4.9.0 2024-03-06 11:18:07 -05:00
Clifford Yapp a99ae416d8 Update sqlite3 to version 3.45.1 2024-03-06 11:05:46 -05:00
Clifford Yapp 81f3ddcad4 Pull in fix for CVE-2022-45748 2024-03-06 11:03:22 -05:00
Clifford Yapp 22a06c6fa7 Update libpng to v1.6.43 2024-03-06 10:55:46 -05:00
Clifford Yapp 2b0b2ea2db Just turn off the examples in configure rather than patching. 2024-03-06 10:42:11 -05:00
Clifford Yapp dfdae10719 Update zlib to version 1.3.1 2024-03-06 10:29:35 -05:00
Clifford Yapp 3dd7c37bd3 Need to specify BRLCAD_EXT_DIR location now if not letting BRL-CAD's configure do the work. 2024-02-16 21:38:26 -05:00
Clifford Yapp f9257a855b Same deal with Itk - see if we can find the necessary headers 2024-02-16 19:12:36 -05:00
Clifford Yapp 130614bda8 Try to find private Tcl hdrs in the system install for Itcl 2024-02-16 19:05:27 -05:00
Clifford Yapp 3697110a37 Don't define Z_PREFIX here - precludes using a system zlib 2024-02-16 15:41:43 -05:00
Clifford Yapp 1ce0f10240 Fix zlib patch 2024-02-16 15:11:55 -05:00
Clifford Yapp 39b869fd2b opennurbs patches weren't working with system patch on Ubuntu 2024-02-16 14:54:05 -05:00
Clifford Yapp 0ccc8074c0 BUILD_ALWAYS was off in src/other, but it probably makes more sense to default it to on for bext, since the whole point of this repository is building these projects. 2024-02-12 16:38:42 -05:00
f4alt c1e676f44e fix weird interaction with cmake value checking
on windows, cmake is interpreting the empty string as a set value which
causes problems in eigen/blas/CMakeLists.txt. Instead, correlate the
value with a 'false'
2024-02-12 12:58:03 -05:00
f4alt 01c306b547 need to force cmake to generate geogram.lib file 2024-02-12 12:43:59 -05:00
Clifford Yapp b954a90444 Update manifold to version with exported MeshGL 2024-02-12 10:19:23 -05:00
Christopher Sean Morrison b05b713926 try turning off .pdb and .ilk generation. 2024-02-08 10:00:51 -05:00
Clifford Yapp 8b5308a9ab Hmm. Getting a mismatch detected error when building ged-bot on Windows - looks like MT_StaticRelease from geogram and MD_DynamicRelease in bot.obj. Doubt it's this simple (in fact it is more likely to cascade into things like dll export issues), but try making add_library explicitly SHARED. 2024-01-27 01:07:08 -05:00
Clifford Yapp e28d1e8171 More glm bits for manifold 2024-01-27 00:53:37 -05:00
Clifford Yapp cad6fc4c1c Update manifold to latest RELEASE sha1 2024-01-27 00:47:42 -05:00
Clifford Yapp 57356a4cfc Restore manifold submodule 2024-01-27 00:25:54 -05:00
Clifford Yapp eb6981287c manifold submodule is in an odd state - clear 2024-01-27 00:24:05 -05:00
Clifford Yapp bc44104642 Geogram, like OpenNURBS, needs to be flagged as needing the SYSTEM include directive in CMake. 2024-01-26 19:07:38 -05:00
Clifford Yapp c983a5a698 Add a note about updating BRLCAD_Summary.cmake 2024-01-26 19:03:56 -05:00
Clifford Yapp a714bd50f7 Note where to add logic in BRL-CAD build for locating Geogram. 2024-01-26 18:57:17 -05:00
Clifford Yapp c56f028a1f Call out dependency files in directory structure description. 2024-01-25 16:46:25 -05:00
Clifford Yapp 65122bd5c9 USE_BRLCAD_EXTRA is on by default. 2024-01-25 16:42:56 -05:00
Clifford Yapp d376cbc451 Document USE_BRLCAD_EXTRA option 2024-01-25 16:40:42 -05:00
Clifford Yapp dda8450465 Add a note to check system vs bundled dependency building after the dust settles. 2024-01-25 16:11:05 -05:00
Clifford Yapp 8ed40ff7df Update worked geogram example notes through submodule setup. 2024-01-25 16:00:54 -05:00
Clifford Yapp 07d979f758 Add geogram geometry library to bext 2024-01-25 15:52:38 -05:00
Clifford Yapp 435833499d Start documenting geogram prep 2024-01-25 11:20:39 -05:00
Clifford Yapp 5f4fdd0b52 Start documenting the process of adding a brand new dependency to bext 2024-01-24 22:56:59 -05:00
Clifford Yapp 4c5d5810c8 Again, avoid crazy excaping for empty path quotes. 2024-01-24 11:31:09 -05:00
Clifford Yapp c9feaf93fd Add a different way to suppress the debug suffix
The quoting for passing the empty argument through the various CMake
layers wasn't working as expected - the quotes ended up incorporated
into the library .so filename.
2024-01-24 11:20:58 -05:00
Clifford Yapp 5c654c65cb Escape quote chars for passing into configure .cmake scripts. Hopefully will clear the "Argument not separated from previous token by whitespace" errors from PNG_BLD-configure-.cmake and OPENCV_BLD-configure-.cmake 2024-01-23 15:50:34 -05:00
Clifford Yapp 7e03f93823 Try a higher C++ standard for openmesh to see if that helps building on Mac. 2024-01-19 09:36:22 -05:00
Clifford Yapp 810b6f7155 Pull manifold ASSETIMPORT fix into bext 2024-01-12 15:19:40 -05:00
Clifford Yapp 8b3557af9d Require C++ 11 for openmesh 2023-12-21 19:34:49 -05:00
Clifford Yapp 62fd313b3f Update manifold build to use assetimport 2023-12-21 19:34:27 -05:00
Clifford Yapp 16e881242a Manifold debugging logic depends on assetimport 2023-12-21 18:46:47 -05:00
Clifford Yapp 171d6e3126 Update remainder of dependencies. ENABLE_ALL builds on Linux, but these versions have not been tested with BRL-CAD yet. 2023-12-21 14:52:24 -05:00
Clifford Yapp 0477b558bf Update OpenImageIO. May need to set up a local copy of robin-map - right now I think it's downloading it from https://github.com/Tessil/robin-map 2023-12-21 13:22:58 -05:00
Clifford Yapp 52cb2a1bf8 Add DARWIN define for strdup 2023-12-21 12:52:19 -05:00
Clifford Yapp cad7db63d0 Fix HAVE_UNISTD_H check 2023-12-21 12:14:08 -05:00
Clifford Yapp 1fab22d730 Looks like we still need this compiler bug workaround 2023-12-21 12:01:39 -05:00
Clifford Yapp f4172ea19c Pull in Windows fixes for netpbm build 2023-12-21 11:32:27 -05:00
Clifford Yapp f046dbf328 Tweak BRL-CAD opennurbs CMakeLists.txt file
Switching to the upstream CMake might have some implications that need
more careful study - in the meantime, see if we can tweak our build file
to add the libs and flags they're using.
2023-12-21 10:51:51 -05:00
Clifford Yapp 0606bbe687 Update netpbm submodule 2023-12-21 10:01:11 -05:00
Clifford Yapp df57ac4e31 Update OpenColorIO submodule and patch 2023-12-21 10:00:04 -05:00
Clifford Yapp e0796651f7 Update OpenMesh submodule 2023-12-20 14:43:16 -05:00
Clifford Yapp 189312068d Update netpbm submodule 2023-12-20 14:42:03 -05:00
Clifford Yapp 0802564789 Update PROJ and GDAL submodules 2023-12-20 14:40:54 -05:00
Clifford Yapp 2a3f35af62 Update submodules for LIEF and lmdb 2023-12-20 13:39:02 -05:00
Clifford Yapp b0220ecf03 Fix CMakeLists.txt patch, mods for BSD building 2023-12-20 13:24:37 -05:00
Clifford Yapp c61f3f1fc5 Start working on updating to 8.x openNURBS branch
Rhino 8 is out, so we need to look at making the jump to the 8.x branch.
This is a first cut at updating the patch files.  Note that the 8.x
branch has CMake logic already in place, so we need to look at minimally
modding what is there rather than overwriting to use our original
CMakeLists.txt file (which is what opennurbs_cmake.patch is currently
doing.)

The lock, lookup and statics patches are disabled, but currently left in
place until we're sure we don't need some variant of them in the new
code.
2023-12-20 12:08:38 -05:00
Clifford Yapp 78b4afd758 Try to strip RTC1 out of Debug configs
The main Qt build does this, but it looks like the qtsvg build isn't
doing it - patch to try and match the main Qt build's behavior for
removing RTC1
2023-12-20 10:33:42 -05:00
Clifford Yapp 88de8fe3fe Remove debug printing 2023-12-20 10:33:16 -05:00
Clifford Yapp ebfbfa59f0 Update png submodule and patch for v1.6.40 2023-12-19 21:08:03 -05:00
Clifford Yapp 8261440869 Did a lot of submodule updates in the BRL-CAD/* projects, which will break patching and potentially building in bext. Start introducing the updates gradually with patch and astyle 2023-12-19 19:17:50 -05:00
Clifford Yapp f3b623c922 Remove VCVARS_BAT from qt install script 2023-12-19 18:47:55 -05:00
Clifford Yapp 15795b327f See if we can remove VCVARS_BAT from the Tcl/Tk build as well. 2023-12-19 14:37:51 -05:00
Clifford Yapp 488afe1a2f See if we can set up the dev environment beforehand
Running the vcvars64.bat script via CMake doesn't seem to be working for
some reason, so try https://github.com/orgs/community/discussions/26887
from the yml file
2023-12-19 12:00:35 -05:00
Clifford Yapp 506d601379 Looks like VCVARS_BAT is the only path where Program Files is present. Can TO_NATIVE_PATH help here? 2023-12-19 10:34:32 -05:00
Clifford Yapp a3b77bceab Update qt to 6.6.1 2023-12-19 10:25:29 -05:00
Clifford Yapp b770656915 Try pre-populating the CMAKE_COMMAND string 2023-12-19 09:57:15 -05:00
Clifford Yapp b5d3c54bc9 Try to get a look at the configured qt_build.cmake file as produced by MSVC CI runners 2023-12-18 20:03:49 -05:00
Clifford Yapp f8f1bc5be1 Quote CMAKE_COMMAND in case of spaces in paths 2023-12-18 12:06:19 -05:00
Clifford Yapp bfca445dfa Update bext manifold submodule to latest 2023-12-18 10:45:26 -05:00
f4alt 4355f15780 update submodule reference for appleseed 2023-12-06 09:02:08 -05:00
f4alt e8dd79ebf1 update NOTES url's 2023-12-06 08:57:56 -05:00
f4alt 8acda1ba26 appleseed depends on eigen 2023-12-06 08:57:30 -05:00
Clifford Yapp 653166ab5d Shorten config names 2023-12-01 11:55:01 -05:00
Clifford Yapp 1e3e39ee1a Chris reports issues building Debug on Windows - try adding configs for both Debug and Release to CI to see if we can spot issues. 2023-12-01 11:52:26 -05:00
f4alt aa3a7266ec point to our fork of appleseed 2023-12-01 08:28:57 -05:00
f4alt 3a0ec2db83 build appleseed without tools
there's some uglyness in here on windows that we'll probably
want to run down eventually (for tools like the denoiser). For now, just
punt and turn them off to get a clean build.
2023-12-01 08:26:01 -05:00
Clifford Yapp 064df41294 Need the XCB dev packages for Qt building 2023-11-29 11:06:48 -05:00
Clifford Yapp f9d668ca95 Another NOTES adjustment 2023-11-29 08:51:47 -05:00
Clifford Yapp 61fcdff5d0 Tweaks for NOTES file 2023-11-29 08:50:30 -05:00
Clifford Yapp cffda40fb3 Add tiff to GDAL deps, enable JPEG as part of the GDAL stack. 2023-11-29 08:42:52 -05:00
Clifford Yapp 407e36c4d0 We're not counting on the fortran parts of Eigen afaik, so we don't want to worry about it if we have a busted fortran compiler... 2023-11-29 08:36:22 -05:00
Clifford Yapp 3c424cb46a ALL isn't the right target here... 2023-11-29 08:30:26 -05:00
Clifford Yapp 27c3b51018 Try tweaking opennurbs_defines patch 2023-11-29 08:27:47 -05:00
Clifford Yapp f6ef868926 Looks like there's a v4 of checkout 2023-11-28 19:42:15 -05:00
Clifford Yapp 0cf3e09127 Add a Github Actions file for bext
Not at all sure how this is going to go - it's quite likely we won't be
able to do this (at least, with ENABLE_ALL=ON) once Appleseed and OSPray
are on, but for now let's see if we can have Github do build testing for
us when we update dependencies.
2023-11-28 19:35:02 -05:00
Clifford Yapp 3a094e18c9 Remove the non-CMake parts of the assetimport patch - not applying to the newer version. 2023-11-28 19:25:39 -05:00
Clifford Yapp 08e402cd73 Update URLs 2023-11-28 19:20:43 -05:00
Clifford Yapp e7f1390d17 Incorporate latest BRL-CAD change into patch 2023-11-08 09:51:56 -05:00
Clifford Yapp c646752092 For completeness, show the GDAL update in bext after BRL-CAD/gdal is updated. 2023-11-03 14:11:30 -04:00
Clifford Yapp 00ffbf0434 Update GDAL submodule reference 2023-11-03 14:09:19 -04:00
Clifford Yapp 23bb902bf6 Add some notes and examples on updating dependencies 2023-11-03 14:08:22 -04:00
Clifford Yapp 863f833b85 Update submodule references for AssetImport, LIEF and Qt 2023-11-03 13:54:42 -04:00
Clifford Yapp 2fde8fa13b Turn on appleseed git submodule logic 2023-10-30 12:49:35 -04:00
Clifford Yapp eb903dea68 Point appleseed submodule to the working archive 2023-10-30 12:25:13 -04:00
Clifford Yapp 32877632fb Update manifold submodule 2023-10-30 12:21:19 -04:00
Clifford Yapp bc8068290e Add Manifold to the bext repository 2023-10-30 11:43:46 -04:00
Clifford Yapp 81ba092910 Merge pull request #2 from brlcad/mac-fixes
few more Mac build fixes
2023-10-23 13:54:23 -04:00
Christopher Sean Morrison e40f7403f7 use cmake vars. use escapes to quell a warning 2023-10-23 01:12:51 -04:00
Clifford Yapp 77e453e93f Need to list TCL in deps for TCL_TARGET variable setting 2023-10-12 13:16:28 -04:00
Clifford Yapp 51605ecabe Merge pull request #1 from brlcad/patch-1
fix sub-cmake invocation in execute_process()
2023-10-12 12:52:43 -04:00
Christopher Sean Morrison 1af78b420a don't assume it's just cmake
Use a variable for the path/name of the cmake process.
2023-10-12 11:36:49 -04:00
Clifford Yapp 3c26b04211 Re-add tcl submodule pointing to latest RELEASE commit 2023-10-11 19:51:45 -04:00
Clifford Yapp 2e82ef6cef Remove Tcl submodule - having trouble updating
For some reason the status is reporting it pointing to the core tag,
rather than RELEASE...
2023-10-11 19:49:43 -04:00
Clifford Yapp 51c3f8052b Correct color 2023-10-11 14:11:38 -04:00
Clifford Yapp 283be11213 Adjust a few links 2023-10-11 10:42:49 -04:00
Clifford Yapp aaa40c251b Add some instructions for the dependencies DOT file 2023-10-11 10:29:57 -04:00
Clifford Yapp 1994011c7e Missed lmdb.deps file 2023-10-11 10:16:46 -04:00
Clifford Yapp 29547c2d96 Add remainder of deps files 2023-10-11 10:14:38 -04:00
Clifford Yapp f294e635cf Correct macro name 2023-10-11 10:02:08 -04:00
Clifford Yapp 0a1fabbf55 Add some info about changing branch targets for submodules. 2023-10-11 09:50:39 -04:00
Clifford Yapp 3f618421ed Update some more deps listings 2023-10-11 09:43:00 -04:00
Clifford Yapp 6d75bf6352 Start a file with some notes on adding submodules - we're going to need to document how this works in detail. 2023-10-11 09:40:23 -04:00
Clifford Yapp ff306731f6 Try again, this time using 'git submodule add -b RELEASE https://github.com/BRL-CAD/tcl.git' 2023-10-11 09:16:32 -04:00
Clifford Yapp 4de75d599f Hmm, still getting the wrong branch 2023-10-11 09:12:03 -04:00
Clifford Yapp 12d47fb2bb Re-add Tcl submodule 2023-10-11 08:59:23 -04:00
Clifford Yapp ec4966a47f Clear Tcl submodule 2023-10-11 08:56:10 -04:00
Clifford Yapp 164a8b316c Add a few more directories to the new deps setup 2023-10-11 00:42:29 -04:00
Clifford Yapp f1f74a19a7 First stages of generating graphviz dot file - still haven't changed over all dependencies to new logic yet. 2023-10-11 00:30:44 -04:00
Clifford Yapp 400846ffa2 Start working on a graphviz dot file to visualize dependency trees 2023-10-10 23:20:48 -04:00
Clifford Yapp 93d63d9c31 Pass the build static libs flag to openNURBS 2023-10-06 16:45:35 -04:00
Clifford Yapp cec7700615 Make it easier to skip some of the optional BRL-CAD dependencies. 2023-10-05 15:34:09 -04:00
Clifford Yapp 0f48167965 For now, disable OSL shaders and tests build
The tests make sense to turn off, but it's less clear long term if we
really want to disable the shader building.

The immediate motivation is that oslc isn't running correctly in the
build on Windows.  So far it looks as if this is because the directory
containing the oslc.exe executable doesn't have all the dlls it needs -
if we copy oslc.exe and its dlls into the bin directory for
bext_output/install we do get as far as printing the help message (which
does NOT happen with its current location.)  We can probably get past
this by patching the OSL build to copy the dll files from bext_output
into the right place up front, but not bothering with that right now
since it's not 100% sure yet that we need the shaders build for our
purposes.
2023-10-05 12:39:45 -04:00
Clifford Yapp 6b297ce98c Correct names in README 2023-09-29 15:04:17 -04:00
Clifford Yapp 88f88424a5 Don't bother with opencv .gitignore 2023-09-29 13:50:30 -04:00
Clifford Yapp 7d7635f7e1 Add OpenEXR to the OpenColorIO dependency list 2023-09-29 09:37:47 -04:00
Clifford Yapp 67a8798132 This directory holds both install and noinstall contents, so name it generically 2023-09-28 23:32:20 -04:00
Clifford Yapp 7af56f874d Correct rpath setting for other noinstall tools 2023-09-28 23:28:53 -04:00
Clifford Yapp 379d51d2d7 Since we're already in a subdir, no need for the ext prefix 2023-09-28 23:10:35 -04:00
Clifford Yapp f5f7605877 xmltools is a noinstall build 2023-09-28 23:01:51 -04:00
Clifford Yapp c7ee093617 Turn off OSPRay examples - requires glfw3 2023-09-28 19:12:49 -04:00
Clifford Yapp 7438e0ba6e Try shared libraries for ncurses 2023-09-28 07:56:02 -04:00
Clifford Yapp 3a3a06f6c5 Just use the Qt internal solution, if that ends up working
Looking to be some trouble to wire our zlib/png into the build, so just
go with Qt's own solution to the issue (if it works.)
2023-09-27 21:36:24 -04:00
Clifford Yapp cb13149531 If we're going to patch qtbase, we need to copy it 2023-09-27 21:11:13 -04:00
Clifford Yapp 3074ac7213 Print output on success as well. 2023-09-27 20:59:57 -04:00
Clifford Yapp 67fe3a3a9c Use LD_LIBRARY_PATH for Qt build step as well. 2023-09-27 20:43:32 -04:00
Clifford Yapp 7eba290299 Call out system zlib and png in Qt configure 2023-09-27 20:25:16 -04:00
Clifford Yapp 0040a59fb8 Patch our modded FindZLIB and FindPNG into Qt
Not 100% sure this will be enough - to do this right we also need to get
ZLIB_ROOT and PNG_ROOT into the Qt configure - but if I'm understanding
correctly that that configure is triggering a CMake process then we want
it looking for our filenames.
2023-09-27 20:16:39 -04:00
Clifford Yapp 8aed6ae33b Start a file for setup instructions
The quick start assumes a system with the necessary dependencies in
place, but unlike the old-school BRL-CAD build we can't stand up these
software stacks without a sizable set of development packages in place.
Need to collect the instructions on how to do that somewhere, since we
aren't aiming to bootstrap things like fontconfig/freetype or XCB X11.
2023-09-27 20:07:31 -04:00
Clifford Yapp ab5a8ddc5e Check return for other steps as well 2023-09-27 19:44:32 -04:00
Clifford Yapp 0b192b855b Check return value of execute_process for qt configure 2023-09-27 19:36:44 -04:00
Clifford Yapp 52ae347952 Adjustments for OSL program linking
This likely needs more refinement for the non-ENABLE_ALL case, but looking like
we need to explicitly link in LLVMSupport and zlib
2023-09-27 10:10:01 -04:00
Clifford Yapp 233489de4b Need our FindZLIB for OSL as well. 2023-09-27 07:28:13 -04:00
Clifford Yapp 0f7ea2ea5c If asset import is going to use external pugixml, reorder and flag for BRLCAD 2023-09-26 20:56:15 -04:00
Clifford Yapp c741da34d2 Testing on a vanilla Ubuntu VM is helpful - patch minizip-ng to use the modded FindZLIB that looks for z_brl 2023-09-26 20:52:14 -04:00
Clifford Yapp e5e3cdfd2f Look for OpenEXR, not Imath 2023-09-26 09:59:19 -04:00
Clifford Yapp a43472c05f Look for OpenEXR, not Imath 2023-09-25 21:06:29 -04:00
Clifford Yapp f47f7e3635 We want to use find_package on Windows as well. 2023-09-25 14:15:35 -04:00
Clifford Yapp 683f1cd35e Cast to int to help fmt figure out what to do with these... 2023-09-25 13:32:05 -04:00
Clifford Yapp 42b642d827 On Windows key off of FLEX_BLD, since winflexbison does both... 2023-09-25 13:14:26 -04:00
Clifford Yapp 7756abc26f Explicitly look for win_* versions of flex/bison 2023-09-25 12:02:43 -04:00
Clifford Yapp 326dc9b364 Rather than changing component listings, use new lookup for Boost 2023-09-25 11:55:04 -04:00
Clifford Yapp 10928ea64e Our bundled Boost is newer - use the new methodology 2023-09-25 11:35:51 -04:00
Clifford Yapp 4a52c78dc5 Not creating a python.lib file - add declspec logic 2023-09-25 11:20:03 -04:00
Clifford Yapp b19d0d4857 adjustments to opencolorio build 2023-09-25 11:01:43 -04:00
Clifford Yapp 9e9c70b63c check if we have the target before adding to the link libraries 2023-09-25 10:13:14 -04:00
Clifford Yapp e61ca03011 See if we can use the copy of pugixml we're building for assetimport 2023-09-23 11:29:49 -04:00
Clifford Yapp 673cf5e019 Don't treat Qt6Svg separately, dependency wise - for us it's basically a part of the Qt build. 2023-09-23 10:08:22 -04:00
Clifford Yapp 244acf7d55 Have opencolorio link zstd 2023-09-23 10:05:00 -04:00
Clifford Yapp 3b25e1e2fa Couple fixes to CMake logic 2023-09-22 18:38:02 -04:00
Clifford Yapp bf3df6058b Don't special case PATCH in the dependencies
Got bitten with winflexbison, so that's a good hint to do what's cleaner
in the first place - treat patch the way we do any other subproject.
2023-09-22 18:33:07 -04:00
Clifford Yapp d34700b6f8 Patch comes before flexbison 2023-09-22 16:46:59 -04:00
Clifford Yapp 43f44fc85b Fix Appleseed dependency on ONETBB 2023-09-22 16:31:04 -04:00
Clifford Yapp 93c54e18ea Try using ncurses with ISPC 2023-09-22 15:01:01 -04:00
Clifford Yapp c15e5496de This generation step is failing on MSVC - see if we can just disable it. Excluding the custom rule from the target in Visual Studio did allow the rest of the LLVM build to succeed. 2023-09-22 12:55:26 -04:00
Clifford Yapp db7401ae04 Do the same for INCLUDEDIR - append :PATH suffix 2023-09-22 12:50:06 -04:00
Clifford Yapp 0ce18f4639 Specify LIBDIR is a PATH
Per a note in libjpeg's building instructions:

If setting one of these directory variables to a relative path using the
CMake command line, you must specify that the variable is of type `PATH`.
For example:

    cmake -G"{generator type}" -DCMAKE_INSTALL_LIBDIR:PATH=lib {source_directory}

Otherwise, CMake will assume that the path is relative to the build directory
rather than the install directory.
2023-09-22 12:47:18 -04:00
Clifford Yapp 3d7e32dd3d Try to more uniformly set LIB_DIR on installation 2023-09-22 12:01:32 -04:00
Clifford Yapp 9f96916716 Avoid having git status check submodules
For this repository, the files were are maintaining are not the submodules but
the build logic and patch files.  If we've cloned all the submodules the file
hierarchy is rather large and a status check can be needlessly slow - use the
ignore submodule directive to focus the command on the relevant parts of the
repository.
2023-09-22 11:22:50 -04:00
Clifford Yapp d7ea9b12b4 Add an integrity check to make sure we're adding subdirectories in the right order according to the dependency declarations. 2023-09-22 11:17:22 -04:00
Clifford Yapp 39c58e9921 Boost needs to come before OpenImageIO 2023-09-22 10:51:02 -04:00
Clifford Yapp 44773d6927 See if we can turn off ZSTD for our LLVM use case
Yikes.  ZSTD is causing linking failures when trying to build on
Windows, and hunting around online finds a long history of problems with
the CMake build setup for this use case... see, for example:

https://github.com/llvm/llvm-project/issues/58558

Not quite sure yet what properties aren't getting set on the imported
targets to cause NOTFOUND entries to try and get linked.  If we do need
ZSTD I'll have to try and follow the logic flow through the LLVM CMake
and prepare a patch.
2023-09-21 21:12:42 -04:00
Clifford Yapp 7bd5a3e976 Fix upstream has ICU working - restore plief
https://github.com/lief-project/LIEF/issues/969 was resolved, and that
was the only known breakage with plief - restore.  However, at least for
the moment we'll leave patchelf in the tree (commented out) for
insurance.
2023-09-21 20:07:38 -04:00
Clifford Yapp 377ff05fc8 For the moment, use master instead of RELEASE for LIEF while we're working out issues. 2023-09-21 19:42:07 -04:00
Clifford Yapp 6f63e2f9a3 ISPC apparently wants the AArch64 backend 2023-09-21 16:06:38 -04:00
Clifford Yapp 40819ab189 Explain why this particular setting is in a cache file 2023-09-21 15:00:52 -04:00
Clifford Yapp 21065f656f Python isn't just an ISPC problem - needed by LLVM
Arrgh.  LLVM's CMake logic is executing python scripts to do things like
path manipulation.  Short of trying to rework all their python scripts
into native CMake and get the patches accepted, we're going to need
Python to do BOTH the Appleseed and OSPRay builds.
2023-09-21 14:45:17 -04:00
Clifford Yapp 3bf778b276 Try to limit the targets LLVM builds for - need to figure out what we actually need. Starting with ARM and X86. 2023-09-21 14:31:15 -04:00
Clifford Yapp 8eabc42641 Adjust z_brl patch for LLVM 2023-09-21 14:00:00 -04:00
Clifford Yapp 7079e41cf7 Use lower case zstd 2023-09-21 11:55:35 -04:00
Clifford Yapp 2a940d3492 Try turning on optimized tablegen 2023-09-21 11:04:04 -04:00
Clifford Yapp 71b4edac9e LLVM linking is memory hungry - per https://llvm.org/docs/CMake.html use LLVM_PARALLEL_JOBS to throttle. 2023-09-21 10:55:55 -04:00
Clifford Yapp 3f9c8c052c Add ZSTD to the llvm target list 2023-09-21 10:27:33 -04:00
Clifford Yapp a34245bab4 Adjust pystring CMake file 2023-09-21 09:03:42 -04:00
Clifford Yapp 16175fd4e1 Fix oneTBB target name 2023-09-20 22:00:12 -04:00
Clifford Yapp 62598fdc01 Adjust/fix poly2tri patch file 2023-09-20 21:51:06 -04:00
Clifford Yapp 74eaa00d11 rkcommon needs TBB_ROOT 2023-09-20 21:38:22 -04:00
Clifford Yapp c48c639999 Mark new submodules as shallow 2023-09-20 21:18:38 -04:00
Clifford Yapp ca5fe9ebca Remove doc submodule 2023-09-20 20:59:59 -04:00
Clifford Yapp 3814669101 Add the OSPRay dependencies and OSPRay itself 2023-09-20 20:55:31 -04:00
Clifford Yapp e050f65ae7 Put back patchelf until LIEF/plief bug is resolved
Welp.  Since patchelf works, restore it until the LIEF+icv issue is
sorted out.
2023-09-20 20:53:51 -04:00
Clifford Yapp 02004553ca Add a note about the xerces-c + icu situation
I thought it was a problem on either the xerces-c or icu end, but it
looks like the real problem may be with LIEF - BRL-CAD uses it to assign
RPATH values, and the libicuuc.so file produced by that process didn't
work whereas the same operation performed with patchelf produced a
working .so output.  Reported upstream at
https://github.com/lief-project/LIEF/issues/969
2023-09-20 18:52:27 -04:00
Clifford Yapp 929c181281 GROUPS can take multiple arguments 2023-09-20 15:22:22 -04:00
Clifford Yapp 24074b261f xerces-c needs to be able to find both icu libs
Problem was a little different than I thought - xerces-c wasn't
correctly linking to the icu libraries because libicuuc needs its data
library, and without the rpath help it can't find it in the non-standard
location when it comes time to link - problem manifested when xerces-c
was built with its test applications, so not a BRL-CAD specific problem.
Setting LD_LIBRARY_PATH also resolved the issue, making it clear the
problem was finding the needed libraries.

Needs a full clean build test, but setting the install RPATH for
xerces-c seems to work in initial testing.
2023-09-20 14:30:37 -04:00
Clifford Yapp 263d95e166 Ubuntu source pkg build of this lib mentions not using the renaming option 2023-09-20 14:06:43 -04:00
Clifford Yapp 37afe79b20 Add control files for Appleseed build 2023-09-20 00:19:13 -04:00
Clifford Yapp 9c8585d2af Add Embree for Appleseed (and eventually OSPRay) 2023-09-19 23:22:04 -04:00
Clifford Yapp 839d69ca04 Get OSL building (apparently we need more of LLVM than previous settings were installing... 2023-09-19 22:59:51 -04:00
Clifford Yapp 4c39d0140b Add OpenColorIO and OpenImageIO for Appleseed 2023-09-19 21:32:29 -04:00
Clifford Yapp 83a85bad6d Add OpenEXR for Appleseed 2023-09-19 21:13:36 -04:00
Clifford Yapp 743ce65e8d Explain what happens after boost fork is updated. 2023-09-19 20:42:44 -04:00
Clifford Yapp 7b47e8f1e6 Add an explanation for how we handle the upstream boost and our fork of it to provide a usable CMake build of Boost for this repo. 2023-09-19 20:39:11 -04:00
Clifford Yapp 6a94470f5a Add Boost for Appleseed
Per the following:

ldd *boost*.so |grep -v linux-vdso|grep -v libstdc|grep -v libc|grep -v libm|grep -v ld-linux|grep -v libgcc

ALl the library linkages seem to be local- we've disable bzip2 and lzma,
as well as using the bundled zlib, zstd and icu.
2023-09-19 20:25:07 -04:00
Clifford Yapp 57a506219a Enable git check 2023-09-19 16:55:15 -04:00
Clifford Yapp 4636bcc964 Add LLVM for Appleseed (and eventually OSPRay) 2023-09-19 16:49:52 -04:00
Clifford Yapp e7d217ad9c Add oneTBB for Appleseed (and eventually OSPRay) 2023-09-19 10:22:33 -04:00
Clifford Yapp 968a7f915d If we're going to add libtiff, GDAL should use it too. 2023-09-19 10:04:13 -04:00
Clifford Yapp e0981a5884 Add git init function call for jpeg 2023-09-19 10:01:23 -04:00
Clifford Yapp 1a9eaff9f8 Add libtiff for Appleseed 2023-09-19 10:01:09 -04:00
Clifford Yapp 102e96efdd Flag Appleseed for libpng 2023-09-19 09:50:31 -04:00
Clifford Yapp 0fcadf6ed1 Add libjpeg-turbo (for Appleseed) 2023-09-19 09:49:52 -04:00
Clifford Yapp 5f4bdd7f0d More README adjustments 2023-09-18 23:06:10 -04:00
Clifford Yapp 99b039de81 Adjust README 2023-09-18 23:00:40 -04:00
Clifford Yapp 007857634b For our purpose here, shallow clones are preferred 2023-09-18 22:40:47 -04:00
Clifford Yapp 9d343ed826 Experiment with shallow cloning of submodules
We're essentially using submodules here as source management, not really
intending to do major development within the submodule repositories.
That being the case, let's see if shallow clones can do the job with
less time and space.
2023-09-18 22:13:28 -04:00
Clifford Yapp 4163a3fef1 xerces-c needs icu, at least on some platforms 2023-09-18 22:09:03 -04:00
Clifford Yapp 06f427cf5c Unless we actually need it, turn of network support in xerces-c 2023-09-18 21:35:01 -04:00
Clifford Yapp fd003224f6 Add various XML libraries for Appleseed 2023-09-18 21:24:17 -04:00
Clifford Yapp a98783681b Add fmt, yaml-cpp and pystring for Appleseed 2023-09-18 21:05:59 -04:00
Clifford Yapp 32bf25c31c Add libdeflate (for Appleseed) 2023-09-18 20:54:48 -04:00
Clifford Yapp 5c3a79d396 Only copy the license if the folder is populated 2023-09-18 20:49:57 -04:00
Clifford Yapp 431be0ba23 Add lz4 compression library (for Appleseed) 2023-09-18 20:49:25 -04:00
Clifford Yapp 95f0d972e5 Add minizip-ng (for Appleseed) 2023-09-18 20:44:20 -04:00
Clifford Yapp d61a8d3b21 Add flex and bison for Appleseed
Unfortunately, flex and bison still use autotools to build, which may be
problematic on some systems... need to figure out what to do if that
proves to be an issue.
2023-09-18 19:55:19 -04:00
Clifford Yapp 3831566982 Start setting the stage for Appleseed/OSPRay 2023-09-18 18:52:38 -04:00
Clifford Yapp aecf03e24a Add a note about why we're patching lemon and what we need to do instead. 2023-09-18 17:27:46 -04:00
Clifford Yapp e9bbb3f165 Patch to disable parts of re2c build needing Python 2023-09-18 17:09:04 -04:00
Clifford Yapp c2eb239da2 Like LIEF, don't build the plief tool on platforms where we don't need it. 2023-09-18 16:45:34 -04:00
Clifford Yapp 0d3ae5240d Poly2Tri needs the patch tool 2023-09-18 16:28:34 -04:00
Clifford Yapp c496ccb189 Would help to apply the patch on Windows... 2023-09-18 16:04:25 -04:00
Clifford Yapp fbe282c331 Release tarball has populated manifest.uuid
Looks as if this needs to be present or Windows Tk build tries to
generate it.
2023-09-18 16:02:14 -04:00
Clifford Yapp 9b06b06c67 Remove .git directory from tk src folder
Not 100% sure yet, but it looks as if the Windows Tk build is doing
something different if the source directory looks like a git repository.
2023-09-18 15:28:30 -04:00
Clifford Yapp 07566fd1f1 Patch SQLite find logic for PROJ 2023-09-18 15:18:13 -04:00
Clifford Yapp aef908c072 Adjust readme 2023-09-18 14:49:07 -04:00
Clifford Yapp 0ea850b5f4 If we're patching, need to copy source dir 2023-09-18 14:25:18 -04:00
Clifford Yapp 0676c5e399 Pull latest versions from BRL-CAD 2023-09-18 13:56:10 -04:00
Clifford Yapp c9972f8935 Add Find modules 2023-09-18 13:52:41 -04:00
Clifford Yapp 86689dcf9e Add a note that recurse-submodules is optional 2023-09-18 13:46:41 -04:00
Clifford Yapp 43341b67b0 Fix directories, remove DEPENDS from ExternaProject_Add - the latter are handled by the ExternalProject_Add step dependencies 2023-09-18 13:44:12 -04:00
Clifford Yapp 7aa219949f Experiment with lazily populating git submodules based on configure settings 2023-09-18 13:39:34 -04:00
Clifford Yapp 652a1f4877 Make lemon match current version in BRL-CAD (temporary)
wfobj's obj_grammer.yy doesn't work with the newest lemon - need to fix
that, but until we do add a patch to step it down to the working
version.
2023-09-17 21:02:41 -04:00
Clifford Yapp 8d9fe660b3 Add Qt6 2023-09-17 20:45:52 -04:00
Clifford Yapp b7b9316883 Set up Tcl/Tk components 2023-09-17 20:28:03 -04:00
Clifford Yapp 32361423bf Make sure all the projects have a URL 2023-09-17 14:57:00 -04:00
Clifford Yapp 1471ac8ace Add other BRL-CAD dependencies - should just leave Tcl and Qt 2023-09-17 14:54:42 -04:00
Clifford Yapp e6399eb176 Add openNURBS 2023-09-17 14:35:10 -04:00
Clifford Yapp 71c34c0acb Add OpenMesh 2023-09-17 14:27:54 -04:00
Clifford Yapp 1e4968a4f8 Enable OpenCV 2023-09-17 13:03:35 -04:00
Clifford Yapp 1782525344 Add Asset Import Library 2023-09-17 12:56:43 -04:00
Clifford Yapp ccae111380 Add GDAL and its dependencies 2023-09-17 12:45:56 -04:00
Clifford Yapp 20f3eab18a Add STEPcode 2023-09-17 12:15:32 -04:00
Clifford Yapp af0f9188bc Add Eigen 2023-09-17 12:02:47 -04:00
Clifford Yapp a2d320d9f8 Add LMDB 2023-09-17 11:51:44 -04:00
Clifford Yapp 86ad7a1a6e Add regex and linenoise 2023-09-17 11:34:47 -04:00
Clifford Yapp 1ae5b1b532 Add netpbm to the build
The BRL-CAD github netpbm repository is being used to hold our mods in a
"brlcad" branch.  The netpbm repository is arguably the cleanest
solution thus far to the problem of maintaining our netpbm mods - it
simplified the 10.73.42 -> 10.73.43 check considerably.
2023-09-17 01:33:41 -04:00
Clifford Yapp de54617f0c Enable the zlib and png builds 2023-09-17 00:47:48 -04:00
Clifford Yapp 55fef0df33 Populate top level CMake modules directory 2023-09-16 23:39:55 -04:00
Clifford Yapp dfb7832267 In the case of these two, find_program is enough 2023-09-16 23:38:01 -04:00
Clifford Yapp 5a90876f5f Add xmltools 2023-09-16 23:26:04 -04:00
Clifford Yapp 83d5d17256 Add strclear utility 2023-09-16 23:20:26 -04:00
Clifford Yapp 05f70c0c46 Add plief utilty for RPATH manipulation using LIEF 2023-09-16 22:44:32 -04:00
Clifford Yapp c53167db54 Add perplex scanner generator 2023-09-16 22:34:45 -04:00
Clifford Yapp 1e7708183a Default lemon location for lempar.c is next to binary 2023-09-16 22:20:43 -04:00
Clifford Yapp 984f05bf9a Add re2c lexer generator 2023-09-16 22:11:10 -04:00
Clifford Yapp 1fdddeab2e Add LEMON parser generator 2023-09-16 22:04:20 -04:00
Clifford Yapp 7048eeaac4 Fix formatting of message 2023-09-16 19:58:46 -04:00
Clifford Yapp 4a076aa916 Add a check that the repository was cloned properly, and tell the user what to do if it wasn't 2023-09-16 19:52:38 -04:00
Clifford Yapp 56ebe22921 Add LIEF submodule, using a branch as target
Adding LIEF, we want to target a release rather than the latest main
branch.  However, since the upstream doesn't use a release branch the
way BRL-CAD does and git submodules can't point at tags, we need to do
something else.

Taking advantage of the fact that we're using a BRL-CAD/LIEF fork of the
upstream https://github.com/lief-project/LIEF repository, we add in our
fork a RELEASE branch that (currently) points to the v0.13.2 tag. From
a clone of our fork:

git checkout 0.13.2
git switch -c RELEASE
git push --set-upstream origin RELEASE

Then, when adding LIEF as a submodule to bext, we target the RELEASE
branch:

git submodule add -b RELEASE https://github.com/BRL-CAD/LIEF

What this should let us do is update our fork's RELEASE branch as needed
to target new LIEF releases, with our submodule tracking our fork's
RELEASE branch rather than the live development branch.

TODO - establish the correct mechanism for updating the RELEASE branch
in our LIEF fork - probably will involve deleting and re-creating the
branch in the github repo, but may need a little experimentation.
2023-09-16 19:41:57 -04:00
Clifford Yapp f768503f55 Set up a .gitignore file
Note - deliberately leaving .clang-format off this list since some of
the repositories we are interested in expect to have this file present.
2023-09-16 19:12:18 -04:00
Clifford Yapp 760ed788fd Enable AStyle build and submodule. 2023-09-16 19:10:56 -04:00
Clifford Yapp e2ea3238f6 First test of using git submodule for the sources
Various experiments with earlier forms of this repository indicated that
as it grows, the performance of git will begin to get unwieldy as we
include more and more large source trees in one repo.  Instead, let's
see if modules can work for this particular use case.

However, rather than point directly at 3rd party repositories, we're
going to establish one level of indirection by making BRL-CAD project
forks of the upstream repositories (or, if the parent project isn't set
up to fork, establish our own as a place to hold that project's files
and updates.)  This gives us a degree of insulation should the upstream
project disappear, but (for those projects were we can properly fork)
also gives us an easy mechanism to pull updates from upstream into our
local forks.

This commit is the first test of the pattern in that it points to a
BRL-CAD/patch fork of https://github.com/shannonbooth/patch - in this
case we simply point at the default git submodule target, since this
project doesn't (yet) have a release we are targeting.
2023-09-16 18:55:10 -04:00
Clifford Yapp cb119fbf45 Initialize with README.md 2023-09-16 18:26:39 -04:00
1401 changed files with 50715 additions and 260459 deletions

No files matched your search

+304
View File
@@ -0,0 +1,304 @@
# This file defines Continuous Integration (CI) tests for bext using the
# Github Actions framework. Currently it defines configurations for Windows,
# Linux and OSX.
#
# For more information about available platforms for testing, see:
#
# https://docs.github.com/en/free-pro-team@latest/actions/reference/specifications-for-github-hosted-runners
#
# The general rule when building in CI is to go more verbose in output settings
# rather than less, since iterative debugging isn't practical.
#
# We generally want to avoid parallel building - while that will sometimes
# catch dependency issues, it also makes the outputs far harder to interpret
# when there is a problem. However, the full BRL-CAD dependency stack is quite
# a long build, so in this case we are experimenting with it to see if it can
# help our build times on the runners.
name: BRL-CAD
on: [push]
jobs:
windows_ninja_release:
name: MSVC - Ninja Release build
runs-on: windows-latest
strategy:
fail-fast: true
steps:
- name: Setup - CMake
uses: lukka/get-cmake@latest
- name: Checkout
uses: actions/checkout@v4
- name: Add github workspace to path
# https://github.community/t/deprecated-add-path/136621
run: echo "$ENV{GITHUB_WORKSPACE}" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Add cl.exe to PATH
uses: ilammy/msvc-dev-cmd@v1
- name: Configure
shell: powershell
run: |
cmake -S . -B build -G Ninja -DCMAKE_C_COMPILER="cl.exe" -DCMAKE_CXX_COMPILER="cl.exe" -DCMAKE_BUILD_TYPE=Release -DENABLE_ALL=ON -DGIT_SHALLOW_CLONE=ON
# We do the following in order to help ensure files are "flushed"
# to disk before compilation is attempted
# https://superuser.com/a/1553374/1286142
powershell Write-VolumeCache C
powershell Write-VolumeCache D
- name: Build
shell: powershell
run: |
cd build; ninja -j2 -v
# TODO - if the loading isn't too extreme, it would be good to do a BRL-CAD
# build against the output of this...
# - name: Build - BRL-CAD
# run: |
# # TODO - figure out how to do this...
windows_ninja_debug:
name: MSVC - Ninja Debug build
runs-on: windows-latest
strategy:
fail-fast: true
steps:
- name: Setup - CMake
uses: lukka/get-cmake@latest
- name: Checkout
uses: actions/checkout@v4
- name: Add github workspace to path
# https://github.community/t/deprecated-add-path/136621
run: echo "$ENV{GITHUB_WORKSPACE}" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Add cl.exe to PATH
uses: ilammy/msvc-dev-cmd@v1
- name: Configure
shell: powershell
run: |
cmake -S . -B build -G Ninja -DCMAKE_C_COMPILER="cl.exe" -DCMAKE_CXX_COMPILER="cl.exe" -DCMAKE_BUILD_TYPE=Debug -DENABLE_ALL=ON -DGIT_SHALLOW_CLONE=ON
# We do the following in order to help ensure files are "flushed"
# to disk before compilation is attempted
# https://superuser.com/a/1553374/1286142
powershell Write-VolumeCache C
powershell Write-VolumeCache D
- name: Build
shell: powershell
run: |
cd build; ninja -j2 -v
# TODO - if the loading isn't too extreme, it would be good to do a BRL-CAD
# build against the output of this...
# - name: Build - BRL-CAD
# run: |
# # TODO - figure out how to do this...
windows_std_tools_release:
name: MSVC - Standard Tools Release Build
runs-on: windows-latest
strategy:
fail-fast: true
steps:
- name: Setup - CMake
uses: lukka/get-cmake@latest
- name: Checkout
uses: actions/checkout@v4
- name: Add github workspace to path
# https://github.community/t/deprecated-add-path/136621
run: echo "$ENV{GITHUB_WORKSPACE}" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
- name: Configure
shell: cmd
run: |
call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat"
cmake -S . -B build -DENABLE_ALL=ON -DGIT_SHALLOW_CLONE=ON -DCMAKE_BUILD_TYPE=Release
# We do the following in order to help ensure files are "flushed"
# to disk before compilation is attempted
# https://superuser.com/a/1553374/1286142
powershell Write-VolumeCache C
powershell Write-VolumeCache D
- name: Build
shell: cmd
run: |
call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat"
cmake --build build --config Release -j2
windows_std_tools_debug:
name: MSVC - Standard Tools Debug Build
runs-on: windows-latest
strategy:
fail-fast: true
steps:
- name: Setup - CMake
uses: lukka/get-cmake@latest
- name: Checkout
uses: actions/checkout@v4
- name: Add github workspace to path
# https://github.community/t/deprecated-add-path/136621
run: echo "$ENV{GITHUB_WORKSPACE}" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
- name: Configure
shell: cmd
run: |
call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat"
cmake -S . -B build -DENABLE_ALL=ON -DGIT_SHALLOW_CLONE=ON -DCMAKE_BUILD_TYPE=Debug
# We do the following in order to help ensure files are "flushed"
# to disk before compilation is attempted
# https://superuser.com/a/1553374/1286142
powershell Write-VolumeCache C
powershell Write-VolumeCache D
- name: Build
shell: cmd
run: |
call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat"
cmake --build build --config Debug -j2
linux_release:
name: Ubuntu GCC Release Build
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- name: Setup - CMake
uses: lukka/get-cmake@latest
- name: Checkout
uses: actions/checkout@v4
- name: Setup - System
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo apt-get update
# Install XCB/OpenGL dev pkgs for Qt - see:
# https://wiki.qt.io/Building_Qt_6_from_Git
# https://doc.qt.io/qt-6/linux-requirements.html
sudo apt-get install libfontconfig1-dev libfreetype6-dev libx11-dev libx11-xcb-dev libxext-dev libxfixes-dev libxi-dev libxrender-dev libxcb1-dev libxcb-cursor-dev libxcb-glx0-dev libxcb-keysyms1-dev libxcb-image0-dev libxcb-shm0-dev libxcb-icccm4-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-render-util0-dev libxcb-util-dev libxcb-xinerama0-dev libxcb-xkb-dev libxkbcommon-dev libxkbcommon-x11-dev
sudo apt-get install libgl-dev
sudo apt-get install libinput-dev
sudo apt-get clean
- name: Configure
run: |
export PATH=$ENV{GITHUB_WORKSPACE}:$PATH
cmake -S . -G Ninja -B build -DENABLE_ALL=ON -DGIT_SHALLOW_CLONE=ON -DCMAKE_BUILD_TYPE=Release
- name: Build
run: |
export PATH=$ENV{GITHUB_WORKSPACE}:$PATH
cd build && ninja -j2 -v
linux_debug:
name: Ubuntu GCC Debug Build
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- name: Setup - CMake
uses: lukka/get-cmake@latest
- name: Checkout
uses: actions/checkout@v4
- name: Setup - System
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo apt-get update
# Install XCB/OpenGL dev pkgs for Qt - see:
# https://wiki.qt.io/Building_Qt_6_from_Git
# https://doc.qt.io/qt-6/linux-requirements.html
sudo apt-get install libfontconfig1-dev libfreetype6-dev libx11-dev libx11-xcb-dev libxext-dev libxfixes-dev libxi-dev libxrender-dev libxcb1-dev libxcb-cursor-dev libxcb-glx0-dev libxcb-keysyms1-dev libxcb-image0-dev libxcb-shm0-dev libxcb-icccm4-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-render-util0-dev libxcb-util-dev libxcb-xinerama0-dev libxcb-xkb-dev libxkbcommon-dev libxkbcommon-x11-dev
sudo apt-get install libgl-dev
sudo apt-get install libinput-dev
sudo apt-get clean
- name: Configure
run: |
export PATH=$ENV{GITHUB_WORKSPACE}:$PATH
# We're running into disk space issues with the Linux debug build, so turn off GDAL
cmake -S . -G Ninja -B build -DENABLE_ALL=ON -DGIT_SHALLOW_CLONE=ON -DCMAKE_BUILD_TYPE=Debug -DUSE_GDAL=OFF
- name: Build
run: |
export PATH=$ENV{GITHUB_WORKSPACE}:$PATH
cd build && ninja -j2 -v
osx_release:
name: macOS Clang Release Build
runs-on: macos-latest
strategy:
fail-fast: true
steps:
- name: Setup - CMake
uses: lukka/get-cmake@latest
- name: Checkout
uses: actions/checkout@v4
- name: Install Xquartz
run: |
brew install xquartz --cask
- name: Configure
run: |
export PATH=$ENV{GITHUB_WORKSPACE}:$PATH
export CC=clang
export CXX=clang++
cmake -S . -G Ninja -B build -DENABLE_ALL=ON -DGIT_SHALLOW_CLONE=ON -DCMAKE_BUILD_TYPE=Release
- name: Build
run: |
export PATH=$ENV{GITHUB_WORKSPACE}:$PATH
cd build && ninja -j2 -v
osx_debug:
name: macOS Clang Debug Build
runs-on: macos-latest
strategy:
fail-fast: true
steps:
- name: Setup - CMake
uses: lukka/get-cmake@latest
- name: Checkout
uses: actions/checkout@v4
- name: Install Xquartz
run: |
brew install xquartz --cask
- name: Configure
run: |
export PATH=$ENV{GITHUB_WORKSPACE}:$PATH
export CC=clang
export CXX=clang++
cmake -S . -G Ninja -B build -DENABLE_ALL=ON -DGIT_SHALLOW_CLONE=ON -DCMAKE_BUILD_TYPE=Debug
- name: Build
run: |
export PATH=$ENV{GITHUB_WORKSPACE}:$PATH
cd build && ninja -j2 -v
+56
View File
@@ -0,0 +1,56 @@
# The purpose of this particular test definition is to support on-demand
# interactive command shells. We sometimes see problems that occur only in the
# Github Runner environments, and in order to explore what is happening we need
# an interactive prompt (the alternative is hours-per-cycle submit and test
# loops, which doesn't scale at all.)
#
# Unlike the other BRL-CAD tests, this one is started manually from the Github
# website. For more information see https://mxschmitt.github.io/action-tmate/
#
# The "recommended" way to use this action is for the dev to make a fork of
# the repository, alter the configure and/or build logic below for their
# particular use case (the example below is a libged-only build used to zero
# in on a specific libged behavior) before running.
name: BRL-CAD Linux Interactive Debugging
on: [workflow_dispatch]
jobs:
linux:
name: Ubuntu Latest GCC
runs-on: ubuntu-latest
steps:
- name: Setup - CMake
uses: lukka/get-cmake@latest
- name: Setup - System
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo apt-get update
# Install XCB/OpenGL dev pkgs for Qt - see:
# https://wiki.qt.io/Building_Qt_6_from_Git
# https://doc.qt.io/qt-6/linux-requirements.html
sudo apt-get install libfontconfig1-dev libfreetype6-dev libx11-dev libx11-xcb-dev libxext-dev libxfixes-dev libxi-dev libxrender-dev libxcb1-dev libxcb-cursor-dev libxcb-glx0-dev libxcb-keysyms1-dev libxcb-image0-dev libxcb-shm0-dev libxcb-icccm4-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-render-util0-dev libxcb-util-dev libxcb-xinerama0-dev libxcb-xkb-dev libxkbcommon-dev libxkbcommon-x11-dev
sudo apt-get install libgl-dev
sudo apt-get install libinput-dev
sudo apt-get clean
- name: Checkout
uses: actions/checkout@v4
- name: Build Directory setup
run: |
cmake -E make_directory ./build_linux
- name: Configure
run: |
export PATH=$ENV{GITHUB_WORKSPACE}:$PATH
cmake -S . -G Ninja -B build -DENABLE_ALL=ON -DGIT_SHALLOW_CLONE=ON -DCMAKE_BUILD_TYPE=Debug
- name: Debugging - tmate session
uses: mxschmitt/action-tmate@v3
+24 -12
View File
@@ -1,13 +1,25 @@
# Common build directories used in the source tree
/build
/.build
/*_build
/*-build
/out
# Temporary files
*~
\#*\#
.\#*
[._]*.s[a-v][a-z]
[._]*.sw[a-p]
[._]s[a-v][a-z]
[._]sw[a-p]
# OS specific files
.DS_Store
Thumbs.db
TestArchives/
TestData/
AStyle/build/
AStyleTest/file-py/*.tmp
AStyleTest/file-py/*.pyc
AStyleTest/file-py/test-diff.txt
AStyleTest/file-py/test.txt
AStyle/src/.idea/
AStyle/.ccls-cache/
AStyle/.vscode/
AStyle/build_local/
.DS_Store?
.vscode
CMakeLists.txt.user
/.vs
/CMakeSettings.json
/CMakeUserPresets.json
-17
View File
@@ -1,17 +0,0 @@
# Specify the docker image to use (only used if using docker runners)
# See: http://doc.gitlab.com/ee/ci/docker/using_docker_images.html
image: debian:stable-slim
# Define commands that run before each job's script
before_script:
- apt-get update
- apt-get install -y make gcc g++ cmake
compile:
script:
- cd AStyle/
- mkdir build_local && cd build_local
- cmake .. && make
- cd ../../AStyleTest/regression-sh/
# Verify that our compiled app works properly with a custom "test" script
- bash ./run_tests.sh
-45
View File
@@ -1,45 +0,0 @@
## Summary
<!-- In a few sentences, explain what is going wrong. -->
## Input File
<!-- Include an example input file within the code block below.
This should be as small as possible to demonstrate the issue.
Most issues can be reproduced with 2-5 lines of code. -->
```c++
int main() {};
```
## Options
<!-- What options did you provide to astyle, at the comand line or in
an options file? e.g. --style=linux --convert-tabs -->
```sh
astyle --foo --bar
```
## Output
<!-- Either section below could be "no change" instead of a code block. -->
### Actual
<!-- Include here the actual result of astyle processing your input file.
You might use a diff instead of the c++ output if that is more clear. -->
```c++
```
### Expected
<!-- Include here the result you expected.
You might use a diff instead of literal c++ if that is more clear. -->
```c++
```
## Errors or Messages
<!-- Did astyle print anything unexpected to stdout or stderr? -->
```
```
## Additional troubleshooting or ideas
<!-- Did you do any other troubleshooting?
Did you find any related search results here or elsewhere?
Did you `git bisect` the problem?
Any other efforts or ideas can be described here. -->
+319
View File
@@ -0,0 +1,319 @@
[submodule "patch/patch"]
path = patch/patch
url = https://github.com/BRL-CAD/patch
ignore = dirty
[submodule "astyle/astyle"]
path = astyle/astyle
url = https://github.com/BRL-CAD/astyle
ignore = dirty
[submodule "lief/LIEF"]
path = lief/LIEF
url = https://github.com/BRL-CAD/LIEF
branch = RELEASE
ignore = dirty
[submodule "lemon/lemon"]
path = lemon/lemon
url = https://github.com/BRL-CAD/lemon
ignore = dirty
[submodule "re2c/re2c"]
path = re2c/re2c
url = https://github.com/BRL-CAD/re2c
branch = RELEASE
ignore = dirty
[submodule "perplex/perplex"]
path = perplex/perplex
url = https://github.com/BRL-CAD/perplex
ignore = dirty
[submodule "plief/plief"]
path = plief/plief
url = https://github.com/BRL-CAD/plief
ignore = dirty
[submodule "strclear/strclear"]
path = strclear/strclear
url = https://github.com/BRL-CAD/strclear
ignore = dirty
[submodule "xmltools/xmltools"]
path = xmltools/xmltools
url = https://github.com/BRL-CAD/xmltools
ignore = dirty
[submodule "zlib/zlib"]
path = zlib/zlib
url = https://github.com/BRL-CAD/zlib
ignore = dirty
[submodule "png/libpng"]
path = png/libpng
url = https://github.com/BRL-CAD/libpng
branch = RELEASE
ignore = dirty
[submodule "netpbm/netpbm"]
path = netpbm/netpbm
url = https://github.com/BRL-CAD/netpbm
branch = brlcad
ignore = dirty
[submodule "regex/regex"]
path = regex/regex
url = https://github.com/BRL-CAD/regex
ignore = dirty
[submodule "lmdb/lmdb"]
path = lmdb/lmdb
url = https://github.com/BRL-CAD/lmdb
branch = RELEASE
ignore = dirty
[submodule "eigen/eigen"]
path = eigen/eigen
url = https://github.com/BRL-CAD/eigen
branch = RELEASE
ignore = dirty
[submodule "stepcode/stepcode"]
path = stepcode/stepcode
url = https://github.com/BRL-CAD/stepcode
branch = RELEASE
ignore = dirty
[submodule "sqlite3/sqlite3"]
path = sqlite3/sqlite3
url = https://github.com/BRL-CAD/sqlite3.git
ignore = dirty
[submodule "proj/PROJ"]
path = proj/PROJ
url = https://github.com/BRL-CAD/PROJ
branch = RELEASE
ignore = dirty
[submodule "gdal/gdal"]
path = gdal/gdal
url = https://github.com/BRL-CAD/gdal
branch = RELEASE
ignore = dirty
[submodule "assetimport/assimp"]
path = assetimport/assimp
url = https://github.com/BRL-CAD/assimp
branch = RELEASE
ignore = dirty
[submodule "opencv/opencv"]
path = opencv/opencv
url = https://github.com/BRL-CAD/opencv
branch = RELEASE
ignore = dirty
[submodule "openmesh/OpenMesh"]
path = openmesh/OpenMesh
url = https://github.com/BRL-CAD/OpenMesh
branch = RELEASE
ignore = dirty
[submodule "opennurbs/opennurbs"]
path = opennurbs/opennurbs
url = https://github.com/BRL-CAD/opennurbs
branch = RELEASE
ignore = dirty
[submodule "osmesa/osmesa"]
path = osmesa/osmesa
url = https://github.com/BRL-CAD/osmesa
ignore = dirty
[submodule "utahrle/utahrle"]
path = utahrle/utahrle
url = https://github.com/BRL-CAD/utahrle
ignore = dirty
[submodule "tk/tk"]
path = tk/tk
url = https://github.com/BRL-CAD/tk
branch = RELEASE
ignore = dirty
[submodule "itcl3/itcl"]
path = itcl/itcl
url = https://github.com/BRL-CAD/itcl
branch = RELEASE
ignore = dirty
[submodule "itk3/itk"]
path = itk/itk
url = https://github.com/BRL-CAD/itk
branch = RELEASE
ignore = dirty
[submodule "iwidgets/iwidgets"]
path = iwidgets/iwidgets
url = https://github.com/BRL-CAD/iwidgets
ignore = dirty
[submodule "tktable/tktable"]
path = tktable/tktable
url = https://github.com/BRL-CAD/tktable
ignore = dirty
[submodule "tkhtml/tkhtml"]
path = tkhtml/tkhtml
url = https://github.com/BRL-CAD/tkhtml
ignore = dirty
[submodule "qt/qt"]
path = qt/qt
url = https://github.com/BRL-CAD/qt
ignore = dirty
[submodule "flexbison/bison"]
path = flexbison/bison
url = https://github.com/BRL-CAD/bison
ignore = dirty
[submodule "flexbison/flex"]
path = flexbison/flex
url = https://github.com/BRL-CAD/flex
branch = RELEASE
ignore = dirty
[submodule "flexbison/winflexbison"]
path = flexbison/winflexbison
url = https://github.com/BRL-CAD/winflexbison
branch = RELEASE
ignore = dirty
[submodule "minizip-ng/minizip-ng"]
path = minizip-ng/minizip-ng
url = https://github.com/BRL-CAD/minizip-ng
branch = RELEASE
ignore = dirty
[submodule "lz4/lz4"]
path = lz4/lz4
url = https://github.com/BRL-CAD/lz4
branch = RELEASE
ignore = dirty
[submodule "deflate/libdeflate"]
path = deflate/libdeflate
url = https://github.com/BRL-CAD/libdeflate
branch = RELEASE
ignore = dirty
[submodule "fmt/fmt"]
path = fmt/fmt
url = https://github.com/BRL-CAD/fmt
branch = RELEASE
ignore = dirty
[submodule "yaml-cpp/yaml-cpp"]
path = yaml-cpp/yaml-cpp
url = https://github.com/BRL-CAD/yaml-cpp
branch = RELEASE
ignore = dirty
[submodule "pystring/pystring"]
path = pystring/pystring
url = https://github.com/BRL-CAD/pystring
branch = RELEASE
ignore = dirty
[submodule "expat/libexpat"]
path = expat/libexpat
url = https://github.com/BRL-CAD/libexpat
branch = RELEASE
ignore = dirty
[submodule "pugixml/pugixml"]
path = pugixml/pugixml
url = https://github.com/BRL-CAD/pugixml
branch = RELEASE
ignore = dirty
[submodule "xerces-c/xerces-c"]
path = xerces-c/xerces-c
url = https://github.com/BRL-CAD/xerces-c
branch = RELEASE
ignore = dirty
[submodule "icu/icu"]
path = icu/icu
url = https://github.com/BRL-CAD/icu
branch = RELEASE
ignore = dirty
[submodule "jpeg/libjpeg-turbo"]
path = jpeg/libjpeg-turbo
url = https://github.com/BRL-CAD/libjpeg-turbo
branch = RELEASE
ignore = dirty
[submodule "tiff/libtiff"]
path = tiff/libtiff
url = https://github.com/BRL-CAD/libtiff
branch = RELEASE
ignore = dirty
[submodule "onetbb/oneTBB"]
path = onetbb/oneTBB
url = https://github.com/BRL-CAD/oneTBB
branch = RELEASE
ignore = dirty
[submodule "llvm/llvm-project"]
path = llvm/llvm-project
url = https://github.com/BRL-CAD/llvm-project
branch = RELEASE
ignore = dirty
[submodule "zstd/zstd"]
path = zstd/zstd
url = https://github.com/BRL-CAD/zstd
branch = RELEASE
ignore = dirty
[submodule "boost/boost"]
path = boost/boost
url = https://github.com/BRL-CAD/boost
branch = RELEASE
ignore = dirty
[submodule "openexr/openexr"]
path = openexr/openexr
url = https://github.com/BRL-CAD/openexr
branch = RELEASE
ignore = dirty
[submodule "opencolorio/OpenColorIO"]
path = opencolorio/OpenColorIO
url = https://github.com/BRL-CAD/OpenColorIO
branch = RELEASE
ignore = dirty
[submodule "openimageio/oiio"]
path = openimageio/oiio
url = https://github.com/BRL-CAD/oiio
branch = RELEASE
ignore = dirty
[submodule "osl/OpenShadingLanguage"]
path = osl/OpenShadingLanguage
url = https://github.com/BRL-CAD/OpenShadingLanguage
branch = RELEASE
ignore = dirty
[submodule "embree/embree"]
path = embree/embree
url = https://github.com/BRL-CAD/embree
branch = RELEASE
ignore = dirty
[submodule "rkcommon/rkcommon"]
path = rkcommon/rkcommon
url = https://github.com/BRL-CAD/rkcommon
branch = RELEASE
ignore = dirty
[submodule "ispc/ispc"]
path = ispc/ispc
url = https://github.com/BRL-CAD/ispc
branch = RELEASE
ignore = dirty
[submodule "ospray/ospray"]
path = ospray/ospray
url = https://github.com/BRL-CAD/ospray
branch = RELEASE
ignore = dirty
[submodule "ncurses/ncurses"]
path = ncurses/ncurses
url = https://github.com/BRL-CAD/ncurses
ignore = dirty
[submodule "tcl/tcl"]
path = tcl/tcl
url = https://github.com/BRL-CAD/tcl.git
branch = RELEASE
ignore = dirty
[submodule "manifold/manifold"]
path = manifold/manifold
url = https://github.com/BRL-CAD/manifold.git
branch = RELEASE
ignore = dirty
[submodule "appleseed/appleseed"]
path = appleseed/appleseed
url = https://github.com/BRL-CAD/appleseed
ignore = dirty
[submodule "geogram/geogram"]
path = geogram/geogram
url = https://github.com/BRL-CAD/geogram.git
branch = RELEASE
ignore = dirty
[submodule "gte/GeometricTools"]
path = gte/GeometricTools
url = https://github.com/BRL-CAD/GeometricTools
ignore = dirty
[submodule "mmesh/mmesh"]
path = mmesh/mmesh
url = https://github.com/BRL-CAD/mmesh.git
ignore = dirty
[submodule "clipper2/Clipper2"]
path = clipper2/Clipper2
url = https://github.com/BRL-CAD/Clipper2.git
branch = RELEASE
ignore = dirty
[submodule "tinygltf/tinygltf"]
path = tinygltf/tinygltf
url = https://github.com/BRL-CAD/tinygltf.git
branch = release
ignore = dirty
-222
View File
@@ -1,222 +0,0 @@
cmake_minimum_required(VERSION 3.10)
if(CMAKE_VERSION VERSION_GREATER "3.19.0")
cmake_policy(SET CMP0112 OLD)
endif()
project(astyle CXX)
# Build Options - executable by default, libraries on request
option(BUILD_JAVA_LIBS "Build java library" OFF)
option(BUILD_SHARED_LIBS "Build shared library" OFF)
option(BUILD_STATIC_LIBS "Build static library" OFF)
# Release Build by default (except for Borland)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release")
endif()
set(CMAKE_CXX_STANDARD 17)
# Linux Soname Version
set(MAJORVER 3)
set(MINORVER 6)
set(PATCHVER 12)
set(SOLIBVER ${MAJORVER}.${MINORVER}.${PATCHVER})
# AStyle Source
file(GLOB SRCS src/*.cpp)
# AStyle Documentation, selected files
list(APPEND DOCS
doc/astyle.html
doc/install.html
doc/news.html
doc/notes.html
doc/styles.css)
list(APPEND MAN
man/astyle.1)
# Define java as a shared library
if(BUILD_JAVA_LIBS)
set(BUILD_SHARED_LIBS ON)
endif()
# Define the output type
if(BUILD_SHARED_LIBS OR BUILD_STATIC_LIBS)
add_library(astyle ${SRCS})
else()
add_executable(astyle ${SRCS})
endif()
# compiler options:
if(APPLE)
target_compile_options( astyle PRIVATE -W -Wall -fno-rtti -fno-exceptions -stdlib=libc++)
elseif(NOT WIN32) # Linux
target_compile_options(astyle PRIVATE -Wall -Wextra -fno-rtti -fno-exceptions)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "gnu")
execute_process(COMMAND ${CMAKE_CXX_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION)
elseif(${CMAKE_CXX_COMPILER_ID} STREQUAL "Intel" AND CMAKE_BUILD_TYPE STREQUAL "Release")
# remove intel remarks for release build
target_compile_options(astyle PRIVATE -wd11074,11076)
endif()
elseif(MINGW)
target_compile_options(astyle PRIVATE -Wall -Wextra -fno-rtti -fno-exceptions)
elseif(BORLAND) # Release must be explicitly requested for Borland
target_compile_options(astyle PRIVATE -q -w -x-) # Cannot use no-rtti (-RT-)
elseif(MSVC) # Visual Studio
target_compile_options(astyle PRIVATE /utf-8)
endif()
# Set build-specific compile options
if(BUILD_SHARED_LIBS OR BUILD_STATIC_LIBS)
if(BUILD_JAVA_LIBS)
find_package(JNI)
if (NOT JNI_FOUND)
set(err_jni "Use '-DJAVA_HOME=<JNI Directory>' to define the Java path")
message(FATAL_ERROR ${err_jni})
endif()
target_compile_options(astyle PRIVATE -DASTYLE_JNI)
target_include_directories(astyle PRIVATE ${JNI_INCLUDE_DIRS})
else()
target_compile_options(astyle PRIVATE -DASTYLE_LIB)
endif()
# Windows DLL exports removed
set_property(TARGET astyle PROPERTY DEFINE_SYMBOL "")
# Linux solib version added
set_property(TARGET astyle PROPERTY VERSION ${SOLIBVER})
set_property(TARGET astyle PROPERTY SOVERSION ${MAJORVER})
endif()
# Linker options:
# Strip release builds
if(CMAKE_BUILD_TYPE STREQUAL "Release" OR CMAKE_BUILD_TYPE STREQUAL "MinSizeRel")
if(NOT BUILD_STATIC_LIBS AND NOT BORLAND AND NOT MSVC)
add_custom_command(TARGET astyle POST_BUILD
COMMAND ${CMAKE_STRIP} $<TARGET_FILE_NAME:astyle>)
endif()
endif()
# Shared library options
if(BUILD_SHARED_LIBS)
set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "") # remove -rdynamic
if(${CMAKE_CXX_COMPILER_ID} STREQUAL "Intel")
# need static linking because cannot find the intel libraries at runtime
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -static-intel")
elseif(MINGW)
# minGW dlls don't work
# tdm-gcc dlls work with everything except python
set(CMAKE_SHARED_LINKER_FLAGS
"${CMAKE_SHARED_LINKER_FLAGS} -Wl,--add-stdcall-alias -Wl,--dll")
elseif(BORLAND)
# use a development environment to compile Borland dlls
endif()
endif()
# Installation options:
# Define install directories
# To uninstall 'xargs rm < install_manifest.txt'
# 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}")
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}})
if(NOT ${prog_files})
set(prog_files $ENV{PROGRAMFILES})
endif()
install(TARGETS astyle DESTINATION "${prog_files}/AStyle")
install(FILES ${DOCS} DESTINATION "${prog_files}/AStyle/doc")
elseif(APPLE)
# install to the default /usr/local/bin because of SIP restrictions
install(TARGETS astyle DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
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")
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()
# output files:
# Set output file names if different than 'astyle'
if(BUILD_JAVA_LIBS)
if(WIN32)
set_property(TARGET astyle PROPERTY OUTPUT_NAME AStyle32j)
set_property(TARGET astyle PROPERTY PREFIX "")
else()
set_property(TARGET astyle PROPERTY OUTPUT_NAME astylej)
endif()
elseif(BUILD_SHARED_LIBS)
if(WIN32)
set_property(TARGET astyle PROPERTY OUTPUT_NAME AStyle32)
set_property(TARGET astyle PROPERTY PREFIX "")
endif()
elseif(BUILD_STATIC_LIBS)
if(WIN32)
set_property(TARGET astyle PROPERTY OUTPUT_NAME AStyleLib)
set_property(TARGET astyle PROPERTY PREFIX "")
endif()
else()
if(WIN32)
set_property(TARGET astyle PROPERTY OUTPUT_NAME AStyle)
endif()
endif()
# print info:
if(BUILD_JAVA_LIBS)
SET(ASTYLE_BUILD_TYPE "Java Shared Library")
elseif(BUILD_SHARED_LIBS)
SET(ASTYLE_BUILD_TYPE "Shared Library")
elseif(BUILD_STATIC_LIBS)
SET(ASTYLE_BUILD_TYPE "Static Library")
else()
SET(ASTYLE_BUILD_TYPE "Executable")
endif()
# Display build information
message( STATUS "---------- General Configuration ----------" )
message( STATUS )
message( STATUS "CMake Generator: ${CMAKE_GENERATOR}" )
message( STATUS "CMake Compiler: ${CMAKE_CXX_COMPILER_ID}" )
message( STATUS "AStyle Build: ${ASTYLE_BUILD_TYPE}" )
message( STATUS "AStyle Configuration: ${CMAKE_BUILD_TYPE}" )
if( BUILD_JAVA_LIBS )
message( STATUS "Java Include Path: ${JAVA_INCLUDE_PATH}" )
endif()
message( STATUS )
message( STATUS "-------------------------------------------" )
-21
View File
@@ -1,21 +0,0 @@
### MIT License
Copyright (c) 2023 The Artistic Style Authors.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-9
View File
@@ -1,9 +0,0 @@
Instructions for using Artistic Style are included in the *doc* directory.
The file **install.html** contains instructions for compiling and
installing Artistic Style.
The file **astyle.html** contains information on using Artistic Style.
The files **news.html** and **notes.html** contain information on changes
made to the various releases.
-257
View File
@@ -1,257 +0,0 @@
# Make file for GCC compiler on Linux or compatible OS
# list of source files for astyle
SRC = astyle_main.cpp \
ASBeautifier.cpp \
ASFormatter.cpp \
ASEnhancer.cpp \
ASLocalizer.cpp \
ASResource.cpp
# list of source files for libraries without ASLocalizer
SRCx = astyle_main.cpp \
ASBeautifier.cpp \
ASFormatter.cpp \
ASEnhancer.cpp \
ASResource.cpp
# source directories
vpath %.cpp ../../src
vpath %.h ../../src
# NOTE for java compiles the environment variable $JAVA_HOME must be set
# example: export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.00
ifndef JAVA_HOME
JAVA_HOME = /usr/lib/jvm/default-java
endif
# set prefix if not defined on the command line
ifndef prefix
prefix=/usr
endif
SYSCONF_PATH=$(prefix)/share/doc/astyle
# define macros
# CXX defaults to g++
ifeq ($(CXX), g++)
CXX = clang++
endif
bindir = bin
objdir = obj
ipath=$(prefix)/bin
CBASEFLAGS = -Wall -Wextra -fno-rtti -fno-exceptions -std=c++17
JAVAINCS = -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux
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 functionality is added in a
# backward-compatible manner; reset to 0 when major number changes.
MINORVER = 6
# Library's patch version number -- Increment in case of backward-compatible
# bug fixes or refactoring; reset to 0 when minor number changes.
PATCHVER = 13
# Library's full version number.
SOLIBVER = $(MAJORVER).$(MINORVER).$(PATCHVER)
##################################################
# define compile options for each build
ifdef CFLAGS
CFLAGSr = -DNDEBUG $(CBASEFLAGS) $(CFLAGS)
CFLAGSd = -g $(CBASEFLAGS) $(CFLAGS)
else
CFLAGSr = -DNDEBUG -O3 $(CBASEFLAGS)
CFLAGSd = -g $(CBASEFLAGS)
endif
CFLAGSs = -DASTYLE_LIB -fPIC $(CFLAGSr)
CFLAGSsd = -DASTYLE_LIB -fPIC $(CFLAGSd)
CFLAGSa = -DASTYLE_LIB $(CFLAGSr)
CFLAGSad = -DASTYLE_LIB $(CFLAGSd)
CFLAGSsj = -DASTYLE_JNI -fPIC $(CFLAGSr) $(JAVAINCS)
CFLAGSsjd = -DASTYLE_JNI -fPIC $(CFLAGSd) $(JAVAINCS)
# define link options
ifdef LDFLAGS
LDFLAGSr = $(LDFLAGS)
LDFLAGSd = $(LDFLAGS)
else
LDFLAGSr = -s
LDFLAGSd =
endif
# object files are built from the source list $(SRC)
# a suffix is added for each build
OBJ = $(patsubst %.cpp,$(objdir)/%.o,$(SRC))
OBJd = $(patsubst %.cpp,$(objdir)/%_d.o,$(SRC))
OBJs = $(patsubst %.cpp,$(objdir)/%_s.o,$(SRCx))
OBJsd = $(patsubst %.cpp,$(objdir)/%_sd.o,$(SRCx))
OBJa = $(patsubst %.cpp,$(objdir)/%_a.o,$(SRCx))
OBJad = $(patsubst %.cpp,$(objdir)/%_ad.o,$(SRCx))
OBJsj = $(patsubst %.cpp,$(objdir)/%_sj.o,$(SRCx))
OBJsjd = $(patsubst %.cpp,$(objdir)/%_sjd.o,$(SRCx))
# define object file rule (with the suffix) for each build
# OBJ
$(objdir)/%.o: %.cpp astyle.h astyle_main.h
@ mkdir -p $(objdir)
$(CXX) $(CFLAGSr) -c $< -o $@
# OBJd
$(objdir)/%_d.o: %.cpp astyle.h astyle_main.h
@ mkdir -p $(objdir)
$(CXX) $(CFLAGSd) -c $< -o $@
# OBJs
$(objdir)/%_s.o: %.cpp astyle.h
@ mkdir -p $(objdir)
$(CXX) $(CFLAGSs) -c $< -o $@
# OBJsd
$(objdir)/%_sd.o: %.cpp astyle.h
@ mkdir -p $(objdir)
$(CXX) $(CFLAGSsd) -c $< -o $@
# OBJa
$(objdir)/%_a.o: %.cpp astyle.h
@ mkdir -p $(objdir)
$(CXX) $(CFLAGSa) -c $< -o $@
# OBJad
$(objdir)/%_ad.o: %.cpp astyle.h
@ mkdir -p $(objdir)
$(CXX) $(CFLAGSad) -c $< -o $@
# OBJsj
$(objdir)/%_sj.o: %.cpp astyle.h
@ mkdir -p $(objdir)
$(CXX) $(CFLAGSsj) -c $< -o $@
# OBJsjd
$(objdir)/%_sjd.o: %.cpp astyle.h
@ mkdir -p $(objdir)
$(CXX) $(CFLAGSsjd) -c $< -o $@
##################################################
# define build dependencies for each command
release: astyle
astyle: $(OBJ)
@ mkdir -p $(bindir)
$(CXX) $(LDFLAGSr) -o $(bindir)/$@ $^
@ echo
debug: astyled
astyled: $(OBJd)
@ mkdir -p $(bindir)
$(CXX) $(LDFLAGSd) -o $(bindir)/$@ $^
@ echo
shared: libastyle.so
libastyle.so: $(OBJs)
@ mkdir -p $(bindir)
$(CXX) -shared $(LDFLAGSr) -Wl,-soname,libastyle.so.$(MAJORVER) \
-o $(bindir)/libastyle.so.$(SOLIBVER) $^
@ln --symbolic --force libastyle.so.$(SOLIBVER) libastyle.so.$(MAJORVER)
@ln --symbolic --force libastyle.so.$(MAJORVER) libastyle.so
@mv libastyle.so* $(bindir)/
@ echo
shareddebug: libastyled.so
libastyled.so: $(OBJsd)
@ mkdir -p $(bindir)
$(CXX) -shared $(LDFLAGSd) -Wl,-soname,libastyled.so.$(MAJORVER) \
-o $(bindir)/libastyled.so.$(SOLIBVER) $^
@ln --symbolic --force libastyled.so.$(SOLIBVER) libastyled.so.$(MAJORVER)
@ln --symbolic --force libastyled.so.$(MAJORVER) libastyled.so
@mv libastyled.so* $(bindir)/
@ echo
static: libastyle.a
libastyle.a: $(OBJa)
@ mkdir -p $(bindir)
ar crs $(bindir)/$@ $^
@ echo
staticdebug: libastyled.a
libastyled.a: $(OBJad)
@ mkdir -p $(bindir)
ar crs $(bindir)/$@ $^
@ echo
java: libastylej.so
libastylej.so: $(OBJsj)
@ mkdir -p $(bindir)
$(CXX) -shared $(LDFLAGSr) -Wl,-soname,libastylej.so.$(MAJORVER) \
-o $(bindir)/libastylej.so.$(SOLIBVER) $^
@ln --symbolic --force libastylej.so.$(SOLIBVER) libastylej.so.$(MAJORVER)
@ln --symbolic --force libastylej.so.$(MAJORVER) libastylej.so
@mv libastylej.so* $(bindir)/
@ echo
javadebug: libastylejd.so
libastylejd.so: $(OBJsjd)
@ mkdir -p $(bindir)
$(CXX) -shared $(LDFLAGSr) -Wl,-soname,libastylejd.so.$(MAJORVER) \
-o $(bindir)/libastylejd.so.$(SOLIBVER) $^
@ln --symbolic --force libastylejd.so.$(SOLIBVER) libastylejd.so.$(MAJORVER)
@ln --symbolic --force libastylejd.so.$(MAJORVER) libastylejd.so
@mv libastylejd.so* $(bindir)/
@ echo
all: release debug shared shareddebug static staticdebug
javaall: java javadebug
clean:
rm -f $(objdir)/*.o $(bindir)/*astyle*
cleanobj:
rm -f $(objdir)/*.o
install:
$(INSTALL) -m 755 -d $(ipath)
@$(INSTALL) -m 755 $(bindir)/astyle $(ipath)
@if [ -d $(SYSCONF_PATH)/html ]; then \
rm -rf $(SYSCONF_PATH)/html; \
fi
$(INSTALL) -m 755 -d $(SYSCONF_PATH)
@mkdir -p $(SYSCONF_PATH)/html;
@for files in astyle.html \
install.html \
news.html \
notes.html \
styles.css; \
do \
$(INSTALL) -m 644 ../../doc/$$files $(SYSCONF_PATH)/html; \
done
uninstall:
rm -f $(ipath)/astyle
rm -rf $(SYSCONF_PATH)
# copy release files to AStyleDev for testing
# --force, --preserve, --no-dereference (retain links)
testlibs:
cp -fpP $(bindir)/astyle ../../../AStyleDev/src-p/
cp -fpP $(bindir)/libastyle.so* ../../../AStyleDev/src-c/
cp -fpP $(bindir)/libastyle.so* ../../../AStyleDev/src-o/
cp -fpP $(bindir)/libastyle.so* ../../../AStyleDev/src-p/
cp -fpP $(bindir)/libastyle.so* ../../../AStyleDev/src-s/
cp -fpP $(bindir)/libastyle.so* ../../../AStyleDev/src-s2/
cp -fpP $(bindir)/libastylej.so* ../../../AStyleDev/src-j/
# copy debug files to AStyleDev for testing
# --force, --preserve, --no-dereference (retain links)
testlibsd:
cp -fpP $(bindir)/astyled ../../../AStyleDev/src-p/
cp -fpP $(bindir)/libastyled.so* ../../../AStyleDev/src-c/
cp -fpP $(bindir)/libastyled.so* ../../../AStyleDev/src-o/
cp -fpP $(bindir)/libastyled.so* ../../../AStyleDev/src-p/
cp -fpP $(bindir)/libastyled.so* ../../../AStyleDev/src-s/
cp -fpP $(bindir)/libastyled.so* ../../../AStyleDev/src-s2/
cp -fpP $(bindir)/libastylejd.so* ../../../AStyleDev/src-j/
-254
View File
@@ -1,254 +0,0 @@
# Make file for GCC compiler on Linux or compatible OS
# list of source files for astyle
SRC = astyle_main.cpp \
ASBeautifier.cpp \
ASFormatter.cpp \
ASEnhancer.cpp \
ASLocalizer.cpp \
ASResource.cpp
# list of source files for libraries without ASLocalizer
SRCx = astyle_main.cpp \
ASBeautifier.cpp \
ASFormatter.cpp \
ASEnhancer.cpp \
ASResource.cpp
# source directories
vpath %.cpp ../../src
vpath %.h ../../src
# NOTE for java compiles the environment variable $JAVA_HOME must be set
# example: export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.00
ifndef JAVA_HOME
JAVA_HOME = /usr/lib/jvm/default-java
endif
# set prefix if not defined on the command line
ifndef prefix
prefix=/usr
endif
SYSCONF_PATH=$(prefix)/share/doc/astyle
# define macros
# CXX defaults to g++
bindir = bin
objdir = obj
ipath=$(prefix)/bin
CBASEFLAGS = -Wall -Wextra -fno-rtti -fno-exceptions -std=c++17
JAVAINCS = -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux
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 functionality is added in a
# backward-compatible manner; reset to 0 when major number changes.
MINORVER = 6
# Library's patch version number -- Increment in case of backward-compatible
# bug fixes or refactoring; reset to 0 when minor number changes.
PATCHVER = 13
# Library's full version number.
SOLIBVER = $(MAJORVER).$(MINORVER).$(PATCHVER)
##################################################
# define compile options for each build
ifdef CFLAGS
CFLAGSr = -DNDEBUG $(CBASEFLAGS) $(CFLAGS)
CFLAGSd = -g $(CBASEFLAGS) $(CFLAGS)
else
CFLAGSr = -DNDEBUG -O3 $(CBASEFLAGS)
CFLAGSd = -g $(CBASEFLAGS)
endif
CFLAGSs = -DASTYLE_LIB -fPIC $(CFLAGSr)
CFLAGSsd = -DASTYLE_LIB -fPIC $(CFLAGSd)
CFLAGSa = -DASTYLE_LIB $(CFLAGSr)
CFLAGSad = -DASTYLE_LIB $(CFLAGSd)
CFLAGSsj = -DASTYLE_JNI -fPIC $(CFLAGSr) $(JAVAINCS)
CFLAGSsjd = -DASTYLE_JNI -fPIC $(CFLAGSd) $(JAVAINCS)
# define link options
ifdef LDFLAGS
LDFLAGSr = $(LDFLAGS)
LDFLAGSd = $(LDFLAGS)
else
LDFLAGSr = -s
LDFLAGSd =
endif
# object files are built from the source list $(SRC)
# a suffix is added for each build
OBJ = $(patsubst %.cpp,$(objdir)/%.o,$(SRC))
OBJd = $(patsubst %.cpp,$(objdir)/%_d.o,$(SRC))
OBJs = $(patsubst %.cpp,$(objdir)/%_s.o,$(SRCx))
OBJsd = $(patsubst %.cpp,$(objdir)/%_sd.o,$(SRCx))
OBJa = $(patsubst %.cpp,$(objdir)/%_a.o,$(SRCx))
OBJad = $(patsubst %.cpp,$(objdir)/%_ad.o,$(SRCx))
OBJsj = $(patsubst %.cpp,$(objdir)/%_sj.o,$(SRCx))
OBJsjd = $(patsubst %.cpp,$(objdir)/%_sjd.o,$(SRCx))
# define object file rule (with the suffix) for each build
# OBJ
$(objdir)/%.o: %.cpp astyle.h astyle_main.h
@ mkdir -p $(objdir)
$(CXX) $(CFLAGSr) -c $< -o $@
# OBJd
$(objdir)/%_d.o: %.cpp astyle.h astyle_main.h
@ mkdir -p $(objdir)
$(CXX) $(CFLAGSd) -c $< -o $@
# OBJs
$(objdir)/%_s.o: %.cpp astyle.h
@ mkdir -p $(objdir)
$(CXX) $(CFLAGSs) -c $< -o $@
# OBJsd
$(objdir)/%_sd.o: %.cpp astyle.h
@ mkdir -p $(objdir)
$(CXX) $(CFLAGSsd) -c $< -o $@
# OBJa
$(objdir)/%_a.o: %.cpp astyle.h
@ mkdir -p $(objdir)
$(CXX) $(CFLAGSa) -c $< -o $@
# OBJad
$(objdir)/%_ad.o: %.cpp astyle.h
@ mkdir -p $(objdir)
$(CXX) $(CFLAGSad) -c $< -o $@
# OBJsj
$(objdir)/%_sj.o: %.cpp astyle.h
@ mkdir -p $(objdir)
$(CXX) $(CFLAGSsj) -c $< -o $@
# OBJsjd
$(objdir)/%_sjd.o: %.cpp astyle.h
@ mkdir -p $(objdir)
$(CXX) $(CFLAGSsjd) -c $< -o $@
##################################################
# define build dependencies for each command
release: astyle
astyle: $(OBJ)
@ mkdir -p $(bindir)
$(CXX) $(LDFLAGSr) -o $(bindir)/$@ $^
@ echo
debug: astyled
astyled: $(OBJd)
@ mkdir -p $(bindir)
$(CXX) $(LDFLAGSd) -o $(bindir)/$@ $^
@ echo
shared: libastyle.so
libastyle.so: $(OBJs)
@ mkdir -p $(bindir)
$(CXX) -shared $(LDFLAGSr) -Wl,-soname,libastyle.so.$(MAJORVER) \
-o $(bindir)/libastyle.so.$(SOLIBVER) $^
@ln --symbolic --force libastyle.so.$(SOLIBVER) libastyle.so.$(MAJORVER)
@ln --symbolic --force libastyle.so.$(MAJORVER) libastyle.so
@mv libastyle.so* $(bindir)/
@ echo
shareddebug: libastyled.so
libastyled.so: $(OBJsd)
@ mkdir -p $(bindir)
$(CXX) -shared $(LDFLAGSd) -Wl,-soname,libastyled.so.$(MAJORVER) \
-o $(bindir)/libastyled.so.$(SOLIBVER) $^
@ln --symbolic --force libastyled.so.$(SOLIBVER) libastyled.so.$(MAJORVER)
@ln --symbolic --force libastyled.so.$(MAJORVER) libastyled.so
@mv libastyled.so* $(bindir)/
@ echo
static: libastyle.a
libastyle.a: $(OBJa)
@ mkdir -p $(bindir)
ar crs $(bindir)/$@ $^
@ echo
staticdebug: libastyled.a
libastyled.a: $(OBJad)
@ mkdir -p $(bindir)
ar crs $(bindir)/$@ $^
@ echo
java: libastylej.so
libastylej.so: $(OBJsj)
@ mkdir -p $(bindir)
$(CXX) -shared $(LDFLAGSr) -Wl,-soname,libastylej.so.$(MAJORVER) \
-o $(bindir)/libastylej.so.$(SOLIBVER) $^
@ln --symbolic --force libastylej.so.$(SOLIBVER) libastylej.so.$(MAJORVER)
@ln --symbolic --force libastylej.so.$(MAJORVER) libastylej.so
@mv libastylej.so* $(bindir)/
@ echo
javadebug: libastylejd.so
libastylejd.so: $(OBJsjd)
@ mkdir -p $(bindir)
$(CXX) -shared $(LDFLAGSr) -Wl,-soname,libastylejd.so.$(MAJORVER) \
-o $(bindir)/libastylejd.so.$(SOLIBVER) $^
@ln --symbolic --force libastylejd.so.$(SOLIBVER) libastylejd.so.$(MAJORVER)
@ln --symbolic --force libastylejd.so.$(MAJORVER) libastylejd.so
@mv libastylejd.so* $(bindir)/
@ echo
all: release debug shared shareddebug static staticdebug
javaall: java javadebug
clean:
rm -f $(objdir)/*.o $(bindir)/*astyle*
cleanobj:
rm -f $(objdir)/*.o
install:
$(INSTALL) -m 755 -d $(ipath)
@$(INSTALL) -m 755 $(bindir)/astyle $(ipath)
@if [ -d $(SYSCONF_PATH)/html ]; then \
rm -rf $(SYSCONF_PATH)/html; \
fi
$(INSTALL) -m 755 -d $(SYSCONF_PATH)
@mkdir -p $(SYSCONF_PATH)/html;
@for files in astyle.html \
install.html \
news.html \
notes.html \
styles.css; \
do \
$(INSTALL) -m 644 ../../doc/$$files $(SYSCONF_PATH)/html; \
done
uninstall:
rm -f $(ipath)/astyle
rm -rf $(SYSCONF_PATH)
# copy release files to AStyleDev for testing
# --force, --preserve, --no-dereference (retain links)
testlibs:
cp -fpP $(bindir)/astyle ../../../AStyleDev/src-p/
cp -fpP $(bindir)/libastyle.so* ../../../AStyleDev/src-c/
cp -fpP $(bindir)/libastyle.so* ../../../AStyleDev/src-o/
cp -fpP $(bindir)/libastyle.so* ../../../AStyleDev/src-p/
cp -fpP $(bindir)/libastyle.so* ../../../AStyleDev/src-s/
cp -fpP $(bindir)/libastyle.so* ../../../AStyleDev/src-s2/
cp -fpP $(bindir)/libastylej.so* ../../../AStyleDev/src-j/
# copy debug files to AStyleDev for testing
# --force, --preserve, --no-dereference (retain links)
testlibsd:
cp -fpP $(bindir)/astyled ../../../AStyleDev/src-p/
cp -fpP $(bindir)/libastyled.so* ../../../AStyleDev/src-c/
cp -fpP $(bindir)/libastyled.so* ../../../AStyleDev/src-o/
cp -fpP $(bindir)/libastyled.so* ../../../AStyleDev/src-p/
cp -fpP $(bindir)/libastyled.so* ../../../AStyleDev/src-s/
cp -fpP $(bindir)/libastyled.so* ../../../AStyleDev/src-s2/
cp -fpP $(bindir)/libastylejd.so* ../../../AStyleDev/src-j/
-268
View File
@@ -1,268 +0,0 @@
# Make file for Intel compiler on Linux or compatible OS
# Before running "make" the COMPILER environment variables must be set.
# To set the environment variables "source" the compiler environment script:
# source /opt/intel/bin/compilervars.sh [ ia32 | intel64 ]
# Refer to the install instructions for details.
# If the environment variables are set, INTEL_LICENSE_FILE will be defined.
# NOTE: This does not work if 'sudo' is used, as in 'install' and 'uninstall'.
#ifndef INTEL_LICENSE_FILE
# $(error The compiler environment variables are not set)
#endif
# list of source files for astyle
SRC = astyle_main.cpp \
ASBeautifier.cpp \
ASFormatter.cpp \
ASEnhancer.cpp \
ASLocalizer.cpp \
ASResource.cpp
# list of source files for libraries without ASLocalizer
SRCx = astyle_main.cpp \
ASBeautifier.cpp \
ASFormatter.cpp \
ASEnhancer.cpp \
ASResource.cpp
# source directories
vpath %.cpp ../../src
vpath %.h ../../src
# NOTE for java compiles the environment variable $JAVA_HOME must be set
# example: export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.00
ifndef JAVA_HOME
JAVA_HOME = /usr/lib/jvm/default-java
endif
# set prefix if not defined on the command line
ifndef prefix
prefix=/usr
endif
SYSCONF_PATH=$(prefix)/share/doc/astyle
# define macros
# CXX defaults to g++
ifeq ($(CXX), g++)
CXX = icpc
endif
bindir = bin
objdir = obj
ipath=$(prefix)/bin
CBASEFLAGS = -Wall -Wextra -fno-rtti -fno-exceptions -std=c++17
JAVAINCS = -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux
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 functionality is added in a
# backward-compatible manner; reset to 0 when major number changes.
MINORVER = 6
# Library's patch version number -- Increment in case of backward-compatible
# bug fixes or refactoring; reset to 0 when minor number changes.
PATCHVER = 13
# Library's full version number.
SOLIBVER = $(MAJORVER).$(MINORVER).$(PATCHVER)
##################################################
# define compile options for each build
# -wd option is to remove remarks for the release build
ifdef CFLAGS
CFLAGSr = -DNDEBUG $(CBASEFLAGS) -wd11074,11076 $(CFLAGS)
CFLAGSd = -g $(CBASEFLAGS) $(CFLAGS)
else
CFLAGSr = -DNDEBUG -O3 $(CBASEFLAGS) -wd11074,11076
CFLAGSd = -g $(CBASEFLAGS)
endif
CFLAGSs = -DASTYLE_LIB -fPIC $(CFLAGSr)
CFLAGSsd = -DASTYLE_LIB -fPIC $(CFLAGSd)
CFLAGSa = -DASTYLE_LIB $(CFLAGSr)
CFLAGSad = -DASTYLE_LIB $(CFLAGSd)
CFLAGSsj = -DASTYLE_JNI -fPIC $(CFLAGSr) $(JAVAINCS)
CFLAGSsjd = -DASTYLE_JNI -fPIC $(CFLAGSd) $(JAVAINCS)
# define link options
ifdef LDFLAGS
LDFLAGSr = $(LDFLAGS)
LDFLAGSd = $(LDFLAGS)
else
LDFLAGSr = -s
LDFLAGSd =
endif
# object files are built from the source list $(SRC)
# a suffix is added for each build
OBJ = $(patsubst %.cpp,$(objdir)/%.o,$(SRC))
OBJd = $(patsubst %.cpp,$(objdir)/%_d.o,$(SRC))
OBJs = $(patsubst %.cpp,$(objdir)/%_s.o,$(SRCx))
OBJsd = $(patsubst %.cpp,$(objdir)/%_sd.o,$(SRCx))
OBJa = $(patsubst %.cpp,$(objdir)/%_a.o,$(SRCx))
OBJad = $(patsubst %.cpp,$(objdir)/%_ad.o,$(SRCx))
OBJsj = $(patsubst %.cpp,$(objdir)/%_sj.o,$(SRCx))
OBJsjd = $(patsubst %.cpp,$(objdir)/%_sjd.o,$(SRCx))
# define object file rule (with the suffix) for each build
# OBJ
$(objdir)/%.o: %.cpp astyle.h astyle_main.h
@ mkdir -p $(objdir)
$(CXX) $(CFLAGSr) -c $< -o $@
# OBJd
$(objdir)/%_d.o: %.cpp astyle.h astyle_main.h
@ mkdir -p $(objdir)
$(CXX) $(CFLAGSd) -c $< -o $@
# OBJs
$(objdir)/%_s.o: %.cpp astyle.h
@ mkdir -p $(objdir)
$(CXX) $(CFLAGSs) -c $< -o $@
# OBJsd
$(objdir)/%_sd.o: %.cpp astyle.h
@ mkdir -p $(objdir)
$(CXX) $(CFLAGSsd) -c $< -o $@
# OBJa
$(objdir)/%_a.o: %.cpp astyle.h
@ mkdir -p $(objdir)
$(CXX) $(CFLAGSa) -c $< -o $@
# OBJad
$(objdir)/%_ad.o: %.cpp astyle.h
@ mkdir -p $(objdir)
$(CXX) $(CFLAGSad) -c $< -o $@
# OBJsj
$(objdir)/%_sj.o: %.cpp astyle.h
@ mkdir -p $(objdir)
$(CXX) $(CFLAGSsj) -c $< -o $@
# OBJsjd
$(objdir)/%_sjd.o: %.cpp astyle.h
@ mkdir -p $(objdir)
$(CXX) $(CFLAGSsjd) -c $< -o $@
##################################################
# define build dependencies for each command
release: astyle
astyle: $(OBJ)
@ mkdir -p $(bindir)
$(CXX) $(LDFLAGSr) -o $(bindir)/$@ $^
@ echo
debug: astyled
astyled: $(OBJd)
@ mkdir -p $(bindir)
$(CXX) $(LDFLAGSd) -o $(bindir)/$@ $^
@ echo
shared: libastyle.so
libastyle.so: $(OBJs)
@ mkdir -p $(bindir)
$(CXX) -shared -static-intel $(LDFLAGSr) -Wl,-soname,libastyle.so.$(MAJORVER) \
-o $(bindir)/libastyle.so.$(SOLIBVER) $^
@ln --symbolic --force libastyle.so.$(SOLIBVER) libastyle.so.$(MAJORVER)
@ln --symbolic --force libastyle.so.$(MAJORVER) libastyle.so
@mv libastyle.so* $(bindir)/
@ echo
shareddebug: libastyled.so
libastyled.so: $(OBJsd)
@ mkdir -p $(bindir)
$(CXX) -shared -static-intel $(LDFLAGSd) -Wl,-soname,libastyled.so.$(MAJORVER) \
-o $(bindir)/libastyled.so.$(SOLIBVER) $^
@ln --symbolic --force libastyled.so.$(SOLIBVER) libastyled.so.$(MAJORVER)
@ln --symbolic --force libastyled.so.$(MAJORVER) libastyled.so
@mv libastyled.so* $(bindir)/
@ echo
static: libastyle.a
libastyle.a: $(OBJa)
@ mkdir -p $(bindir)
ar crs $(bindir)/$@ $^
@ echo
staticdebug: libastyled.a
libastyled.a: $(OBJad)
@ mkdir -p $(bindir)
ar crs $(bindir)/$@ $^
@ echo
java: libastylej.so
libastylej.so: $(OBJsj)
@ mkdir -p $(bindir)
$(CXX) -shared -static-intel $(LDFLAGSr) -Wl,-soname,libastylej.so.$(MAJORVER) \
-o $(bindir)/libastylej.so.$(SOLIBVER) $^
@ln --symbolic --force libastylej.so.$(SOLIBVER) libastylej.so.$(MAJORVER)
@ln --symbolic --force libastylej.so.$(MAJORVER) libastylej.so
@mv libastylej.so* $(bindir)/
@ echo
javadebug: libastylejd.so
libastylejd.so: $(OBJsjd)
@ mkdir -p $(bindir)
$(CXX) -shared -static-intel $(LDFLAGSr) -Wl,-soname,libastylejd.so.$(MAJORVER) \
-o $(bindir)/libastylejd.so.$(SOLIBVER) $^
@ln --symbolic --force libastylejd.so.$(SOLIBVER) libastylejd.so.$(MAJORVER)
@ln --symbolic --force libastylejd.so.$(MAJORVER) libastylejd.so
@mv libastylejd.so* $(bindir)/
@ echo
all: release debug shared shareddebug static staticdebug
javaall: java javadebug
clean:
rm -f $(objdir)/*.o $(bindir)/*astyle*
cleanobj:
rm -f $(objdir)/*.o
install:
$(INSTALL) -m 755 -d $(ipath)
@$(INSTALL) -m 755 $(bindir)/astyle $(ipath)
@if [ -d $(SYSCONF_PATH)/html ]; then \
rm -rf $(SYSCONF_PATH)/html; \
fi
$(INSTALL) -m 755 -d $(SYSCONF_PATH)
@mkdir -p $(SYSCONF_PATH)/html;
@for files in astyle.html \
install.html \
news.html \
notes.html \
styles.css; \
do \
$(INSTALL) -m 644 ../../doc/$$files $(SYSCONF_PATH)/html; \
done
uninstall:
rm -f $(ipath)/astyle
rm -rf $(SYSCONF_PATH)
# copy release files to AStyleDev for testing
# --force, --preserve, --no-dereference (retain links)
testlibs:
cp -fpP $(bindir)/astyle ../../../AStyleDev/src-p/
cp -fpP $(bindir)/libastyle.so* ../../../AStyleDev/src-c/
cp -fpP $(bindir)/libastyle.so* ../../../AStyleDev/src-o/
cp -fpP $(bindir)/libastyle.so* ../../../AStyleDev/src-p/
cp -fpP $(bindir)/libastyle.so* ../../../AStyleDev/src-s/
cp -fpP $(bindir)/libastyle.so* ../../../AStyleDev/src-s2/
cp -fpP $(bindir)/libastylej.so* ../../../AStyleDev/src-j/
# copy debug files to AStyleDev for testing
# --force, --preserve, --no-dereference (retain links)
testlibsd:
cp -fpP $(bindir)/astyled ../../../AStyleDev/src-p/
cp -fpP $(bindir)/libastyled.so* ../../../AStyleDev/src-c/
cp -fpP $(bindir)/libastyled.so* ../../../AStyleDev/src-o/
cp -fpP $(bindir)/libastyled.so* ../../../AStyleDev/src-p/
cp -fpP $(bindir)/libastyled.so* ../../../AStyleDev/src-s/
cp -fpP $(bindir)/libastyled.so* ../../../AStyleDev/src-s2/
cp -fpP $(bindir)/libastylejd.so* ../../../AStyleDev/src-j/
-222
View File
@@ -1,222 +0,0 @@
# Make file for Clang compiler on macOS.
# to test on Linux use "make linux=1"
# list of source files for astyle
SRC = astyle_main.cpp \
ASBeautifier.cpp \
ASFormatter.cpp \
ASEnhancer.cpp \
ASLocalizer.cpp \
ASResource.cpp
# list of source files for libraries without ASLocalizer
SRCx = astyle_main.cpp \
ASBeautifier.cpp \
ASFormatter.cpp \
ASEnhancer.cpp \
ASResource.cpp
# source directories
vpath %.cpp ../../src
vpath %.h ../../src
# NOTE for java compiles the environment variable $JAVA_HOME must be set
# example: export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.00
ifndef JAVA_HOME
JAVA_HOME = /usr/lib/jvm/default-java
endif
# set prefix if not defined on the command line
ifndef prefix
prefix=/usr/local
endif
SYSCONF_PATH=$(prefix)/share/doc/astyle
# define macros
dylib = dylib
dynamiclib = -dynamiclib
bindir = bin
objdir = obj
ipath=$(prefix)/bin
CBASEFLAGS = -W -Wall -std=c++17 -stdlib=libc++ -fno-rtti -fno-exceptions \
-mmacosx-version-min=10.9
LDBASEFLAGS =
JAVAINCS = -I/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/include \
-I/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/include/darwin \
-I/System/Library/Frameworks/JavaVM.framework/Headers
CXX = clang++
INSTALL=install -o $(USER) -g wheel
# INSTALL=install -o 0 -g 0
# for testing on linux
ifdef linux
dylib = so
dynamiclib = -shared
CXX = g++
JAVAINCS = -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux
endif
##################################################
# define compile options for each build
ifdef CFLAGS
CFLAGSr = -DNDEBUG $(CBASEFLAGS) $(CFLAGS)
CFLAGSd = -g $(CBASEFLAGS) $(CFLAGS)
else
CFLAGSr = -DNDEBUG -O3 $(CBASEFLAGS)
CFLAGSd = -g $(CBASEFLAGS)
endif
CFLAGSs = -DASTYLE_LIB -fPIC $(CFLAGSr)
CFLAGSsd = -DASTYLE_LIB -fPIC $(CFLAGSd)
CFLAGSa = -DASTYLE_LIB $(CFLAGSr)
CFLAGSad = -DASTYLE_LIB $(CFLAGSd)
CFLAGSsj = -DASTYLE_JNI -fPIC $(CFLAGSr) $(JAVAINCS)
CFLAGSsjd = -DASTYLE_JNI -fPIC $(CFLAGSd) $(JAVAINCS)
# define link options
ifdef LDFLAGS
LDFLAGSr = $(LDBASEFLAGS) $(LDFLAGS)
LDFLAGSd = $(LDBASEFLAGS) $(LDFLAGS)
else
LDFLAGSr = $(LDBASEFLAGS)
LDFLAGSd = $(LDBASEFLAGS)
endif
# object files are built from the source list $(SRC)
# a suffix is added for each build
OBJ = $(patsubst %.cpp,$(objdir)/%.o,$(SRC))
OBJd = $(patsubst %.cpp,$(objdir)/%_d.o,$(SRC))
OBJs = $(patsubst %.cpp,$(objdir)/%_s.o,$(SRCx))
OBJsd = $(patsubst %.cpp,$(objdir)/%_sd.o,$(SRCx))
OBJa = $(patsubst %.cpp,$(objdir)/%_a.o,$(SRCx))
OBJad = $(patsubst %.cpp,$(objdir)/%_ad.o,$(SRCx))
OBJsj = $(patsubst %.cpp,$(objdir)/%_sj.o,$(SRCx))
OBJsjd = $(patsubst %.cpp,$(objdir)/%_sjd.o,$(SRCx))
# define object file rule (with the suffix) for each build
# OBJ
$(objdir)/%.o: %.cpp astyle.h astyle_main.h
@ mkdir -p $(objdir)
$(CXX) $(CFLAGSr) -c $< -o $@
# OBJd
$(objdir)/%_d.o: %.cpp astyle.h astyle_main.h
@ mkdir -p $(objdir)
$(CXX) $(CFLAGSd) -c $< -o $@
# OBJs
$(objdir)/%_s.o: %.cpp astyle.h
@ mkdir -p $(objdir)
$(CXX) $(CFLAGSs) -c $< -o $@
# OBJsd
$(objdir)/%_sd.o: %.cpp astyle.h
@ mkdir -p $(objdir)
$(CXX) $(CFLAGSsd) -c $< -o $@
# OBJa
$(objdir)/%_a.o: %.cpp astyle.h
@ mkdir -p $(objdir)
$(CXX) $(CFLAGSa) -c $< -o $@
# OBJad
$(objdir)/%_ad.o: %.cpp astyle.h
@ mkdir -p $(objdir)
$(CXX) $(CFLAGSad) -c $< -o $@
# OBJsj
$(objdir)/%_sj.o: %.cpp astyle.h
@ mkdir -p $(objdir)
$(CXX) $(CFLAGSsj) -c $< -o $@
# OBJsjd
$(objdir)/%_sjd.o: %.cpp astyle.h
@ mkdir -p $(objdir)
$(CXX) $(CFLAGSsjd) -c $< -o $@
##################################################
# define build dependencies for each command
release: astyle
astyle: $(OBJ)
@ mkdir -p $(bindir)
$(CXX) $(LDFLAGSr) -dead_strip -o $(bindir)/AStyle $^
strip $(bindir)/AStyle
@ echo
debug: astyled
astyled: $(OBJd)
@ mkdir -p $(bindir)
$(CXX) $(LDFLAGSd) -o $(bindir)/AStyled $^
@ echo
shared: libastyle.$(dylib)
libastyle.$(dylib): $(OBJs)
@ mkdir -p $(bindir)
$(CXX) $(dynamiclib) $(LDFLAGSr) -o $(bindir)/libastyle32.$(dylib) $^
@ echo
shareddebug: libastyled.$(dylib)
libastyled.$(dylib): $(OBJsd)
@ mkdir -p $(bindir)
$(CXX) $(dynamiclib) $(LDFLAGSd) -o $(bindir)/libastyle32d.$(dylib) $^
@ echo
static: libastyle.a
libastyle.a: $(OBJa)
@ mkdir -p $(bindir)
ar crs $(bindir)/$@ $^
@ echo
staticdebug: libastyled.a
libastyled.a: $(OBJad)
@ mkdir -p $(bindir)
ar crs $(bindir)/$@ $^
@ echo
java: libastylej.$(dylib)
libastylej.$(dylib): $(OBJsj)
@ mkdir -p $(bindir)
$(CXX) $(dynamiclib) $(LDFLAGSr) -o $(bindir)/libastyle32j.$(dylib) $^
@ echo
javadebug: libastylejd.$(dylib)
libastylejd.$(dylib): $(OBJsjd)
@ mkdir -p $(bindir)
$(CXX) $(dynamiclib) $(LDFLAGSd) -o $(bindir)/libastyle32jd.$(dylib) $^
@ echo
all: release debug shared shareddebug static staticdebug
javaall: java javadebug
clean:
rm -f $(objdir)/*.o $(bindir)/*astyle*
cleanobj:
rm -f $(objdir)/*.o
install:
$(INSTALL) -m 755 -d $(ipath)
@$(INSTALL) -m 755 $(bindir)/astyle $(ipath)
@if [ -d $(SYSCONF_PATH)/html ]; then \
rm -rf $(SYSCONF_PATH)/html; \
fi
$(INSTALL) -m 755 -d $(SYSCONF_PATH)
@mkdir -p $(SYSCONF_PATH)/html;
@for files in astyle.html \
install.html \
news.html \
notes.html \
styles.css; \
do \
$(INSTALL) -m 644 "../../doc/$$files" $(SYSCONF_PATH)/html; \
done
uninstall:
rm -f $(ipath)/astyle
rm -rf $(SYSCONF_PATH)
-31
View File
@@ -1,31 +0,0 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.28531.58
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AStyleDoc", "AStyleDoc\AStyleDoc.vcxproj", "{691E5300-3918-4BBD-BD58-0AC079A33942}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{691E5300-3918-4BBD-BD58-0AC079A33942}.Debug|x64.ActiveCfg = Debug|x64
{691E5300-3918-4BBD-BD58-0AC079A33942}.Debug|x64.Build.0 = Debug|x64
{691E5300-3918-4BBD-BD58-0AC079A33942}.Debug|x86.ActiveCfg = Debug|Win32
{691E5300-3918-4BBD-BD58-0AC079A33942}.Debug|x86.Build.0 = Debug|Win32
{691E5300-3918-4BBD-BD58-0AC079A33942}.Release|x64.ActiveCfg = Release|x64
{691E5300-3918-4BBD-BD58-0AC079A33942}.Release|x64.Build.0 = Release|x64
{691E5300-3918-4BBD-BD58-0AC079A33942}.Release|x86.ActiveCfg = Release|Win32
{691E5300-3918-4BBD-BD58-0AC079A33942}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {BDC19013-4500-46BC-815E-61BDFE4B90DC}
EndGlobalSection
EndGlobal
@@ -1,143 +0,0 @@
<?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>
</ItemGroup>
<PropertyGroup Label="Globals">
<VCProjectVersion>15.0</VCProjectVersion>
<ProjectGuid>{691E5300-3918-4BBD-BD58-0AC079A33942}</ProjectGuid>
<RootNamespace>AStyleDoc</RootNamespace>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>MultiByte</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 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>
<PropertyGroup Label="UserMacros" />
<PropertyGroup />
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<SDLCheck>true</SDLCheck>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<SDLCheck>true</SDLCheck>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<None Include="..\..\..\doc\astyle.html" />
<None Include="..\..\..\doc\index.html" />
<None Include="..\..\..\doc\install.html" />
<None Include="..\..\..\doc\links.html" />
<None Include="..\..\..\doc\news.html" />
<None Include="..\..\..\doc\newsArchives.html" />
<None Include="..\..\..\doc\notes.html" />
<None Include="..\..\..\doc\notesArchives.html" />
<None Include="..\..\..\doc\scripts.html" />
<None Include="..\..\..\doc\styles.css" />
<None Include="..\..\..\doc\subversion.html" />
<None Include="..\..\..\doc\vsinstall.html" />
<None Include="..\..\..\doc\xtra.html" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
@@ -1,49 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Html Files">
<UniqueIdentifier>{b1fa9200-07ec-4101-b482-0d6a13f234d4}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<None Include="..\..\..\doc\astyle.html">
<Filter>Html Files</Filter>
</None>
<None Include="..\..\..\doc\index.html">
<Filter>Html Files</Filter>
</None>
<None Include="..\..\..\doc\install.html">
<Filter>Html Files</Filter>
</None>
<None Include="..\..\..\doc\links.html">
<Filter>Html Files</Filter>
</None>
<None Include="..\..\..\doc\news.html">
<Filter>Html Files</Filter>
</None>
<None Include="..\..\..\doc\newsArchives.html">
<Filter>Html Files</Filter>
</None>
<None Include="..\..\..\doc\notes.html">
<Filter>Html Files</Filter>
</None>
<None Include="..\..\..\doc\notesArchives.html">
<Filter>Html Files</Filter>
</None>
<None Include="..\..\..\doc\scripts.html">
<Filter>Html Files</Filter>
</None>
<None Include="..\..\..\doc\styles.css">
<Filter>Html Files</Filter>
</None>
<None Include="..\..\..\doc\subversion.html">
<Filter>Html Files</Filter>
</None>
<None Include="..\..\..\doc\vsinstall.html">
<Filter>Html Files</Filter>
</None>
<None Include="..\..\..\doc\xtra.html">
<Filter>Html Files</Filter>
</None>
</ItemGroup>
</Project>
-37
View File
@@ -1,37 +0,0 @@
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
-37
View File
@@ -1,37 +0,0 @@
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
@@ -1,286 +0,0 @@
<?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>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</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>
<LanguageStandard>stdcpp17</LanguageStandard>
</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>
<LanguageStandard>stdcpp17</LanguageStandard>
</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>
<LanguageStandard>stdcpp17</LanguageStandard>
</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>
<LanguageStandard>stdcpp17</LanguageStandard>
</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>
<LanguageStandard>stdcpp17</LanguageStandard>
</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>
<LanguageStandard>stdcpp17</LanguageStandard>
</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>
@@ -1,42 +0,0 @@
<?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>
-37
View File
@@ -1,37 +0,0 @@
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
@@ -1,289 +0,0 @@
<?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>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</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>
<LanguageStandard>stdcpp17</LanguageStandard>
</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>
<LanguageStandard>stdcpp17</LanguageStandard>
</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>
<LanguageStandard>stdcpp17</LanguageStandard>
</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>
@@ -1,42 +0,0 @@
<?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>
-37
View File
@@ -1,37 +0,0 @@
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
@@ -1,271 +0,0 @@
<?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>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</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>
<LanguageStandard>stdcpp17</LanguageStandard>
</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>
<LanguageStandard>stdcpp17</LanguageStandard>
</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>
<LanguageStandard>stdcpp17</LanguageStandard>
</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>
<LanguageStandard>stdcpp17</LanguageStandard>
</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>
@@ -1,42 +0,0 @@
<?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>
-292
View File
@@ -1,292 +0,0 @@
<?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>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</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>
<LanguageStandard>stdcpp17</LanguageStandard>
</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>
<LanguageStandard>stdcpp17</LanguageStandard>
</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>
<LanguageStandard>stdcpp17</LanguageStandard>
</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>
<LanguageStandard>stdcpp17</LanguageStandard>
</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>
<LanguageStandard>stdcpp17</LanguageStandard>
</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>
<LanguageStandard>stdcpp17</LanguageStandard>
</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>
@@ -1,48 +0,0 @@
<?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>
-79
View File
@@ -1,79 +0,0 @@
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
@@ -1,306 +0,0 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
BFAB845D188B216E00DFE955 /* ASBeautifier.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BFAB8454188B216E00DFE955 /* ASBeautifier.cpp */; };
BFAB845E188B216E00DFE955 /* ASEnhancer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BFAB8455188B216E00DFE955 /* ASEnhancer.cpp */; };
BFAB845F188B216E00DFE955 /* ASFormatter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BFAB8456188B216E00DFE955 /* ASFormatter.cpp */; };
BFAB8460188B216E00DFE955 /* ASLocalizer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BFAB8457188B216E00DFE955 /* ASLocalizer.cpp */; };
BFAB8461188B216E00DFE955 /* ASResource.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BFAB8459188B216E00DFE955 /* ASResource.cpp */; };
BFAB8462188B216E00DFE955 /* astyle_main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BFAB845B188B216E00DFE955 /* astyle_main.cpp */; };
/* End PBXBuildFile section */
/* Begin PBXCopyFilesBuildPhase section */
BF4E3ED3188B1A45005C5AD0 /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = /usr/share/man/man1/;
dstSubfolderSpec = 0;
files = (
);
runOnlyForDeploymentPostprocessing = 1;
};
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
BF4E3ED5188B1A45005C5AD0 /* astyle */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = astyle; sourceTree = BUILT_PRODUCTS_DIR; };
BFAB8454188B216E00DFE955 /* ASBeautifier.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ASBeautifier.cpp; sourceTree = "<group>"; };
BFAB8455188B216E00DFE955 /* ASEnhancer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ASEnhancer.cpp; sourceTree = "<group>"; };
BFAB8456188B216E00DFE955 /* ASFormatter.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ASFormatter.cpp; sourceTree = "<group>"; };
BFAB8457188B216E00DFE955 /* ASLocalizer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ASLocalizer.cpp; sourceTree = "<group>"; };
BFAB8458188B216E00DFE955 /* ASLocalizer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ASLocalizer.h; sourceTree = "<group>"; };
BFAB8459188B216E00DFE955 /* ASResource.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ASResource.cpp; sourceTree = "<group>"; };
BFAB845A188B216E00DFE955 /* astyle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = astyle.h; sourceTree = "<group>"; };
BFAB845B188B216E00DFE955 /* astyle_main.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = astyle_main.cpp; sourceTree = "<group>"; };
BFAB845C188B216E00DFE955 /* astyle_main.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = astyle_main.h; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
BF4E3ED2188B1A45005C5AD0 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
BF4E3ECC188B1A45005C5AD0 = {
isa = PBXGroup;
children = (
BFAB8453188B216E00DFE955 /* src */,
BF4E3ED6188B1A45005C5AD0 /* Products */,
);
sourceTree = "<group>";
usesTabs = 1;
wrapsLines = 0;
};
BF4E3ED6188B1A45005C5AD0 /* Products */ = {
isa = PBXGroup;
children = (
BF4E3ED5188B1A45005C5AD0 /* astyle */,
);
name = Products;
sourceTree = "<group>";
};
BFAB8453188B216E00DFE955 /* src */ = {
isa = PBXGroup;
children = (
BFAB8454188B216E00DFE955 /* ASBeautifier.cpp */,
BFAB8455188B216E00DFE955 /* ASEnhancer.cpp */,
BFAB8456188B216E00DFE955 /* ASFormatter.cpp */,
BFAB8457188B216E00DFE955 /* ASLocalizer.cpp */,
BFAB8458188B216E00DFE955 /* ASLocalizer.h */,
BFAB8459188B216E00DFE955 /* ASResource.cpp */,
BFAB845A188B216E00DFE955 /* astyle.h */,
BFAB845B188B216E00DFE955 /* astyle_main.cpp */,
BFAB845C188B216E00DFE955 /* astyle_main.h */,
);
name = src;
path = ../../src;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
BF4E3ED4188B1A45005C5AD0 /* AStyle */ = {
isa = PBXNativeTarget;
buildConfigurationList = BF4E3EDE188B1A45005C5AD0 /* Build configuration list for PBXNativeTarget "AStyle" */;
buildPhases = (
BF4E3ED1188B1A45005C5AD0 /* Sources */,
BF4E3ED2188B1A45005C5AD0 /* Frameworks */,
BF4E3ED3188B1A45005C5AD0 /* CopyFiles */,
);
buildRules = (
);
dependencies = (
);
name = AStyle;
productName = AStyle;
productReference = BF4E3ED5188B1A45005C5AD0 /* astyle */;
productType = "com.apple.product-type.tool";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
BF4E3ECD188B1A45005C5AD0 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1010;
};
buildConfigurationList = BF4E3ED0188B1A45005C5AD0 /* Build configuration list for PBXProject "AStyle" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
);
mainGroup = BF4E3ECC188B1A45005C5AD0;
productRefGroup = BF4E3ED6188B1A45005C5AD0 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
BF4E3ED4188B1A45005C5AD0 /* AStyle */,
);
};
/* End PBXProject section */
/* Begin PBXSourcesBuildPhase section */
BF4E3ED1188B1A45005C5AD0 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
BFAB8462188B216E00DFE955 /* astyle_main.cpp in Sources */,
BFAB8460188B216E00DFE955 /* ASLocalizer.cpp in Sources */,
BFAB845F188B216E00DFE955 /* ASFormatter.cpp in Sources */,
BFAB8461188B216E00DFE955 /* ASResource.cpp in Sources */,
BFAB845D188B216E00DFE955 /* ASBeautifier.cpp in Sources */,
BFAB845E188B216E00DFE955 /* ASEnhancer.cpp in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin XCBuildConfiguration section */
BF4E3EDC188B1A45005C5AD0 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.9;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
};
name = Debug;
};
BF4E3EDD188B1A45005C5AD0 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.9;
SDKROOT = macosx;
};
name = Release;
};
BF4E3EDF188B1A45005C5AD0 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
CLANG_CXX_LIBRARY = "libc++";
COMBINE_HIDPI_IMAGES = YES;
DSTROOT = /;
GCC_ENABLE_CPP_EXCEPTIONS = NO;
GCC_ENABLE_CPP_RTTI = NO;
MACOSX_DEPLOYMENT_TARGET = 10.9;
OBJROOT = Build/Intermediates;
PRODUCT_NAME = astyle;
STRIP_INSTALLED_PRODUCT = NO;
SYMROOT = Build/Products;
};
name = Debug;
};
BF4E3EE0188B1A45005C5AD0 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
CLANG_CXX_LIBRARY = "libc++";
COMBINE_HIDPI_IMAGES = YES;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = dwarf;
DSTROOT = /;
GCC_ENABLE_CPP_EXCEPTIONS = NO;
GCC_ENABLE_CPP_RTTI = NO;
GCC_OPTIMIZATION_LEVEL = 3;
GCC_PREPROCESSOR_DEFINITIONS = "NDEBUG=1";
LLVM_LTO = YES;
MACOSX_DEPLOYMENT_TARGET = 10.9;
OBJROOT = Build/Intermediates;
PRODUCT_NAME = astyle;
SYMROOT = Build/Products;
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
BF4E3ED0188B1A45005C5AD0 /* Build configuration list for PBXProject "AStyle" */ = {
isa = XCConfigurationList;
buildConfigurations = (
BF4E3EDC188B1A45005C5AD0 /* Debug */,
BF4E3EDD188B1A45005C5AD0 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
BF4E3EDE188B1A45005C5AD0 /* Build configuration list for PBXNativeTarget "AStyle" */ = {
isa = XCConfigurationList;
buildConfigurations = (
BF4E3EDF188B1A45005C5AD0 /* Debug */,
BF4E3EE0188B1A45005C5AD0 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = BF4E3ECD188B1A45005C5AD0 /* Project object */;
}
@@ -1,16 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:AStyle.xcodeproj">
</FileRef>
<FileRef
location = "group:AStyleA.xcodeproj">
</FileRef>
<FileRef
location = "group:AStyleDylib.xcodeproj">
</FileRef>
<FileRef
location = "group:AStyleJava.xcodeproj">
</FileRef>
</Workspace>
@@ -1,310 +0,0 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
BFAB844A188B1FC700DFE955 /* ASBeautifier.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BFAB8441188B1FC700DFE955 /* ASBeautifier.cpp */; };
BFAB844B188B1FC700DFE955 /* ASEnhancer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BFAB8442188B1FC700DFE955 /* ASEnhancer.cpp */; };
BFAB844C188B1FC700DFE955 /* ASFormatter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BFAB8443188B1FC700DFE955 /* ASFormatter.cpp */; };
BFAB844F188B1FC700DFE955 /* ASResource.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BFAB8446188B1FC700DFE955 /* ASResource.cpp */; };
BFAB8450188B1FC700DFE955 /* astyle.h in Headers */ = {isa = PBXBuildFile; fileRef = BFAB8447188B1FC700DFE955 /* astyle.h */; };
BFAB8451188B1FC700DFE955 /* astyle_main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BFAB8448188B1FC700DFE955 /* astyle_main.cpp */; };
BFAB8452188B1FC700DFE955 /* astyle_main.h in Headers */ = {isa = PBXBuildFile; fileRef = BFAB8449188B1FC700DFE955 /* astyle_main.h */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
BF4E3EC5188B1A21005C5AD0 /* libastyle.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libastyle.a; sourceTree = BUILT_PRODUCTS_DIR; };
BFAB8441188B1FC700DFE955 /* ASBeautifier.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ASBeautifier.cpp; sourceTree = "<group>"; };
BFAB8442188B1FC700DFE955 /* ASEnhancer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ASEnhancer.cpp; sourceTree = "<group>"; };
BFAB8443188B1FC700DFE955 /* ASFormatter.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ASFormatter.cpp; sourceTree = "<group>"; };
BFAB8446188B1FC700DFE955 /* ASResource.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ASResource.cpp; sourceTree = "<group>"; };
BFAB8447188B1FC700DFE955 /* astyle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = astyle.h; sourceTree = "<group>"; };
BFAB8448188B1FC700DFE955 /* astyle_main.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = astyle_main.cpp; sourceTree = "<group>"; };
BFAB8449188B1FC700DFE955 /* astyle_main.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = astyle_main.h; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
BF4E3EC2188B1A21005C5AD0 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
BF4E3EBC188B1A21005C5AD0 = {
isa = PBXGroup;
children = (
BFAB8440188B1FC700DFE955 /* src */,
BF4E3EC6188B1A21005C5AD0 /* Products */,
);
sourceTree = "<group>";
usesTabs = 1;
wrapsLines = 0;
};
BF4E3EC6188B1A21005C5AD0 /* Products */ = {
isa = PBXGroup;
children = (
BF4E3EC5188B1A21005C5AD0 /* libastyle.a */,
);
name = Products;
sourceTree = "<group>";
};
BFAB8440188B1FC700DFE955 /* src */ = {
isa = PBXGroup;
children = (
BFAB8441188B1FC700DFE955 /* ASBeautifier.cpp */,
BFAB8442188B1FC700DFE955 /* ASEnhancer.cpp */,
BFAB8443188B1FC700DFE955 /* ASFormatter.cpp */,
BFAB8446188B1FC700DFE955 /* ASResource.cpp */,
BFAB8447188B1FC700DFE955 /* astyle.h */,
BFAB8448188B1FC700DFE955 /* astyle_main.cpp */,
BFAB8449188B1FC700DFE955 /* astyle_main.h */,
);
name = src;
path = ../../src;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXHeadersBuildPhase section */
BF4E3EC3188B1A21005C5AD0 /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
BFAB8450188B1FC700DFE955 /* astyle.h in Headers */,
BFAB8452188B1FC700DFE955 /* astyle_main.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXHeadersBuildPhase section */
/* Begin PBXNativeTarget section */
BF4E3EC4188B1A21005C5AD0 /* AStyleA */ = {
isa = PBXNativeTarget;
buildConfigurationList = BF4E3EC9188B1A21005C5AD0 /* Build configuration list for PBXNativeTarget "AStyleA" */;
buildPhases = (
BF4E3EC1188B1A21005C5AD0 /* Sources */,
BF4E3EC2188B1A21005C5AD0 /* Frameworks */,
BF4E3EC3188B1A21005C5AD0 /* Headers */,
);
buildRules = (
);
dependencies = (
);
name = AStyleA;
productName = AStyleA;
productReference = BF4E3EC5188B1A21005C5AD0 /* libastyle.a */;
productType = "com.apple.product-type.library.static";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
BF4E3EBD188B1A21005C5AD0 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1010;
};
buildConfigurationList = BF4E3EC0188B1A21005C5AD0 /* Build configuration list for PBXProject "AStyleA" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
);
mainGroup = BF4E3EBC188B1A21005C5AD0;
productRefGroup = BF4E3EC6188B1A21005C5AD0 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
BF4E3EC4188B1A21005C5AD0 /* AStyleA */,
);
};
/* End PBXProject section */
/* Begin PBXSourcesBuildPhase section */
BF4E3EC1188B1A21005C5AD0 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
BFAB8451188B1FC700DFE955 /* astyle_main.cpp in Sources */,
BFAB844A188B1FC700DFE955 /* ASBeautifier.cpp in Sources */,
BFAB844F188B1FC700DFE955 /* ASResource.cpp in Sources */,
BFAB844C188B1FC700DFE955 /* ASFormatter.cpp in Sources */,
BFAB844B188B1FC700DFE955 /* ASEnhancer.cpp in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin XCBuildConfiguration section */
BF4E3EC7188B1A21005C5AD0 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.9;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
};
name = Debug;
};
BF4E3EC8188B1A21005C5AD0 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.9;
SDKROOT = macosx;
};
name = Release;
};
BF4E3ECA188B1A21005C5AD0 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
CLANG_CXX_LIBRARY = "libc++";
COMBINE_HIDPI_IMAGES = YES;
EXECUTABLE_PREFIX = lib;
GCC_ENABLE_CPP_EXCEPTIONS = NO;
GCC_ENABLE_CPP_RTTI = NO;
GCC_PREPROCESSOR_DEFINITIONS = (
"$(inherited)",
"ASTYLE_LIB=1",
);
MACOSX_DEPLOYMENT_TARGET = "";
OBJROOT = Build/Intermediates;
PRODUCT_NAME = astyle;
SKIP_INSTALL = YES;
STRIP_INSTALLED_PRODUCT = NO;
SYMROOT = Build/Products;
};
name = Debug;
};
BF4E3ECB188B1A21005C5AD0 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
CLANG_CXX_LIBRARY = "libc++";
COMBINE_HIDPI_IMAGES = YES;
DEBUG_INFORMATION_FORMAT = dwarf;
EXECUTABLE_PREFIX = lib;
GCC_ENABLE_CPP_EXCEPTIONS = NO;
GCC_ENABLE_CPP_RTTI = NO;
GCC_OPTIMIZATION_LEVEL = 3;
GCC_PREPROCESSOR_DEFINITIONS = (
"NDEBUG=1",
"ASTYLE_LIB=1",
);
LLVM_LTO = YES;
MACOSX_DEPLOYMENT_TARGET = "";
OBJROOT = Build/Intermediates;
PRODUCT_NAME = astyle;
SKIP_INSTALL = YES;
SYMROOT = Build/Products;
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
BF4E3EC0188B1A21005C5AD0 /* Build configuration list for PBXProject "AStyleA" */ = {
isa = XCConfigurationList;
buildConfigurations = (
BF4E3EC7188B1A21005C5AD0 /* Debug */,
BF4E3EC8188B1A21005C5AD0 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
BF4E3EC9188B1A21005C5AD0 /* Build configuration list for PBXNativeTarget "AStyleA" */ = {
isa = XCConfigurationList;
buildConfigurations = (
BF4E3ECA188B1A21005C5AD0 /* Debug */,
BF4E3ECB188B1A21005C5AD0 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = BF4E3EBD188B1A21005C5AD0 /* Project object */;
}
@@ -1,316 +0,0 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
BFAB8424188B1ACD00DFE955 /* ASBeautifier.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BFAB841B188B1ACD00DFE955 /* ASBeautifier.cpp */; };
BFAB8425188B1ACD00DFE955 /* ASEnhancer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BFAB841C188B1ACD00DFE955 /* ASEnhancer.cpp */; };
BFAB8426188B1ACD00DFE955 /* ASFormatter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BFAB841D188B1ACD00DFE955 /* ASFormatter.cpp */; };
BFAB8429188B1ACD00DFE955 /* ASResource.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BFAB8420188B1ACD00DFE955 /* ASResource.cpp */; };
BFAB842A188B1ACD00DFE955 /* astyle.h in Headers */ = {isa = PBXBuildFile; fileRef = BFAB8421188B1ACD00DFE955 /* astyle.h */; };
BFAB842B188B1ACD00DFE955 /* astyle_main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BFAB8422188B1ACD00DFE955 /* astyle_main.cpp */; };
BFAB842C188B1ACD00DFE955 /* astyle_main.h in Headers */ = {isa = PBXBuildFile; fileRef = BFAB8423188B1ACD00DFE955 /* astyle_main.h */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
BF4E3EA5188B19C8005C5AD0 /* libastyle32.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = libastyle32.dylib; sourceTree = BUILT_PRODUCTS_DIR; };
BFAB841B188B1ACD00DFE955 /* ASBeautifier.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ASBeautifier.cpp; sourceTree = "<group>"; };
BFAB841C188B1ACD00DFE955 /* ASEnhancer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ASEnhancer.cpp; sourceTree = "<group>"; };
BFAB841D188B1ACD00DFE955 /* ASFormatter.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ASFormatter.cpp; sourceTree = "<group>"; };
BFAB8420188B1ACD00DFE955 /* ASResource.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ASResource.cpp; sourceTree = "<group>"; };
BFAB8421188B1ACD00DFE955 /* astyle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = astyle.h; sourceTree = "<group>"; };
BFAB8422188B1ACD00DFE955 /* astyle_main.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = astyle_main.cpp; sourceTree = "<group>"; };
BFAB8423188B1ACD00DFE955 /* astyle_main.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = astyle_main.h; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
BF4E3EA2188B19C8005C5AD0 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
BF4E3E9C188B19C8005C5AD0 = {
isa = PBXGroup;
children = (
BFAB841A188B1ACD00DFE955 /* src */,
BF4E3EA6188B19C8005C5AD0 /* Products */,
);
sourceTree = "<group>";
usesTabs = 1;
wrapsLines = 0;
};
BF4E3EA6188B19C8005C5AD0 /* Products */ = {
isa = PBXGroup;
children = (
BF4E3EA5188B19C8005C5AD0 /* libastyle32.dylib */,
);
name = Products;
sourceTree = "<group>";
};
BFAB841A188B1ACD00DFE955 /* src */ = {
isa = PBXGroup;
children = (
BFAB841B188B1ACD00DFE955 /* ASBeautifier.cpp */,
BFAB841C188B1ACD00DFE955 /* ASEnhancer.cpp */,
BFAB841D188B1ACD00DFE955 /* ASFormatter.cpp */,
BFAB8420188B1ACD00DFE955 /* ASResource.cpp */,
BFAB8421188B1ACD00DFE955 /* astyle.h */,
BFAB8422188B1ACD00DFE955 /* astyle_main.cpp */,
BFAB8423188B1ACD00DFE955 /* astyle_main.h */,
);
name = src;
path = ../../src;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXHeadersBuildPhase section */
BF4E3EA3188B19C8005C5AD0 /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
BFAB842A188B1ACD00DFE955 /* astyle.h in Headers */,
BFAB842C188B1ACD00DFE955 /* astyle_main.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXHeadersBuildPhase section */
/* Begin PBXNativeTarget section */
BF4E3EA4188B19C8005C5AD0 /* AStyleDylib */ = {
isa = PBXNativeTarget;
buildConfigurationList = BF4E3EA9188B19C8005C5AD0 /* Build configuration list for PBXNativeTarget "AStyleDylib" */;
buildPhases = (
BF4E3EA1188B19C8005C5AD0 /* Sources */,
BF4E3EA2188B19C8005C5AD0 /* Frameworks */,
BF4E3EA3188B19C8005C5AD0 /* Headers */,
);
buildRules = (
);
dependencies = (
);
name = AStyleDylib;
productName = AStyleDylib;
productReference = BF4E3EA5188B19C8005C5AD0 /* libastyle32.dylib */;
productType = "com.apple.product-type.library.dynamic";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
BF4E3E9D188B19C8005C5AD0 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1010;
ORGANIZATIONNAME = Jim;
};
buildConfigurationList = BF4E3EA0188B19C8005C5AD0 /* Build configuration list for PBXProject "AStyleDylib" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
);
mainGroup = BF4E3E9C188B19C8005C5AD0;
productRefGroup = BF4E3EA6188B19C8005C5AD0 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
BF4E3EA4188B19C8005C5AD0 /* AStyleDylib */,
);
};
/* End PBXProject section */
/* Begin PBXSourcesBuildPhase section */
BF4E3EA1188B19C8005C5AD0 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
BFAB842B188B1ACD00DFE955 /* astyle_main.cpp in Sources */,
BFAB8424188B1ACD00DFE955 /* ASBeautifier.cpp in Sources */,
BFAB8429188B1ACD00DFE955 /* ASResource.cpp in Sources */,
BFAB8426188B1ACD00DFE955 /* ASFormatter.cpp in Sources */,
BFAB8425188B1ACD00DFE955 /* ASEnhancer.cpp in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin XCBuildConfiguration section */
BF4E3EA7188B19C8005C5AD0 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.9;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
};
name = Debug;
};
BF4E3EA8188B19C8005C5AD0 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.9;
SDKROOT = macosx;
};
name = Release;
};
BF4E3EAA188B19C8005C5AD0 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
CLANG_CXX_LIBRARY = "libc++";
COMBINE_HIDPI_IMAGES = YES;
EXECUTABLE_PREFIX = lib;
GCC_ENABLE_CPP_EXCEPTIONS = NO;
GCC_ENABLE_CPP_RTTI = NO;
GCC_PREPROCESSOR_DEFINITIONS = (
"$(inherited)",
"ASTYLE_LIB=1",
);
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
LIBRARY_SEARCH_PATHS = "";
MACOSX_DEPLOYMENT_TARGET = 10.9;
OBJROOT = Build/Intermediates;
PRODUCT_NAME = astyle32;
SKIP_INSTALL = YES;
STRIP_INSTALLED_PRODUCT = NO;
SYMROOT = Build/Products;
};
name = Debug;
};
BF4E3EAB188B19C8005C5AD0 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
CLANG_CXX_LIBRARY = "libc++";
COMBINE_HIDPI_IMAGES = YES;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = dwarf;
EXECUTABLE_PREFIX = lib;
GCC_ENABLE_CPP_EXCEPTIONS = NO;
GCC_ENABLE_CPP_RTTI = NO;
GCC_OPTIMIZATION_LEVEL = 3;
GCC_PREPROCESSOR_DEFINITIONS = (
"NDEBUG=1",
"ASTYLE_LIB=1",
);
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
LIBRARY_SEARCH_PATHS = "";
LLVM_LTO = YES;
MACOSX_DEPLOYMENT_TARGET = 10.9;
OBJROOT = Build/Intermediates;
PRODUCT_NAME = astyle32;
SKIP_INSTALL = YES;
SYMROOT = Build/Products;
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
BF4E3EA0188B19C8005C5AD0 /* Build configuration list for PBXProject "AStyleDylib" */ = {
isa = XCConfigurationList;
buildConfigurations = (
BF4E3EA7188B19C8005C5AD0 /* Debug */,
BF4E3EA8188B19C8005C5AD0 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
BF4E3EA9188B19C8005C5AD0 /* Build configuration list for PBXNativeTarget "AStyleDylib" */ = {
isa = XCConfigurationList;
buildConfigurations = (
BF4E3EAA188B19C8005C5AD0 /* Debug */,
BF4E3EAB188B19C8005C5AD0 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = BF4E3E9D188B19C8005C5AD0 /* Project object */;
}
@@ -1,327 +0,0 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
BFAB8437188B1C4A00DFE955 /* ASBeautifier.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BFAB842E188B1C4A00DFE955 /* ASBeautifier.cpp */; };
BFAB8438188B1C4A00DFE955 /* ASEnhancer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BFAB842F188B1C4A00DFE955 /* ASEnhancer.cpp */; };
BFAB8439188B1C4A00DFE955 /* ASFormatter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BFAB8430188B1C4A00DFE955 /* ASFormatter.cpp */; };
BFAB843C188B1C4A00DFE955 /* ASResource.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BFAB8433188B1C4A00DFE955 /* ASResource.cpp */; };
BFAB843D188B1C4A00DFE955 /* astyle.h in Headers */ = {isa = PBXBuildFile; fileRef = BFAB8434188B1C4A00DFE955 /* astyle.h */; };
BFAB843E188B1C4A00DFE955 /* astyle_main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BFAB8435188B1C4A00DFE955 /* astyle_main.cpp */; };
BFAB843F188B1C4A00DFE955 /* astyle_main.h in Headers */ = {isa = PBXBuildFile; fileRef = BFAB8436188B1C4A00DFE955 /* astyle_main.h */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
BF4E3EB5188B19F4005C5AD0 /* libastyle32j.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = libastyle32j.dylib; sourceTree = BUILT_PRODUCTS_DIR; };
BFAB842E188B1C4A00DFE955 /* ASBeautifier.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ASBeautifier.cpp; sourceTree = "<group>"; };
BFAB842F188B1C4A00DFE955 /* ASEnhancer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ASEnhancer.cpp; sourceTree = "<group>"; };
BFAB8430188B1C4A00DFE955 /* ASFormatter.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ASFormatter.cpp; sourceTree = "<group>"; };
BFAB8433188B1C4A00DFE955 /* ASResource.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ASResource.cpp; sourceTree = "<group>"; };
BFAB8434188B1C4A00DFE955 /* astyle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = astyle.h; sourceTree = "<group>"; };
BFAB8435188B1C4A00DFE955 /* astyle_main.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = astyle_main.cpp; sourceTree = "<group>"; };
BFAB8436188B1C4A00DFE955 /* astyle_main.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = astyle_main.h; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
BF4E3EB2188B19F4005C5AD0 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
BF4E3EAC188B19F4005C5AD0 = {
isa = PBXGroup;
children = (
BFAB842D188B1C4A00DFE955 /* src */,
BF4E3EB6188B19F4005C5AD0 /* Products */,
);
sourceTree = "<group>";
usesTabs = 1;
wrapsLines = 0;
};
BF4E3EB6188B19F4005C5AD0 /* Products */ = {
isa = PBXGroup;
children = (
BF4E3EB5188B19F4005C5AD0 /* libastyle32j.dylib */,
);
name = Products;
sourceTree = "<group>";
};
BFAB842D188B1C4A00DFE955 /* src */ = {
isa = PBXGroup;
children = (
BFAB842E188B1C4A00DFE955 /* ASBeautifier.cpp */,
BFAB842F188B1C4A00DFE955 /* ASEnhancer.cpp */,
BFAB8430188B1C4A00DFE955 /* ASFormatter.cpp */,
BFAB8433188B1C4A00DFE955 /* ASResource.cpp */,
BFAB8434188B1C4A00DFE955 /* astyle.h */,
BFAB8435188B1C4A00DFE955 /* astyle_main.cpp */,
BFAB8436188B1C4A00DFE955 /* astyle_main.h */,
);
name = src;
path = ../../src;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXHeadersBuildPhase section */
BF4E3EB3188B19F4005C5AD0 /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
BFAB843D188B1C4A00DFE955 /* astyle.h in Headers */,
BFAB843F188B1C4A00DFE955 /* astyle_main.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXHeadersBuildPhase section */
/* Begin PBXNativeTarget section */
BF4E3EB4188B19F4005C5AD0 /* AStyleJava */ = {
isa = PBXNativeTarget;
buildConfigurationList = BF4E3EB9188B19F4005C5AD0 /* Build configuration list for PBXNativeTarget "AStyleJava" */;
buildPhases = (
BF4E3EB1188B19F4005C5AD0 /* Sources */,
BF4E3EB2188B19F4005C5AD0 /* Frameworks */,
BF4E3EB3188B19F4005C5AD0 /* Headers */,
);
buildRules = (
);
dependencies = (
);
name = AStyleJava;
productName = AStyleJava;
productReference = BF4E3EB5188B19F4005C5AD0 /* libastyle32j.dylib */;
productType = "com.apple.product-type.library.dynamic";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
BF4E3EAD188B19F4005C5AD0 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1010;
};
buildConfigurationList = BF4E3EB0188B19F4005C5AD0 /* Build configuration list for PBXProject "AStyleJava" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
);
mainGroup = BF4E3EAC188B19F4005C5AD0;
productRefGroup = BF4E3EB6188B19F4005C5AD0 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
BF4E3EB4188B19F4005C5AD0 /* AStyleJava */,
);
};
/* End PBXProject section */
/* Begin PBXSourcesBuildPhase section */
BF4E3EB1188B19F4005C5AD0 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
BFAB843E188B1C4A00DFE955 /* astyle_main.cpp in Sources */,
BFAB8437188B1C4A00DFE955 /* ASBeautifier.cpp in Sources */,
BFAB843C188B1C4A00DFE955 /* ASResource.cpp in Sources */,
BFAB8439188B1C4A00DFE955 /* ASFormatter.cpp in Sources */,
BFAB8438188B1C4A00DFE955 /* ASEnhancer.cpp in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin XCBuildConfiguration section */
BF4E3EB7188B19F4005C5AD0 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.9;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
};
name = Debug;
};
BF4E3EB8188B19F4005C5AD0 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.9;
SDKROOT = macosx;
};
name = Release;
};
BF4E3EBA188B19F4005C5AD0 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
CLANG_CXX_LIBRARY = "libc++";
COMBINE_HIDPI_IMAGES = YES;
EXECUTABLE_PREFIX = lib;
GCC_ENABLE_CPP_EXCEPTIONS = NO;
GCC_ENABLE_CPP_RTTI = NO;
GCC_PREPROCESSOR_DEFINITIONS = (
"$(inherited)",
"ASTYLE_JNI=1",
);
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
HEADER_SEARCH_PATHS = (
"$(inherited)",
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
"/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/include",
"/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/include/darwin",
/System/Library/Frameworks/JavaVM.framework/Headers,
);
MACOSX_DEPLOYMENT_TARGET = 10.9;
OBJROOT = Build/Intermediates;
PRODUCT_NAME = astyle32j;
SKIP_INSTALL = YES;
STRIP_INSTALLED_PRODUCT = NO;
SYMROOT = Build/Products;
};
name = Debug;
};
BF4E3EBB188B19F4005C5AD0 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
CLANG_CXX_LIBRARY = "libc++";
COMBINE_HIDPI_IMAGES = YES;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = dwarf;
EXECUTABLE_PREFIX = lib;
GCC_ENABLE_CPP_EXCEPTIONS = NO;
GCC_ENABLE_CPP_RTTI = NO;
GCC_OPTIMIZATION_LEVEL = 3;
GCC_PREPROCESSOR_DEFINITIONS = (
"NDEBUG=1",
"ASTYLE_JNI=1",
);
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
HEADER_SEARCH_PATHS = (
"$(inherited)",
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
"/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/include",
"/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/include/darwin",
/System/Library/Frameworks/JavaVM.framework/Headers,
);
LLVM_LTO = YES;
MACOSX_DEPLOYMENT_TARGET = 10.9;
OBJROOT = Build/Intermediates;
PRODUCT_NAME = astyle32j;
SKIP_INSTALL = YES;
SYMROOT = Build/Products;
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
BF4E3EB0188B19F4005C5AD0 /* Build configuration list for PBXProject "AStyleJava" */ = {
isa = XCConfigurationList;
buildConfigurations = (
BF4E3EB7188B19F4005C5AD0 /* Debug */,
BF4E3EB8188B19F4005C5AD0 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
BF4E3EB9188B19F4005C5AD0 /* Build configuration list for PBXNativeTarget "AStyleJava" */ = {
isa = XCConfigurationList;
buildConfigurations = (
BF4E3EBA188B19F4005C5AD0 /* Debug */,
BF4E3EBB188B19F4005C5AD0 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = BF4E3EAD188B19F4005C5AD0 /* Project object */;
}
-96
View File
@@ -1,96 +0,0 @@
#!/bin/bash
# Install the AStyle documentation.
# For testing change the "prefix" variable and "sudo" is not needed.
# NOTE: Use ~, not $HOME. HOME is not defined in SciTE.
# prefix may be changed for testing
prefix=/usr/local
#prefix=/private/tmp/AStyle.dst/usr
NORMAL=""
# CYAN, BOLD: information
CYAN=""
# YELLOW; system message
YELLOW=""
# WHITE, BOLD; error message
WHITE=""
# RED, BOLD: failure message
RED=""
ipath=$prefix/bin
SYSCONF_PATH=$prefix/share/doc/astyle
# the path was changed in release 2.01
# SYSCONF_PATH_OLD may be removed at the appropriate time
SYSCONF_PATH_OLD=$prefix/share/astyle
# $USER will be root when sudo is used
INSTALL="install -o $USER -g wheel"
# define $result variable here
result=:
unset result
# error handler function
check_error () {
if [ $result -ne 0 ] ; then
echo -n $WHITE
echo "Error $result returned from function"
echo "Did you use 'sudo'?"
echo $RED
echo "** INSTALL FAILED **"
echo $NORMAL
exit 1
fi
unset result
}
# must install from this path
if [ ! -f install.sh ]; then
echo -n $WHITE
echo "Cannot install from this path"
echo "Change to the directory containing install.sh"
echo; echo -n $NORMAL
exit 1
fi
# remove previous documentation
echo $CYAN
echo "Installing documentation to $SYSCONF_PATH"
echo -n $YELLOW
if [ -d $SYSCONF_PATH/html ]; then
rm -rf $SYSCONF_PATH/html
result=$?; check_error
fi
# create documentation install directory
if [ ! -d $SYSCONF_PATH/html ]; then
$INSTALL -m 755 -d $SYSCONF_PATH/html
result=$?; check_error
fi
# copy documentation
for files in astyle.html \
install.html \
news.html \
notes.html \
styles.css
do
$INSTALL -m 644 "../../doc/$files" $SYSCONF_PATH/html
result=$?; check_error
done
# remove old documentation
if [ -d $SYSCONF_PATH_OLD ]; then
rm -rf $SYSCONF_PATH_OLD
result=$?; check_error
fi
echo $WHITE
echo "** INSTALL SUCCEEDED **"
# has astyle been installed?
if [ ! -f $ipath/astyle ]; then
echo $WHITE
echo "The astyle executable has not been installed"
echo "Use xcodebuild to install astyle"
fi
echo; echo -n $NORMAL
-79
View File
@@ -1,79 +0,0 @@
#!/bin/bash
# Unnstall the astyle file and documentation.
# For testing change the "prefix" variable and "sudo" is not needed.
# NOTE: Use ~, not $HOME. HOME is not defined in SciTE.
# prefix may be changed for testing
prefix=/usr/local
#prefix=/private/tmp/AStyle.dst/usr
NORMAL=""
# CYAN, BOLD: information
CYAN=""
# YELLOW; system message
YELLOW=""
# WHITE, BOLD; error message
WHITE=""
# RED, BOLD: failure message
RED=""
ipath=$prefix/bin
SYSCONF_PATH=$prefix/share/doc/astyle
# the path was changed in release 2.01
# SYSCONF_PATH_OLD may be removed at the appropriate time
SYSCONF_PATH_OLD=$prefix/share/astyle
# define $result variable here
result=:
unset result
# error handler function
check_error () {
if [ $result -ne 0 ] ; then
echo -n $WHITE
echo "Error $result returned from function"
echo "Did you use 'sudo'?"
echo $RED
echo "** INSTALL FAILED **"
echo $NORMAL
exit 1
fi
unset result
}
# must uninstall from this path
if [ ! -f uninstall.sh ]; then
echo -n $WHITE
echo "Cannot uninstall from this path"
echo "Change to the directory containing uninstall.sh"
#read -sn1 -p "Press any key to end . . ."
echo; echo -n $NORMAL
exit 1
fi
# uninstall astyle
echo $CYAN
echo "Unnstalling astyle from $ipath"
echo -n $YELLOW
rm -f $ipath/astyle
result=$?; check_error
# uninstall documentation
echo -n $CYAN
echo "Unnstalling documentation from $SYSCONF_PATH"
echo -n $YELLOW
if [ -d $SYSCONF_PATH ]; then
rm -rf $SYSCONF_PATH
result=$?; check_error
fi
#remove old documentation
if [ -d $SYSCONF_PATH_OLD ]; then
rm -rf $SYSCONF_PATH_OLD
result=$?; check_error
fi
echo $WHITE
echo "** INSTALL SUCCEEDED **"
echo; echo -n $NORMAL
File diff suppressed because it is too large. Load diff
-157
View File
@@ -1,157 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Artistic Style Developer</title>
<meta http-equiv="Content-Language" content="en-us" />
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<link href="../favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<!-- body text -->
<h1>Artistic Style Developer Information</h1>
<p class="noindent">
Artistic Style has compile options for creating a shared library (DLL) or static library for use with a Graphical
User Interface (GUI). The shared library can be called from a C++, <span style="white-space: nowrap;">Objective-C</span>, C#, or Python program. There
are also compile options for a Java Native Interface (JNI) that allows it to be called from a Java program. Information
on compiling the various configurations of Artistic Style is in the Install Information.</p>
<p class="noindent">
The following Examples show how to call the Artistic Style shared library using the various programming languages.
They are command line programs and do NOT contain a Graphical User Interface for the Artistic Style options.
</p>
<p class="noindent">
Source code, documentation, and test files for all examples can be downloaded below or obtained from the <a href="subversion.html">source code repositories</a>.
These projects also require the source from Artistic Style in addition to the development examples.
</p>
<h3>Examples</h3>
<p>
Source code from the following examples can be copied and pasted into an editor or development environment for
compiling and running. Or the source code can be downloaded from the "Source Code Downloads" section below. The
code highlighting for the example html pages was done with <a href="http://www.andre-simon.de/"
target="_blank" title="open new window">Highlight</a>.
The examples were formatted with Artistic Style using the Horstmann style.</p>
<p>
<a href="https://astyle.sourceforge.net/develop/cpp.html">Calling Artistic Style from a C++ Program</a> contains information on calling Artistic Style
as a shared or static library from a C++ program. It includes a C++ sample program that can be used to test the
Artistic Style libraries.</p>
<p>
<a href="https://astyle.sourceforge.net/develop/objc.html">Calling Artistic Style from an <span style="white-space: nowrap;">Objective-C</span> Program</a> contains information on calling Artistic
Style as a shared or static library from an <span style="white-space: nowrap;">Objective-C</span> program. It includes an <span style="white-space: nowrap;">Objective-C</span> sample program that
can be used to test the Artistic Style shared libraries.</p>
<p style="margin-left: 0.5in;">
<a href="https://astyle.sourceforge.net/develop/gnustep.html"><span style="white-space: nowrap;">Objective-C</span> on Windows and Linux</a> contains information on compiling and running
<span style="white-space: nowrap;">Objective-C</span> programs using GNUstep. It has instructions for compiling the Example program on Windows or
Linux.</p>
<p>
<a href="https://astyle.sourceforge.net/develop/jni.html">Calling Artistic Style as a Java Native Interface</a> contains information on calling Artistic
Style as a shared library from a Java program using the Java Native Interface (JNI). It includes a Java sample
program that can be used to test the shared library. The Java Development Kit (JDK) must be installed to compile
Artistic Style.</p>
<p>
<a href="https://astyle.sourceforge.net/develop/sharp.html">Calling Artistic Style from a C# Program</a> contains information on calling Artistic Style
as a shared library from a C# program. It includes a C# sample program that can be used to test the shared
library.</p>
<p style="margin-left: 0.5in;">
<a href="https://astyle.sourceforge.net/develop/sharp2.html">Calling Artistic Style from a C# Program Using Explicit Linking</a> contains information
on calling Artistic Style as a shared library from a C# program. It uses explicit linking to do a dynamic load
of the shared library. It includes a C# sample program that can be used to test the shared library.</p>
<p style="margin-left: 0.5in;">
With explicit linking the shared library name can be changed at runtime, allowing the C# program to load
either an x86 or x64 bit shared library. This provides the capability to make the program run on &quot;Any
CPU&quot;. The shared object can also be loaded from any directory, not just the directories searched by the
system.</p>
<p>
<a href="https://astyle.sourceforge.net/develop/python.html">Calling Artistic Style from a Python Script</a> contains information on calling Artistic
Style as a shared library from a Python script. It includes a sample Python script that can be used to test the
shared library.</p>
<h3>Source Code Downloads (old examples)</h3>
<p>
The downloads contain the above example source files and the test data. The test data is the same for all
downloads.</p>
<h4>
<a href="https://sourceforge.net/projects/astyle/files/OldFiles/examples/example-cpp.zip" target="_blank"
title="open new window">C++ Example</a>
</h4>
<p>
The example for C++ contains the methods to call Artistic Style from a static or shared library using a C++ program.
Compile Artistic Style as a static or shared library using the macro ASTYLE_LIB. Copy the shared library to the
same folder as the C++ Example executable. Compile Example.cpp as an executable and link it to the library. It
will format files in the test&#8209;data directory included in the download.</p>
<h4>
<a href="https://sourceforge.net/projects/astyle/files/OldFiles/examples/example-objc.zip" target="_blank"
title="open new window"><span style="white-space: nowrap;">Objective-C</span> Example</a>
</h4>
<p>
The example for <span style="white-space: nowrap;">Objective-C</span> contains the methods to call Artistic Style from a static or shared library
using an <span style="white-space: nowrap;">Objective-C</span> program. Compile Artistic Style as a static or shared library using the macro ASTYLE_LIB.
Copy the shared library to the same folder as the <span style="white-space: nowrap;">Objective-C</span> Example executable. It will format files in
the test&#8209;data directory included in the download.</p>
<h4>
<a href="https://sourceforge.net/projects/astyle/files/OldFiles/examples/example-java.zip" target="_blank"
title="open new window">Java Example</a>
</h4>
<p>
The example for Java includes an AStyleInterface class that calls the shared library using the Java Native Interface
(JNI). Artistic Style must be compiled as a shared library using the macro ASTYLE_JNI. Copy the shared library
to the same folder as the Java class files (it is loaded from the classpath directory). It will format files in
the test&#8209;data directory included in the download.</p>
<h4>
<a href="https://sourceforge.net/projects/astyle/files/OldFiles/examples/example-sharp.zip" target="_blank"
title="open new window">C# Example</a>
</h4>
<p>
This example for C# includes an AStyleInterface class that calls the shared library using a C# program. Compile
Artistic Style as a shared library using the macro ASTYLE_LIB. Copy the shared library to the same folder as the
C# class files (C# does a Windows type search for the shared library, looking first in the startup program's directory).
It will format files in the test&#8209;data directory included in the download.</p>
<h4 style="margin-left: 0.5in;">
<a href="https://sourceforge.net/projects/astyle/files/OldFiles/examples/example-sharp2.zip" target="_blank"
title="open new window">C# Example Using Explicit Linking</a>
</h4>
<p style="margin-left: 0.5in;">
This example for C# includes an AStyleInterface class that calls the shared library using a C# program.
It uses explicit linking to do a dynamic load of the shared library. Compile Artistic Style as a shared library
using the macro ASTYLE_LIB. Copy the shared library to the same folder as the C# class files. It will format files
in the test&#8209;data directory included in the download.</p>
<h4>
<a href="https://sourceforge.net/projects/astyle/files/OldFiles/examples/example-python.zip" target="_blank"
title="open new window">Python Examples</a>
</h4>
<p>
This download contains three Python scripts. The script ExampleExe.py calls an Artistic Style executable to format
C++ source code. The scripts ExampleByte.py and ExampleUnicode.py call the Artistic Style shared library. The
executable and shared library must be compiled using the macro ASTYLE_LIB. Copy the executable and shared library
to the same folder as the Python scripts. They will format files in the test&#8209;data directory included in
the download.</p>
<p style="margin-left: -0.4in; text-align: center;">
<a href="http://sourceforge.net/projects/astyle">
<img src="http://sflogo.sourceforge.net/sflogo.php?group_id=2319&type=16" alt="" />
</a></p>
</body>
</html>
Binary file not shown.

Before

Width:  |  Height:  |  Size: 318 B

-260
View File
@@ -1,260 +0,0 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="styles.css" rel="stylesheet" type="text/css" />
<link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />
<title>Artistic Style - Index</title>
<script type="text/javascript">
window.onscroll = function () { scrollFunction() };
function scrollFunction() {
if (document.body.scrollTop > 400 || document.documentElement.scrollTop > 400) {
document.getElementById("topBtn").style.display = "block";
} else {
document.getElementById("topBtn").style.display = "none";
}
}
function topFunction() {
document.documentElement.scrollTop = 0;
document.body.scrollTop = 0;
}
</script>
</head>
<body id="Contents">
<div id="slogan">Artistic Style</div>
<button onclick="topFunction()" id="topBtn" title="Go to top"><span class="menu-arrow">&#9650;</span> <b>Top</b></button>
<label for="responsive-button" class="responsive-button">Artistic Style Menu</label>
<input type="checkbox" id="responsive-button" role="button">
<nav class="menu">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="astyle.html">Documentation</a></li>
<li><a href="">Release Info <span class="menu-arrow">&#9660;</span></a>
<ul>
<li><a href="news.html">News</a></li>
<li><a href="notes.html">Release Notes</a></li>
</ul>
</li>
<li><a href="">Installation <span class="menu-arrow">&#9660;</span></a>
<ul>
<li><a href="install.html">Install</a></li>
<li><a href="subversion.html">Source Repos</a></li>
<li><a href="http://sourceforge.net/projects/astyle/files/">Download</a></li>
</ul>
</li>
<li><a href="">Resources <span class="menu-arrow">&#9660;</span></a>
<ul>
<li><a href="scripts.html">Scripts</a></li>
<li><a href="links.html">Links</a></li>
<li><a href="development.html">Developer Info</a></li>
</ul>
</li>
</ul>
</nav>
<main>
<header>
<h1>Artistic Style</h1>
<h2>
A Free, Fast, and Small Automatic Formatter<br />
for C, C++, C++/CLI, <span style="white-space: nowrap;">Objective-C</span>, C#, JS, GSC, and Java Source Code
</h2>
</header>
<section class="project-links">
<table class="responsive-table">
<tbody>
<tr>
<td><img src="favicon.ico" alt="" /></td>
<td>Project Page:</td>
<td><a href="http://astyle.sourceforge.net/">http://astyle.sourceforge.net/</a></td>
</tr>
<tr>
<td>
<img src="https://a.fsdn.com/con/img/sftheme/favicon.ico" alt="" /></td>
<td>SourceForge:</td>
<td><a href="http://sourceforge.net/projects/astyle/">http://sourceforge.net/projects/astyle/</a></td>
</tr>
<tr>
<td>
<img src="folder-green-git.ico" alt="" /></td>
<td>Source code:</td>
<td><a href="https://gitlab.com/saalen/astyle">https://gitlab.com/saalen/astyle</a></td>
</tr>
</tbody>
</table>
</section>
<section class="intro">
<p class="noindent">
Artistic Style is a source code indenter, formatter, and beautifier for the C, C++, C++/CLI, <span style="white-space: nowrap;">Objective-C</span>,
C# and Java programming languages. Written in C++, it can be used from the command line or incorporated as
a library in another program. Options can be entered from the command line or from an option file. The library
version can be called from programs written in languages other that C++.
</p>
</section>
<section class="content">
<article>
<h3><a href="astyle.html">Documentation</a></h3>
<p>
There is complete documentation for using Artistic Style. The documentation needed to install and run Artistic
Style is included in the distribution package.
</p>
</article>
<article>
<h3><a href="news.html">News</a> and <a href="notes.html">Release Notes</a></h3>
<p>
These contain information on the changes in the current release. The News contains information on major changes
and how they might affect the use of Artistic Style. The Release Notes contain a list of all changes made to
the program. Information on old releases is also listed.
</p>
</article>
<article>
<h3><a href="http://sourceforge.net/projects/astyle/files/">Download</a></h3>
<p>
The latest release can be downloaded from the SourceForge file releases page. A link to the "latest version" near
the top of the page will download the correct package for your platform. Or you can select the appropriate
package from the "astyle" release folders. The Windows package contains a compiled binary. Other platforms
will need to compile the source code. Makefiles are included for the most popular compilers. Follow the install
instructions for the appropriate platform as described in the "Install" documentation.
</p>
</article>
<article>
<h3><a href="install.html">Install</a></h3>
<p>
This contains information on compiling and installing Artistic Style. The Windows platform comes with a precompiled
executable. Other platforms must compile the project. Follow the instructions for the appropriate platform (Linux,
Mac, or Windows).
</p>
</article>
<article>
<h3><a href="subversion.html">Source Repositories</a></h3>
<p>
The latest development files can be checked out from the Artistic Style repository using Subversion or Git.
</p>
</article>
<article>
<h3><a href="http://opensource.org/licenses/MIT">License</a></h3>
<p>
Artistic Style may be used and distributed under the
MIT license. The MIT is a permissive license with a minimum of restrictions on software use. It is compatible
with the GNU General Public License (GPL) and most other licenses.
</p>
<p>
The main points of the terms of the license are:
</p>
<ul>
<li>The source code and executables can be used in free or commercial applications.</li>
<li>The source code can be modified to create derivative works.</li>
<li>The source code does NOT have to be made available in the derivative works.</li>
<li>No guarantee or warranty is provided, the software is provided "as-is".</li>
</ul>
<p>
In addition to the license, the documentation accompanying Artistic Style may be distributed or republished
without the author's consent.
</p>
</article>
<article>
<h3><a href="scripts.html">Scripts</a></h3>
<p>
This page contains scripts to support the Artistic Style program. They are in various script languages and work
on different platforms. It includes scripts to clean the directories of backup files created by Artistic
Style.
</p>
</article>
<article>
<h3><a href="links.html">Links</a></h3>
<p>
There are several applications that use Artistic Style as contributed software. It is either embedded in the application
or called as a command line program. The applications include Graphical User Interfaces to view the effect of
formatting of the source code, development environments for various platforms, and other software. There
are also links to style information and various style guides.
</p>
</article>
<article>
<h3><a href="development.html">Developer Information</a></h3>
<p>
Artistic Style has compile options for creating a shared library (DLL) or static library for use with a Graphical
User Interface (GUI). With the Java Development Kit (JDK) installed it can be compiled as a Java Native Interface
(JNI) and called from a Java program. The Developer Information documents the calling procedure and has example
programs for C++, C++/CLI, <span style="white-space: nowrap;">Objective-C</span>, Java, C#, and Python.
</p>
</article>
<article>
<h3>Bug Reports, Change Requests, Update Notifications</h3>
<p>
Bug reports and change requests should be submitted to the <a href="https://sourceforge.net/p/astyle/bugs/">
Sourceforge</a> or <a href="https://gitlab.com/saalen/astyle/-/issues">Gitlab</a> bug trackers. Include an example that shows
the problem, reduced to the minimum that still has the problem. It does not need to be functional code.
</p>
<p><strong>Sourceforge notes:</strong><br>
The bug report <strong>will not be indented</strong>
after the data is submitted. You may indicate the indentation when you submit the request (e.g. replace leading
spaces with periods). Or, you can use the &quot;Formatting Help&quot; button to the left of the ticket form. To
submit preformatted text, make a code block using 3 or more tildes (~~~) or back-ticks (```) on a line before and
after the text.
</p>
<p>
You can subscribe to file change notifications using an RSS feed. There is an RSS symbol on the Artistic Style
<a href="https://sourceforge.net/projects/astyle/files/">files page</a>. You can also subscribe after downloading
a file. To the right of the &quot;Me&quot; option in the SourceForge header, there will be a button containing
a number (it may be 0). Click on this to get your &quot;Download History&quot;. Beside the download will be an
option to subscribe. You should receive an email of the file changes.
</p>
</article>
<article>
<h3>Maintainers</h3>
<p>
Artistic Style is maintained and updated by <a href="mailto:as@andre-simon.de">Andre Simon</a>.
Previous maintainer: Jim Pattee. The original author was Tal Davidson, Israel.
</p>
</article>
<article>
<h3>Acknowledgments</h3>
<p>
Thanks to Jim&nbsp;Watson, Fred&nbsp;Shwartz, W.&nbsp;Nathaniel&nbsp;Mills&nbsp;III, Danny&nbsp;Deschenes, Andre&nbsp;Houde,
Richard&nbsp;Bullington, Paul-Michael&nbsp;Agapow, Daryn&nbsp;Adler, Dieter&nbsp;Bayer, Sam&nbsp;Cooler, Jim&nbsp;Duff,
Emilio&nbsp;Guijarro, Jens&nbsp;Krinke, Eran&nbsp;Ifrah, Travis&nbsp;Robinson, Max&nbsp;Horn, Ettl&nbsp;Martin,
Mario&nbsp;Gleichmann, J&nbsp;P&nbsp;Nurmi, Colin&nbsp;D&nbsp;Bennett, Christian&nbsp;Stimming, MrTact, Wim&nbsp;Rosseel,
Matthew&nbsp;Woehlke, Chris&nbsp;Schwarz, Chang&nbsp;Jiang, Arseny&nbsp;Solokha, Milian&nbsp;Wolff, Johannes&nbsp;Martin,
Arne&nbsp;F?rlie, Marvin&nbsp;Humphrey, J, Christopher&nbsp;Sean&nbsp;Morrison, Keith&nbsp;OHara, louis6g, Evmenov&nbsp;Georgiy,
beta100100, Ruzzz, Peter&nbsp;A.&nbsp;Bigot, HyungKi&nbsp;Jeong, David&nbsp;Faure, Carl&nbsp;Moore, Mofi, Travis&nbsp;Vitek,
Bunel&nbsp;Nicolas, Juan&nbsp;Alday, Rian&nbsp;Quinn, David&nbsp;Haney, Tam&aacute;s Kurucsai
for their patches and contributions to Artistic Style.
</p>
<p>
Thanks to all the dedicated beta-testers and bug notifiers!
</p>
</article>
</section>
<footer>
<p class="sourceforge-logo">
<a href="http://sourceforge.net/projects/astyle">
<img src="http://sflogo.sourceforge.net/sflogo.php?group_id=2319&type=16" alt="SourceForge Logo" />
</a>
</p>
</footer>
</main>
</body>
</html>
-632
View File
@@ -1,632 +0,0 @@
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link href="styles.css" rel="stylesheet" type="text/css" />
<link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />
<title>Artistic Style - Installation</title>
<script type="text/javascript">
// the <button> is described in the <body> section
window.onscroll = function () { scrollFunction() };
// When the user scrolls down 400px from the top of the document, show the button
function scrollFunction() {
if (document.body.scrollTop > 400 || document.documentElement.scrollTop > 400) {
document.getElementById("topBtn").style.display = "block";
} else {
document.getElementById("topBtn").style.display = "none";
}
}
// When the user clicks on the button, scroll to the top of the document
// Changed to scroll to "Contents" instead of "Top".
function topFunction() {
//document.body.scrollTop = 0;
//document.documentElement.scrollTop = 0;
var scroll_element = document.getElementById("Contents");
scroll_element.scrollIntoView();
}
</script>
</head>
<body id="Contents">
<div id="slogan">Artistic Style Installation</div>
<button onclick="topFunction()" id="topBtn" title="Go to Contents"><span class="menu-arrow">&#9650;</span>
<b>Top</b></button>
<label for="responsive-button" class="responsive-button">Artistic Style Installation</label>
<input type="checkbox" id="responsive-button" role="button">
<nav class="menu">
<ul>
<li><a href="#_Artistic_Style_Versions">Packages</a>
<ul>
</ul>
</li>
<li><a href="#_Linux_Version">Linux <span class="menu-arrow">&#9660;</span></a>
<ul>
<li><a href="#_CMake_Linux">CMake</a></li>
<li><a href="#_GCC_Makefile">GCC Makefile</a></li>
<li><a href="#_Clang_Makefile">Clang Makefile</a></li>
<li><a href="#_Intel_Makefile">Intel Makefile</a></li>
</ul>
</li>
<li><a href="#_MacOS_Version">MacOS <span class="menu-arrow">&#9660;</span></a>
<ul>
<li><a href="#_CMake_MacOS">CMake</a></li>
<li><a href="#_MacOS_Makefile">Makefile</a></li>
<li><a href="#_Xcode">XCode</a></li>
</ul>
</li>
<li><a href="#_Windows_Version">Windows <span class="menu-arrow">&#9660;</span></a>
<ul>
<li><a href="#_Precompiled_Executable">Precompiled</a></li>
<li><a href="#_CMake_Windows">CMake</a></li>
<li><a href="#_Visual_Studio">Visual Studio</a></li>
</ul>
</li>
<li><a href="">Other <span class="menu-arrow">&#9660;</span></a>
<ul>
<li><a href="#_Other_Makefile_Targets">Makefile Targets</a></li>
<li><a href="#_Other_Development_Environments">Other Development Environments</a></li>
</ul>
</li>
<li><a href="#_Compiler_Options">Compiler Options</a>
<ul>
</ul>
</li>
<li><a href="#_PIP">Python PIP</a>
<ul>
</ul>
</li>
</nav>
<div style="margin-left: 2em;margin-top: 1em;">
<h3 id="_Artistic_Style_Versions" style="margin-top: 1em;">Available Packages</h3>
<p>
<strong>Linux</strong> (astyle_x.x.tar.bz2): Source code, documentation, and makefiles for compiling.<br>
<strong>Windows</strong> (astyle_x.x.zip): Source code, documentation, and pre-built executable.<br>
<strong>Windows 64-bit</strong> (astyle_x.x_x64.zip): Source code, documentation, and pre-built executable for 64-bit systems.
</p>
<h3 id="_Linux_Version">Linux Version</h3>
<h4 id="_CMake_Linux">CMake Linux</h4>
<p>
Artistic Style has CMake support for GCC, Clang, and Intel compilers. Other compilers will probably work if
the necessary options are set. Refer to the section on <a href="#_Compiler_Options">Compiler Options</a> for
more information.</p>
<p>
Since the different builds use the same source files an &quot;out of source&quot; build should be used. The
default build is a release version. A debug version must be specifically requested. The following options
are available for building the various configurations.
</p>
<ul>
<li>The default builds the Artistic Style command line executable (astyle). </li>
<li>BUILD_SHARED_LIBS=ON builds the Artistic Style program as a shared object (libastyle.so). </li>
<li>BUILD_JAVA_LIBS=ON builds the Artistic Style program as a shared object (libastylej.so) that can be
called
from a Java program. The Java Development Kit (JDK) must be installed for the project to compile. CMake
will
look for the JDK in the Java default folder or in a system path. If the files cannot be found, use the
variable
JAVA_HOME=&lt;Java Directory&gt; with the path into the top level Java folder.</li>
<li>BUILD_STATIC_LIBS=ON builds the Artistic Style program as a Static Library (libastyle.a) that can be
statically linked to a user program.</li>
</ul>
<h5>EXAMPLES</h5>
<p>
The following examples are assumed to be run from the astyle directory that contains
CMakeLists.txt. They show out of source builds that generate makefiles.</p>
<p>
To build the console release version:</p>
<pre>mkdir as-gcc-exe
cd as-gcc-exe
cmake ../
make
</pre>
<p>
To build the shared debug version:</p>
<pre>mkdir --parents as-gcc-so
cd as-gcc-so
cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Debug ../
make
</pre>
<p>
To build the Java release version using the Clang compiler and the JAVA_HOME variable:</p>
<pre>mkdir as-clang-java
cd as-clang-java
CXX=clang++ cmake -DBUILD_JAVA_LIBS=ON -DJAVA_HOME=&quot;C:/Programs/Java&quot; ../
make
</pre>
<h5>INSTALL</h5>
<p>
The makefile install option installs the astyle executable and documentation files. The option installs from
the generated makefile, not CMake. You must have the appropriate permissions to use install. </p>
<p>
To install astyle:</p>
<pre>make install</pre>
<p>
The default install directory is /usr/local/bin for the executable and /usr/local/share/doc/astyle for the
documentation. To change the default install directory from /usr/local the CMake must be run with the option
CMAKE_INSTALL_PREFIX. </p>
<p>
To run CMake and change the install directory:</p>
<pre>cmake -DCMAKE_INSTALL_PREFIX=/usr ../
make install</pre>
<h5>UNINSTALL</h5>
<p>
There is no uninstall. The easiest way to uninstall is to use the install_manifest.txt file, for example
&quot;<strong>xargs rm &lt; install_manifest.txt</strong>&quot;.
</p>
<h4 id="_GCC_Makefile">GCC Makefile</h4>
<p>
To compile using the GCC compiler you must have GCC (3.1 or better) installed.
</p>
<p>
The build has no autoconf dependency. To build the Artistic Style configurations, use the makefile located
in the astyle/build/gcc directory. The executables will be in the astyle/build/gcc/bin directory. To build the
command line configuration, enter the following:
</p>
<pre>cd astyle/build/gcc<br />make
</pre>
<p>
To build the other astyle configurations, you can enter the file name or a symbolic name. Entering "make
astyle" or "make release" will build the command line configuration. Following are the symbolic names and file names
(in parens) of the various configurations:</p>
<ul>
<li><strong>release</strong> or <strong>astyle</strong> builds the Artistic Style command line program. This
is the
default option. </li>
<li><strong>shared</strong> or <strong>libastyle.so</strong> builds the Artistic Style program as a shared
library. </li>
<li><strong>static</strong> or <strong>libastyle.a</strong> builds the Artistic Style program as a static
library. </li>
<li><strong>debug</strong> or <strong>astyled</strong> builds the Artistic Style command line program with
debugging
information </li>
<li><strong>shareddebug</strong> or <strong>libastyled.so</strong> builds the Artistic Style program as a
shared library
with debugging information. </li>
<li><strong>staticdebug</strong> or <strong>libastyled.a</strong> builds the Artistic Style program as a
static library
with debugging information. </li>
<li><strong>all</strong> builds all the above configurations.
<p>
The following Java shared library builds are separate from the above. They include a Java Native
Interface (JNI)
and require that the Java Development Kit (JDK) be installed. The environment variable JAVA_HOME
should be defined.
It defines the install directory for the JDK. If the compile cannot find the file jni.h, either set
the JAVA_HOME variable or change the value in the makefile.</p>
</li>
<li><strong>java </strong>builds the Artistic Style program as a shared library which includes the JNI
(libastylej.so).
</li>
<li><strong>javadebug </strong>builds the Artistic Style program as a shared library which includes the JNI
and debugging
information
(libastylejd.so).</li>
<li><strong>javaall </strong>builds all the above java configurations.</li>
</ul>
<p>
More than one configuration can be built at the same time. For example, to build all the release
configurations enter:</p>
<pre>cd astyle/build/gcc<br />make release shared static</pre>
<p>
The <a href="#_Other_Makefile_Targets">Other Makefile Targets</a> section contains additional target
options.</p>
<h4 id="_Clang_Makefile">Clang Makefile</h4>
<p>
Clang has a static analyzer that finds potential bugs in C/C++ and <span style="white-space: nowrap;">
Objective-C</span> programs. It can be run as a standalone tool from the command-line and runs in tandem with
a build. There is a script file, analyze.sh, that will run the analysis on Artistic Style.</p>
<p>
The build has no autoconf dependency. To build the Artistic Style configurations use the makefile located in the
astyle/build/clang directory. The executables will be in the astyle/build/clang/bin directory. To build the
command line configuration, enter the following:</p>
<pre>cd astyle/build/clang<br />make
</pre>
<p>
To build the other astyle configurations, you can enter the file name or a symbolic name. The configurations for
Clang are the same as for the <a href="#_GCC_Makefile">GCC Makefile</a>. More than one configuration can be
built at the same time. For example, to build all the release configurations enter:</p>
<pre>cd astyle/build/clang<br />make release shared static
</pre>
<p>
The <a href="#_Other_Makefile_Targets">Other Makefile Targets</a> section contains additional target
options.</p>
<h4 id="_Intel_Makefile">Intel Makefile</h4>
<p>
These procedures and the makefile are for recent versions of the compiler. They may not work for earlier
versions. Instructions for your compiler are in the compiler documentation file "get_started_lc.htm".</p>
<p>
To compile with Intel there are environment variables that must be set by running the compiler environment
script compilervars.sh (or compilervars.csh) with an argument that specifies the target architecture. This
should be done before running the make. If it is not done, &quot;make&quot; will display an error message
stating that the compiler environment variables are not set.</p>
<p>
The build has no autoconf dependency. To build the Artistic Style configurations use the makefile located in
the astyle/build/intel directory. The output executables will be in the astyle/build/intel/bin directory. To
build the command line configuration, enter the following:</p>
<pre>cd astyle/build/intel<br />make</pre>
<p>
To build the other astyle configurations, you can enter the file name or a symbolic name. The configuration
names for Intel are the same as for the <a href="#_GCC_Makefile">GCC Makefile</a>. More than one configuration can
be built at the same time. For example, to build the entire debug configurations enter:</p>
<pre>cd astyle/build/intel<br />make debug shareddebug staticdebug</pre>
<p>
The <a href="#_Other_Makefile_Targets">Other Makefile Targets</a> section contains additional target
options.</p>
<p>
For other Linux development environments, follow the instructions in <a
href="#_Other_Development_Environments">Other
Development Environments</a>.</p>
<h3 id="_MacOS_Version">MacOS Version</h3>
<h4 id="_CMake_MacOS">CMake MacOS</h4>
<p>
Artistic Style has CMake support for MacOS. It is used the same as <a href="#_CMake_Linux">CMake Linux</a>
except the supported compilers are only GCC and Clang. The macOS default installs will be to /usr/local
instead of /usr.</p>
<h4 id="_MacOS_Makefile">MacOS Makefile</h4>
<p>
The Artistic Style makefile compile uses the Mac OS &quot;Command Line Tools&quot;. If you have Xcode 4.3 or
newer the command line tools, such as &quot;make&quot;, are NOT installed by default. They must be downloaded and
installed separately. Once everything is successfully installed, you should see &quot;make&quot; and other command
line developer tools in /usr/bin.</p>
<p>
The build has no autoconf dependency. To build the Artistic Style configurations use the makefile located in the
astyle/build/mac directory. The executables will be in the astyle/build/mac/bin directory. To build the
command line configuration, enter the following:</p>
<pre>cd astyle/build/mac<br />make
</pre>
<p>
To build the other astyle configurations, you can enter the file name or a symbolic name. The configurations
for
Mac are the same as for the <a href="#_GCC_Makefile">GCC Makefile</a>. More than one configuration can be
built at the same time. For example, to build all the release configurations enter:</p>
<pre>cd astyle/build/mac<br />make release shared static
</pre>
<p>
The <a href="#_Other_Makefile_Targets">Other Makefile Targets</a> section contains additional target
options.
The macOS default installs will be to /usr/local instead of /usr.</p>
<h4 id="_Xcode">Xcode</h4>
<p>
Artistic Style workspace and project files for the Xcode development environment are available in the
&quot;build/xcode&quot;
directory. A workspace can be used to build a single project or all the projects. The project files have
Debug
and Release configurations. The following projects are available.</p>
<ul>
<li><strong>AStyle</strong> builds the Artistic Style command line program (astyle). </li>
<li><strong>AStyleA</strong> builds the Artistic Style program as a Static Library (libastyle.a). This can
be statically
linked with an executable.</li>
<li><strong>AStyleDylib</strong> builds the Artistic Style program as a Dynamic Library (libastyle.dylib).
It can
be used with C/C++, <span style="white-space: nowrap;">Objective-C</span>, C#, and Python programs.</li>
<li><strong>AStyleJava</strong> builds the Artistic Style program as a Dynamic Library (libastylej.dylib)
that can be called from a Java program. The Java Development (JDK) is required for the project to compile. The
Project Properties must have an include path to the JDK include directory. The output dylib can also be called
from a C++ or C# program.</li>
</ul>
<h5>INSTALL</h5>
<p>
Only the astyle executable is installed. The library project installs are sent to UninstalledProjects in
the Build directory. The following instructions are for the astyle executable and documentation files. The
default
install directory is /usr/local/bin for the executable and /usr/local/share/doc/astyle for the
documentation.
You must have the appropriate permissions to use install. If sudo is not used for the install, an error will
occur during the build.</p>
<p>
To install the astyle executable in the default directory:</p>
<pre>cd astyle/build/xcode
sudo xcodebuild install -project AStyle.xcodeproj
</pre>
<p>A script is used to install the documentation from the same directory.</p>
<pre>sudo bash install.sh
</pre>
<h5>UNINSTALL</h5>
<p>
Uninstalls the executable and documentation. You must have the appropriate permissions to use uninstall.</p>
<p> A script is used to uninstall astyle and the documentation:</p>
<pre>sudo bash uninstall.sh
</pre>
<p>
NOTE: The uninstall option will NOT remove the .astylerc files from the users' home directories. The files
must
be removed individually for each user.</p>
<h3 id="_Windows_Version">Windows Version</h3>
<h4 id="_Precompiled_Executable">Precompiled Executable</h4>
<p>
In addition to the source files, the Windows distribution package contains an Artistic Style Win32
executable
(AStyle.exe). If you prefer to compile the executable yourself, use the following instructions.</p>
<h4 id="_CMake_Windows">CMake Windows</h4>
<p>
Artistic Style has CMake support for Borland, and MinGW compilers. Other compilers will probably work if
the necessary options are set. Refer to the section on <a href="#_Compiler_Options">Compiler Options</a> for
more information.</p>
<p>
The console executable will run for both of the supported compilers. The DLL builds may not. CMake does not
fully support all Windows compilers. To build the DLLs it would be best to generate an IDE project file and
compile the DLLs with the IDE. The &quot;build&quot; folder contains project files for CodeBlocks and Visual
Studio.
</p>
<p>
Since the different builds use the same source files an &quot;out of source&quot; build should be used. The
default build for MinGW is a release version. A debug version must be specifically requested. For
Borland, a release build may need to be specifically requested, depending on the CMake release used. Borland
has been tested with the bcc32c free compiler. It may or may not work with other Borland compilers. The
following
options are available for building the various configurations.</p>
<ul>
<li>The default builds the Artistic Style command line executable (AStyle.exe). </li>
<li>BUILD_SHARED_LIBS=ON builds the Artistic Style program as a DLL (AStylexx.dll, where xx is the astyle
release
number). </li>
<li>BUILD_JAVA_LIBS=ON builds the Artistic Style program as a DLL (AStylexxj.dll, where xx is the astyle
release
number) that can be called from a Java program. The Java Development Kit (JDK) must be installed for the
project
to compile. CMake will look for the JDK in the Java default folder or in a system path. If the files
cannot be
found, use the variable JAVA_HOME=&lt;Java Directory&gt; with the path into the top level Java folder.
</li>
<li>BUILD_STATIC_LIBS=ON builds the Artistic Style program as a Static Library (AStyleLib.lib) that can be
statically linked to a user program.</li>
</ul>
<h5>EXAMPLES</h5>
<p>
The following examples are assumed to be run from the astyle directory that contains
CMakeLists.txt. They show out of source builds that generate makefiles. </p>
<p>
A path to the compiler executable
may need to be declared before compiling. And the Borland free compiler will need the compiler name.
To set the variables before compiling (replace the path names with the paths on your computer):</p>
<pre>set PATH=C:\Program Files\CMake\bin;%PATH%
set PATH=C:\Program Files (x86)\Embarcadero\BCC101\bin;%PATH%
set CXX=bcc32c
</pre>
<p>
To build the Borland console release version (the release build may need to be specified):</p>
<pre>md as-bcc32c-exe
cd as-bcc32c-exe
cmake -G "Borland Makefiles" -DCMAKE_BUILD_TYPE=Release ../
make
</pre>
<p>
To build the MinGW Java release version using the JAVA_HOME variable:</p>
<pre>md as-mingw-exe
cd as-mingw-exe
cmake -G "MinGW Makefiles" -DBUILD_JAVA_LIBS=ON -DJAVA_HOME="C:/Programs/Java" ../
mingw32-make</pre>
<p>As stated previously, the DLL builds may not work with the CMake generated makefiles.</p>
<h5>INSTALL</h5>
<p>
The makefile install option installs the astyle executable and documentation files. The default is
&quot;C:\Program
Files\AStyle&quot; for the executable and &quot;C:\Program Files\AStyle\doc&quot; for the documentation.
You may need to run as an administrator to install. </p>
<h5>UNINSTALL</h5>
<p>
There is no uninstall. The uninstall must be done manually. Just remove the
AStyle folder indicated in the
Install. </p>
<h4 id="_Visual_Studio">Visual Studio</h4>
<p>
There are solution and project files for several versions of Microsoft Visual Studio. Open an Artistic Style
solution
file in the appropriate &quot;build&quot; directory. All projects have Debug, Release and Static
configurations.
Debug file output will be in the &quot;debug&quot; directory. Release file output will be in the
&quot;bin&quot;
directory. Static file output will be in the "binstatic" directory. The following solution files are
available.</p>
<ul>
<li><strong>All AStyle </strong>builds the release and the debug configurations for all the following.
</li>
<li><strong>AStyle </strong>builds the Artistic Style command line program (AStyle.exe). This project has an
extra
&quot;Static&quot;" option. It is the same as the &quot;Release&quot; build except that it is linked
with a static
runtime library. This is needed if the executable is to be run on a system without Visual Studio
installed. The
builds for this configuration are placed in a separate &quot;binstatic&quot; directory. </li>
<li><strong>AStyle Dll </strong>builds the Artistic Style program as a Dynamic Link Library (AStyle.dll).
This will
also build an export library and a static library for linking the dll. </li>
<li><strong>AStyle Java </strong>builds the Artistic Style program as a Dynamic Link Library (AStylej.dll)
that can
be called from a Java program. The Java Development (JDK) is required for the project to compile. The
Project
Properties must have an include path to the JDK include and include/win32 directories. This is set in
&quot;Project
&gt; Properties &gt; C/C++ &gt; General &gt; Additional&nbsp;Include&nbsp;Directories&quot;. The default
setting
is for the JDK to be installed in the default directory, but it may not be the most current release. The
output
DLL can also be called from a C++ or C# program.</li>
<li><strong>AStyle Lib </strong>builds the Artistic Style program as a Static Library (libAStyle.lib). This
can be
statically linked to a calling program.</li>
</ul>
<p>
For other Windows development environments, follow the instructions in <a
href="#_Other_Development_Environments">
Other Development Environments</a>.</p>
<h3 id="_Other_Makefile_Targets">Other Makefile Targets</h3>
<p>
The following makefile targets are available for GCC, Clang, Intel, and Mac.</p>
<h5>CLEAN</h5>
<p>
Removes the object and executable files for all configurations.</p>
<p>
To remove the files for all configurations:</p>
<pre>make clean
</pre>
<h5>CLEANOBJ</h5>
<p>
Removes the object files for all configurations. The executables will not be removed.</p>
<p>
To remove only the object files for all configurations:</p>
<pre>make cleanobj
</pre>
<h5>INSTALL</h5>
<p>
Installs the astyle executable and documentation files. The default is /usr/bin for the executable and
/usr/share/doc/astyle
for the documentation. You must have the appropriate permissions to use install.</p>
<p>
To install the astyle to the default directories:</p>
<pre>sudo make install
</pre>
<p>
To install astyle to a different bin directory set a value for the macro $(prefix). For example, to install
the
executable to a user's home directory (/home/<i>user</i>/bin):</p>
<pre>sudo make prefix=$HOME install
</pre>
<h5>UNINSTALL</h5>
<p> Uninstalls the executable and documentation. You must have the appropriate permissions to use uninstall.</p>
<p> To uninstall astyle from the default directories:</p>
<pre>sudo make uninstall
</pre>
<p>
To uninstall the files from a different directory set a value for the macro $(prefix). For example, to
uninstall
the files from a user's home directory (/home/<i>user</i>):</p>
<pre> sudo make prefix=$HOME uninstall
</pre>
<p>
NOTE: The uninstall option will NOT remove the .astylerc files from the users' home directories. The files
must
be removed individually for each user.</p>
<h3 id="_Other_Development_Environments">Other Development Environments</h3>
<p>
To use other development environments project files usually must be built. CMake can be used if the
development
environment is supported. Otherwise, use the development environment to create files.</p>
<ul>
<li>Create a project using the development environment.</li>
<li>Add to the project all the .cpp and .h files in the "src" directory.</li>
<li>The Compiler Options section discusses the compiler options to use.</li>
<li>Compile.</li>
</ul>
<h3 id="_Compiler_Options">Compiler Options</h3>
<p>
No macro definitions are required to compile the executable. To compile as a static or shared (dynamic)
library
define the macro ASTYLE_LIB. To compile a Java shared (dynamic) library define the macro ASTYLE_JNI. The
option ASTYLE_NO_EXPORTS is sometimes needed for static libraries to prevent compiler error and warning
messages. Use the appropriate compiler and linker options to compile the static or shared library. Add debug
options to compile the debug versions.</p>
<p>
Artistic Style is a small program and it is best to optimize for speed. The debug configurations are not
usually
optimized. To optimize for speed in the release configurations, use the macro NDEBUG to remove asserts. If
necessary, use an option to activate the C++17 standards (-std=c++17 on most compilers). Use an
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. </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">
<img src="http://sflogo.sourceforge.net/sflogo.php?group_id=2319&type=16" alt="" />
</a>
</p>
</div>
</div>
</body>
</html>
-228
View File
@@ -1,228 +0,0 @@
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link href="styles.css" rel="stylesheet" type="text/css" />
<link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />
<title>Artistic Style - Links</title>
</head>
<body>
<h1>Artistic Style Links</h1>
<h3>Programs Using Artistic Style</h3>
<p>
The following development environments use Artistic Style as a contributed add-on. It is either embedded in the
application or called as a command line program. </p>
<p>
Some of the programs are using old versions of Artistic
Style. Be sure to check the AStyle version before using.</p>
<p>
<a href="https://atom.io/" target="_blank" title="open new window"><strong>Atom</strong></a> is a free and open-source
text and source code editor for OS X, Linux, and Windows. Artistic Style can be added as a plug-in. Search for
formatter-astyle and follow the <a href="https://atom.io/packages/formatter-astyle"
target="_blank" title="open new window">instructions</a>.</p>
<p>
<a href="http://sourceforge.net/projects/orwelldevcpp/" target="_blank" title="open new window"><strong>Dev-Cpp</strong></a>
is a new and improved fork of the original Bloodshed Dev-C++. It is a free IDE for programming in C and C++. It
is bundled with, and uses, the MinGW or TDM-GCC port of the GCC as its compiler. It is currently Windows only.
The Artistic Style interface includes a live Preview window.</p>
<p>
<a href="http://www.codeblocks.org/" target="_blank" title="open new window"><strong>CodeBlocks</strong></a> is
a multi-platform, open source, C++ development environment based on <a href="http://www.wxwidgets.org/" target="_blank"
title="open new window">wxWidgets</a>. It has support for multiple compilers and plug-ins for wxWidgets
development.</p>
<p>
<a href="http://www.codelite.org/" target="_blank" title="open new window"><strong>CodeLite</strong></a> is an
open source, free, cross platform IDE specialized in C, C++, PHP and JavaScript. It supports all major
compilers. There is support for wxWidgets and includes a class
generator and a unit test program generator. Code completion is based on <a href="http://ctags.sourceforge.net/"
target="_blank" title="open new window">Ctags</a>. Also available at this site is <a href="https://wxcrafter.codelite.org/"
target="_blank" title="open new window">wxCrafter</a>, a RAD tool for development of wxWidgets based applications.
</p>
<p>
<a href="http://www.jedit.org/" target="_blank" title="open new window"><strong>jEdit</strong></a> is a programmer's
text editor written in <a href="http://www.oracle.com/technetwork/java/" target="_blank" title="open new window">Java</a>
that runs on any operating system with Java support. A large collection of plug-ins is maintained by a world-wide
developer team. <a href="http://plugins.jedit.org/list.php?category=13" target="_blank" title="open new window">AStyle</a>
is available as a formatter plug-in.</p>
<p>
<a href="http://www.kdevelop.org/" target="_blank" title="open new window"><strong>KDevelop</strong></a> is a
multi-platform, integrated development environment for building <a href="http://www.kde.org/" target="_blank" title="open new window">
KDE</a> applications. It supports many programming languages and can be used to develop applications other
than KDE.</p>
<p>
<a href="http://monkeystudio.pasnox.com" target="_blank" title="open new window"><strong>Monkey Studio</strong></a>
is a cross platform IDE written in C++/Qt. Its primary goal was to be a <a href="https://www.qt.io/" target="_blank"
title="open new window">Qt</a> only IDE, but it evolved into a way to support Qt development and any kind
of project.</p>
<p>
<a href="https://www.qt.io/ide/" target="_blank" title="open new window"><strong>Qt Creator</strong></a> is a
cross-platform integrated development environment tailored to the needs of <a href="https://www.qt.io/"
target="_blank" title="open new window">Qt</a> developers. Artistic Style is available as a
<a href="https://doc.qt.io/qtcreator/creator-beautifier.html" target="_blank" title="open new window">beautifier plug-in</a>.
It can format source code within the editor or format an entire project. There is a help display available to
show the effect of each option.</p>
<p>
<a href="http://www.scintilla.org/SciTE.html" target="_blank" title="open new window"><strong>SciTE</strong></a>
is a Scintilla based source code editor. Originally built to demonstrate <a href="http://www.scintilla.org/"
target="_blank" title="open new window">Scintilla</a>, it has grown to be a generally useful editor with facilities
for building and running programs. It is currently available for Windows, Linux, and Mac OS operating systems.
The Linux and Mac versions are based on <a href="https://www.gtk.org/" target="_blank"
title="open new window">GTK+</a>.</p>
<p>
<a href="http://www.sublimetext.com/" target="_blank" title="open new window"><strong>Sublime Text</strong></a>
is a is a sophisticated text editor for code, markup and prose that includes Artistic Style as a plug-in. Nearly
everything in Sublime Text is customizable with simple JSON files. The plug-ins are Python based.
Sublime Text is available for Mac OS, Windows and Linux.</p>
<p>
<a href="https://sourceforge.net/projects/tide/" target="_blank" title="open new window"><strong>tIDE</strong></a>
is a full featured open source <a href="http://www.oracle.com/technetwork/java/" target="_blank" title="open new window">
Java</a> based integrated development environment. It is a small, powerful, quick, efficient, easy and open
framework to create 100% Java applications.</p>
<p>
<a href="http://www.ultraedit.com/" target="_blank" title="open new window"><strong>UltraEdit</strong></a> is
a commercial programmer&#39;s text editor for Microsoft Windows, Linux and Mac OS. It can be evaluated for free
for 30 days. Artistic Style is included in the Tools Toolbar. It includes an options dialog. The number of indent
spaces is passed to Artistic Style is based on the Indent Spaces value defined under Word Wrap/Tab Settings in
Configuration based on the file extension of the active file.</p>
<p>
<a href="http://www.visualstudio.com/" target="_blank" title="open new window"><strong>Visual Studio</strong></a><strong>,
AVR Studio and Atmel Studio</strong> are integrated development environments that use
<a href="http://visualstudiogallery.msdn.microsoft.com/2f3f04cd-2866-4e47-a671-d1cc9cc3fb02" target="_blank"
title="open new window">AStyle Extension</a>. This is an extension written in C# that formats
C/C++ and C# source code using Artistic Style. It can be installed in Visual Studio using the &quot;Tools&quot;
&gt; &quot;Extensions and Updates&quot; menu. Search the &quot;Online&quot; entry for &quot;astyle&quot;. The
source code is available on <a href=" https://github.com/Lukamicoder/astyle-extension" target="_blank" title="open new window">
GitHub</a>.</p>
<p>
<a href="https://code.visualstudio.com/" target="_blank" title="open new window"><strong>Visual Studio Code</strong></a>
is a programmer's code editor from Microsoft. It has an <a href="https://marketplace.visualstudio.com/items?itemName=chiehyu.vscode-astyle"
target="_blank" title="open new window">AStyle Extension</a> that will format source code using Artistic Style.
It can be installed from the Extensions panel in VS Code by searching for &quot;astyle&quot;. Or it can be downloaded
and installed from the <a href="https://marketplace.visualstudio.com/" target="_blank" title="open new window">Visual
Studio Marketplace</a>. Select the &quot;Visual Studio Code&quot; tab and search for &quot;astyle&quot;. It
adds entries to the default settings file which must be updated in the user settings file.
</p>
<p>
<a href="https://bitbucket.org/jtuc/winmerge2011/" target="_blank" title="open new window">
<strong>WinMerge 2011</strong></a> is a fork of the original WinMerge application published on SourceForge
by Thingamahoochie Software. It is a free software tool for data comparison and merging of files. It is useful
for determining what has changed between files and merging changes between versions. The ATL/MFC
dependencies have been removed&nbsp; and some useful features have been added. It uses Artistic Style to format
the source code. </p>
<h3>Graphical User Interfaces</h3>
<p>
Artistic Style is a command line program and, as such, does not give you a chance to review the effect of different
options before formatting the source code. The following Graphical User Interface program will allow you to review
the changes before the code is updated. They allow you to select the options you want without actually updating
the source.</p>
<p>
<a href="https://sourceforge.net/projects/astylewx.astyle.p/" target="_blank" title="open new window"><strong>Artistic
Style Wx</strong></a> is a GUI test program using wxWidgets. It uses an unmodified Artistic Style program
in a multi-platform environment. Everything done in the editor is undo-able, including formatting of the entire
document. Documents can be reviewed and reformatted using different options. A preview window shows the effect
of each option. The downloads contain source code, documentation, and an executable for the Windows version.
</p>
<h3>Other Programs</h3>
<p>
These programs were mentioned in previous versions of the News
or other documentation. They are included here for reference.</p>
<p>
<a href="https://github.com/google/googletest" target="_blank" title="open new window"><strong>Google Test</strong></a>
and <strong>Google Mock</strong> are frameworks for writing C++ tests on a variety of platforms. Based on the
xUnit architecture, it supports automatic test discovery, a rich set of assertions, user-defined assertions, death
tests, fatal and non-fatal failures, value- and type-parameterized tests, various options for running the tests,
and XML test report generation. Google Mock is a library for writing and using C++ mock methods.</p>
<p>
<a href="https://gitlab.com/saalen/highlight/" target="_blank" title="open new window"><strong>Highlight</strong></a>
converts source code to formatted text with syntax highlighting. Output is in several formats including HTML.
It supports over 200 programming languages and includes various color themes. Highlight is used for the examples in
the "Developer Information" section.</p>
<p>
<a href="https://microsoft.github.io/PTVS/" target="_blank" title="open new window"><strong>Python Tools for Visual
Studio</strong></a> is a free, open source plug-in that turns Visual Studio into a Python IDE. It can be switched
between Python versions or different Python interpreters. It uses the Visual Studio integrated debugger that enables
you to set break points, step through functions, change the current statement, inspect local variables, and perform
other operations while debugging.</p>
<p>
<a href="https://github.com/mikr/whatstyle" target="_blank" title="open new window"><strong>whatstyle</strong></a>
finds a code format style that fits given source files. The program looks at your source code and generates a
style definition that fits its original formatting as closely as possible. Several formatters and several programming
languages are supported. </p>
<h3>Information</h3>
<p>The following links contain general information on coding and coding styles.</p>
<p>
<a href="http://en.wikipedia.org/wiki/Indent_style" target="_blank" title="open new window"><strong>Indent Style</strong></a>
at Wikipedia discusses the common indent styles used in programming. The basic criteria for most Artistic Style
predefined styles were taken from this discussion.</p>
<p>
<a href="http://en.wikipedia.org/wiki/Programming_style" target="_blank" title="open new window"><strong>Programming
style</strong></a> at Wikipedia is a set of rules or guidelines used when writing the source code for a computer
program. It is often claimed that following a particular programming style will help programmers to read and understand
source code conforming to the style, and help to avoid introducing errors.</p>
<h3>Style Guides</h3>
<p>
<a href="http://www.chromium.org/developers/coding-style" target="_blank" title="open new window"><strong>Chromium
style guide</strong></a> generally follows the Google Style Guide but has extensions beyond the Google style
guide. There is interesting information on common C++ Do's and Don'ts.</p>
<p>
<a href="https://code.google.com/p/google-styleguide/" target="_blank" title="open new window"><strong>Google style
guides</strong></a> have Google's standards for several programming languages along with a python program
to verify the style and an Emacs script for using the style.</p>
<p>
<a href="https://community.kde.org/Policies/Kdelibs_Coding_Style" target="_blank" title="open new window"><strong>
Kdelibs Coding Style</strong></a> describes the recommended coding style for kdelibs. It follows the Qt 4
coding style, with one main difference.</p>
<p>
<a href="http://llvm.org/docs/CodingStandards.html" target="_blank" title="open new window"><strong>LLVM coding standards</strong></a>
describe a few coding standards that are being used in the LLVM source tree.</p>
<p>
<a href="https://developer.mozilla.org/en-US/docs/Developer_Guide/Coding_Style" target="_blank" title="open new window">
<strong>Mozilla&#8217;s style guide</strong></a> explains the basic styles and patterns that are used in the
Mozilla codebase.</p>
<p>
<a href="http://qt-project.org/wiki/Qt_Coding_Style" target="_blank" title="open new window"><strong>Qt Coding Style</strong></a>
is an overview of the coding conventions used when writing Qt code.</p>
<h3>Other Links</h3>
<p>
These links were mentioned in previous versions of the News. They are included here for reference.</p>
<p>
<a href="vsinstall.html" target="_blank" title="open new window"><strong>Install Instructions for .NET Framework SDK</strong></a>
are instructions for adding x64 platforms to Visual Studio Express 2010. Express editions after 2010 have the
x64 platforms already installed. Visual Studio 2010 is the last edition that will work on Windows XP (platform
toolset v100). Visual Studio 2012 (platform toolset v110) and higher contains dependencies on Windows API functions
that exist only on Windows Vista, Windows 7, and Windows 8. This means that applications built with Visual Studio
2012 and higher would fail to load and execute on Windows XP.</p>
<p style="margin-left: -0.4in; text-align: center;">
<a href="http://sourceforge.net/projects/astyle">
<img src="http://sflogo.sourceforge.net/sflogo.php?group_id=2319&type=16" alt="" /></a></p>
</body>
</html>
-607
View File
@@ -1,607 +0,0 @@
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link href="styles.css" rel="stylesheet" type="text/css" />
<link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />
<title>Artistic Style - News</title>
</head>
<body>
<h1>Artistic Style News</h1>
<h3>Artistic Style 3.6 (August 2024)</h3>
<div class="container-fluid">
<p>
A new option &quot;--pad-include&quot; / &quot;--pad-include=none&quot; was added to add or remove space padding after include directives.
</p>
<p>
Some C++ related formatting issues were fixed, e.g. apply &quot;align-pointer=type&quot; only if type is not a multiplication operand.
</p>
<p>
Build files were updated to apply c++17 compilation flags.
</p>
</div>
<h3>Artistic Style 3.5 (June 2024)</h3>
<div class="container-fluid">
<p>
A new option &quot;--pad-negation&quot; / &quot;--pad-negation=before&quot; was added to add space padding around ! operators.
</p>
<p>
Some C++ related formatting issues were fixed, e.g. apply &quot;align-pointer=type&quot; only if type is present.
</p>
<p>
On Windows, the file endings are no longer automatically converted to <code>\r\n</code> when using piped streams.
</p>
</div>
<h3>Artistic Style 3.4 (June 2023)</h3>
<p>
A new option &quot;--indent-lambda&quot; was added to apply the lambda recognition only if applicable.
Currently complex lambda functions are not indented properly.
</p>
<p>
Some C# and C++ related formatting issues were fixed.
</p>
<p>
A new option to enable padding of empty pairs of parentheses was added: &quot;pad-empty-paren&quot;.
It can be combined with other parentheses padding options.<br>
The bracket padding options were enhanced by &quot;pad-brackets-in&quot; and &quot;pad-brackets-out&quot;.
</p>
<p>
Ignores files ending with backup suffix from input file names list.
</p>
<h3>Artistic Style 3.3 (May 2023)</h3>
<p>
The source code has been refactored to no longer use the std namespace globally.
</p>
<p>
Some features of &quot;modern C++&quot; are now supported, ie. lambda function arguments and array initializers
with braces.
</p>
<p>
Two new options to remove superfluous whitespace and empty lines were added: &quot;squeeze-ws&quot; and
&quot;squeeze-lines=#&quot; (parameter value is the number of empty lines to keep).
</p>
<p>
Two new options to add or remove whitespace around square brackets were added: &quot;pad-brackets&quot; and &quot;unpad-brackets&quot;.
</p>
<h3>Artistic Style 3.2 (March 2023)</h3>
<p>
The Artistic Style source code has been updated to use C++11 features. It will need Visual Studio 2015 or GCC
5 or higher to compile.</p>
<p>
A new option, &quot;style=webkit&quot;, has been added. It is similar to the Stroustrup brace style except the
'else' keyword is attached to the previous closing bracket.</p>
<p>
Various bugs were fixed, especially causing reformatting the code in repeated runs.
</p>
<p>
Deprecated options have been removed.
</p>
<p>
Maintainer list was updated.
</p>
<h3>Artistic Style 3.1 (January 2018)</h3>
<p>
The Windows default option file location has been changed from USERPROFILE to APPDATA. This
moves the file from the User directory and to the user's hidden AppData<strong>\</strong>Roaming directory. The
USERPROFILE location has been depreciated and will be removed in a future release. You will need to relocate the
options file manually, Artistic Style will not change it. If the options file is in both locations, the new APPDATA
location will be used.</p>
<p>
The console build now accepts option file input encoded in UTF-16, or UTF-8 with a Byte Order Mark (BOM or signature).
</p>
<p>
New options, &quot;break-return-type&quot; and &quot;break-return-type-decl&quot;, will break the return type
from function definitions and function declarations. Additional new options, &quot;attach-return-type&quot; and
&quot;attach-return-type-decl&quot;, will attach the broken return types to function definitions and function
declarations. There is more information in the &quot;Formatting Options&quot; section of the documentation.
</p>
<p>
A new option, &quot;style=ratliff&quot;, has been added as an alternate for banner style.</p>
<p>
Several changes have been made to <span style="white-space: nowrap;">Objective-C</span> which will improve formatting in certain cases.</p>
<p>
CMake can now be used to compile the AStyle builds. It is run from the top level folder instead of the
&quot;build&quot; folder, and builds a Release configuration by default. The &quot;Install Information&quot;
contains additional information. </p>
<p>
When formatting files from the command line, multiple file extensions may now be used. The file
extensions should be separated by commas or semicolons. For example, to format C++ files, use
&quot;astyle /home/project/*.cpp,*.h&quot;. This will change the processing sequence to format all requested files
in a directory rather than formatting a directory once for each file extension. There is additional information
in the &quot;Usage&quot; section of the documentation.
</p>
<p>
New options &quot;project&quot;, &quot;project=####&quot;, and &quot;project=none&quot;will allow the use of an
optional project option file. This may be used to supplement or replace the command line options and the default
option file. The file is identified by a file name only and resides in the top level folder of a project. The
default file names are .astylerc or _astylerc. A specific file name may also be specified. Instead of an
option, the environment variable ARTISTIC_STYLE_PROJECT_OPTION may be used. Using the environment variable
will make the project file the default for all projects. When formatting files in a project, the project option
file will be obtained from the files directory or a parent directory. The documentation has the details
in the &quot;Option Files&quot; section. The &quot;project&quot; option is described in the
&quot;Command Line Only&quot; section.</p>
<p>
Allowing both option files enables them to be used for different purposes. For example, the default
options could contain the file formatting options and the project options could contain the excludes for the
given project. The order of precedence, highest to lowest, is command line options, project options, and default
options. Options with a value (e.g. style=kr, indent=spaces) may be replaced by an option with a higher precedence.
The binary options (indent-classes, pad-oper) cannot be changed. Once they are set they stay set. Both the
default and project option files may be disabled if they are present and not required. When testing the
option files, the options &quot;verbose&quot; and &quot;dry-run&quot; may be used. The option files used
will be displayed by the "verbose" option.</p>
<p>
When making changes to more than one file in a project, it may be desirable to format an entire folder. Wildcards
may be used in a single folder without recursive. The current directory is used if a path is not given. So,
for example, to format all changed files in the current directory using the project options, use the command:
&quot;astyle --project -A9s *.cpp,*.h&quot;. This example uses the project option file .astylerc
or _astylerc and overrides the project options with the command line -A9s options.</p>
<p>
Language translations have been added for the new project option file. A few of the other messages were changed
as well. If there is a better translation available report the change as a bug report. Be sure to include the
new translation. Translations are in the ASLocalizer.cpp file.</p>
<p>
A new virtual method, getPeekStart(), has been added to the pure virtual class ASSourceIterator. If you have
inherited this class to access the formatter, you will need to add a method similar to getPeekStart() in the
ASStreamIterator class in astyle_main.h.</p>
<p>
The Artistic Style source code has been fuzz tested with American Fuzzy Lop (AFL) and libFuzzer from Clang. This
will help prevent crashes caused by invalid input. There were about 30 corrections made to the source code. Most
of the crashes were caused by asserts which would not be present in a release version. There were a couple of
corrections that required logic changes. The changes should not affect the way the code is formatted.</p>
<p>
The documentation file, astyle.html, now has a sticky button in the lower right corner. It appears after you
have scrolled past the Contents section. It is labeled &quot;Top&quot; but actually takes you back to the Contents.
The purpose is to improve speed in navigating the document. </p>
<p>
If you are using Windows XP, there is a download file available that has an XP compatible executable. Artistic
Style will still compile with Visual Studio 2010.</p>
<p>
Thanks to Rian Quinn, David Haney, and Tam&aacute;s Kurucsai for their contributions.</p>
<h3>Artistic Style 3.0 (April 2017)</h3>
<p>
Release 3.0.1 (May 2017) is a maintenance release and no new features were added. A list of changes is in
the Release Notes. The following information is for the original 3.0 release. Thanks to Juan Alday for his
contribution. </p>
<p>
In the Artistic Style documentation, in General Information, Other Considerations, there is a list of
terminology used for special characters used in programming. The terms used by Artistic Style have been
different than is used by Visual Studio, Clang, and others. In this release the terms used by Artistic Style
have been changed to the ones most commonly used in programming documentation. The following chart indicates
the changes.</p>
<center>
<table>
<thead>
<tr>
<td><strong>NEW</strong></td>
<td></td>
<td><strong>OLD</strong></td>
</tr>
</thead>
<tbody>
<tr>
<td>braces or curly braces</td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;{ }&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>brackets</td>
</tr>
<tr>
<td>parens or round brackets</td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;( )&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>parens</td>
</tr>
<tr>
<td>square brackets</td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;[ ]&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>block parens</td>
</tr>
<tr>
<td>angle brackets</td>
<td>&nbsp;&nbsp;&nbsp;< >&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>angle brackets</td>
</tr>
</tbody>
</table>
</center>
<p>
Parens and angle brackets do not change. Brackets has been changed to braces. Block parens has been changed to
square brackets. Brackets can now collectively refer to the group containing round brackets (parens), square brackets,
and angle brackets. The documentation has been updated and the variable names in the source code have been
changed. </p>
<p>
There are four options affected by the change, &quot;break-closing-brackets&quot;, &quot;add-brackets&quot;, &quot;add-one-line-brackets&quot;,
and &quot;remove-brackets&quot;. These have been changed to the corresponding &quot;break-closing-braces&quot;,
&quot;add-braces&quot;, &quot;add-one-line-braces&quot;, and &quot;remove-braces&quot;. Also, the option &quot;max-instatement-indent&quot;
has been changed to &quot;max-continuation-indent&quot;. The old options and method names have been depreciated,
but will continue to be accepted for the next several releases. </p>
<p>
The source code now uses the C++11 standard. Compilers that need a standard declared should use C++11. Visual
Studio 2010 is currently still currently supported. The classes were made independent of the containing
source code files (the source files contain multiple classes). The dependency on global variables in the console
build was removed. </p>
<p>
A new option, &quot;indent-after-parens&quot;, will indent continuation lines following lines that contain an
opening paren &#39;(&#39; or an assignment &#39;=&#39;. This includes function definitions and declarations
and return statements. This option may be preferred for editors displaying proportional fonts.</p>
<p>
A new option, &quot;attach-closing-while&quot;, will attach the closing &quot;while&quot; of a
&quot;do-while&quot; statement to the closing brace. It has precedence over both the brace style and the break
closing braces option. </p>
<p>
The option &quot;break-closing-braces&quot; has been included in &quot;style=stroustrup&quot;. This is the
correct style according to <a href="https://en.wikipedia.org/wiki/Indent_style#Variant:_Stroustrup" target="_blank"
title="open new window">Wikipedia</a>. The new option &quot;attach-closing-while&quot; is not included in
the style but can be used if you want. If there is a problem with the new format, change to the K&amp;R style
using the same options as for Stroustrup.</p>
<p>
If you are using Windows XP, there is a download file available that has an XP compatible executable. Artistic
Style will still compile with Visual Studio 2010.</p>
<p>
Thanks to Jochen Tucht and Matthew Woehlke for their contributions.</p>
<p>
The following are additional topics.</p>
<h4>Version 3</h4>
<p>
Artistic Style was written in the 1990&#39;s when personal computers were much slower and compilers were not as
sophisticated as today. It used a lot of global variables instead of class members. In previous releases, classes
were created for the astyle_main.h source code. With this release, the classes have been made independent
of the source file containing them and the shared and global data has been eliminated. The classes could now be
separated into separate source files. They have not been actually separated because it seems more convenient
to leave them combined.
</p>
<h4>Library File Names</h4>
<p>
The shared library object (DLL) compile was originally intended to be a local library used by a single program.
Users could update the library at their convenience. Recently, it has started being distributed as a system library
for some distributions. In the past was not maintained for doing this. Since it is already being offered as
a distribution, the library soname on Linux has been standardized. </p>
<p>
It can still be used as a local or a static library if you want to control the changes. Or the system library
can be used. The system library version, of course, may change at any time. With this release the system
library will be available on Debian based systems, as well as possibly others.</p>
<p>
The Windows library name has been changed also. This Windows version is AStyle30.dll. The &quot;30&quot; refers
to the Artistic Style release number &quot;3.0&quot;. The Linux library name is a soname version number, not the
Artistic Style release number.</p>
<h4>Artistic Style Wx</h4>
<p>
There is a new GUI test program AStyleWx that uses wxWidgets. This replaces the old AStyleWin program. AStyleWx
is multi-platform and has more features simply because they are easier to implement with wxWidgets.</p>
<p>
It has download files and a website in a new sub-project directory of Artistic Style. The downloads contain
source code, documentation, and scripts. The Windows download contains an executable. The needed Artistic Style
source files are included. </p>
<p>
It is licensed under the MIT license. The source code may be used and modified for any purpose you
choose. Developers using Artistic Style in another project may use any part of AStyleWx in their project. The
modified source code does NOT need to be made available to others.</p>
<h3>Artistic Style 2.06 (December 2016)</h3>
<p>
A new bracket style option, &quot;style=mozilla&quot;, has been added. It uses linux brackets with
opening brackets broken from classes, structs, enums, and function definitions. Brackets are attached to everything
else, including namespaces, arrays, and statements within a function.</p>
<p>
A new option, &quot;break-one-line-headers&quot; will break a header (if, while, else, etc...) from a following
statement on the same line. There is more information in the &quot;Formatting Options&quot; section
of the documentation.
</p>
<p>
A new option, &quot;pad-comma&quot;, will add a space following a comma. The option &quot;pad-oper&quot;
has not been changed and will also add a space following a comma.</p>
<p>
A new option, &quot;indent-continuation&quot;, will add extra indents to continuation lines following a line that
ends with an opening paren '(' or an assignment '='. This includes function definitions and declarations.
There is more information in the &quot;Indentation Options&quot; section of the documentation.</p>
<p>
All spaces before a comma are now removed. Use the &quot;disable formatting&quot; comment tags if there are arrays
with vertical alignment where this is not wanted.</p>
<p>
A correction has been made to the Pico style indentation of one line blocks. And there is a fix to always compute
the indentation of a one line block. If you use Pico style with an indentation greater than 2, you may have a
lot of changes made to the code.</p>
<p>
New <span style="white-space: nowrap;">Objective-C</span> options "pad-return-type" and &quot;unpad-return-type&quot; will add or remove space padding after
the <span style="white-space: nowrap;">Objective-C</span> return type in a method definition. They are described in the "<span style="white-space: nowrap;">Objective-C</span>" section of the
documentation.</p>
<p>
New <span style="white-space: nowrap;">Objective-C</span> options "pad-param-type" and &quot;unpad-param-type&quot; will add or remove space padding after
the <span style="white-space: nowrap;">Objective-C</span> parameter type in a method definition. They are described in the "<span style="white-space: nowrap;">Objective-C</span>" section of the
documentation.</p>
<p>
The <span style="white-space: nowrap;">Objective-C</span> &quot;align-method-colon&quot; option is now applied to <span style="white-space: nowrap;">Objective-C</span> method calls in
addition to method declarations and definitions. The method call colons will be aligned, if possible. If this
option is not declared, the method calls will align on the first keyword. See the astyle documentation for an
example.</p>
<p>
The <span style="white-space: nowrap;">Objective-C</span> &quot;align-method-colon&quot; has been changed for long keywords.
For multi-line arguments when the first keyword is shorter than the others the colons are aligned on the
longest line instead of the first line. The alignment includes room for the indentation. This aligns all colons
after the first line for a better appearance. Arguments that do not have a short keyword in the first line will
remain the same. This style conforms to the Google <span style="white-space: nowrap;">Objective-C</span> style.</p>
<p>
Processing for C++14 single-quote digit separators has been added.</p>
<p>
Translations have been added for Bulgarian, Estonian, Greek, Hungarian, Norwegian, and Romanian. The translations
were 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 included in the next release. To add a language,
see &quot;Internationalization&quot; in the &quot;General Information&quot; section of the documentation.</p>
<p>
The C# example, in the Developer Information has been updated. Objects for the AStyle callback functions are no
longer required. These have been removed and the delegates used instead.</p>
<p>
There is a new C# example in the Developer Information, that loads the AStyle shared library using explicit linking.
This allows the shared library name to be dynamically changed so that a program compiled with &quot;Any CPU&quot;
can load
either a 32-bit or 64-bit shared library at run-time. It runs on both Windows and Linux.</p>
<p>
Visual Studio Code, the text editor from Microsoft, has an Artistic Style extension. The extension runs from the
Visual Studio Code menu and is controlled by entries in the User Settings file. It can be installed from Visual
Studio Code. There are links to the websites on the Artistic Style Links page. </p>
<p>
Thanks to David Faure for his contribution.</p>
<p>
The following are additional topics.</p>
<h4>New Software License</h4>
<p>
The Artistic Style software license has changed. It is now under the MIT license. This is a permissive license
which can be used in proprietary software and does NOT require modified Artistic Style source code be made available.
It is compatible with the GNU General Public License (GPL) and most other software licenses. The change was made
to remove restrictions on using the software and to make it available for any project that wants to
use it.</p>
<h4>Visual Studio 2015, 2017, and 2019 UTF-8 Files</h4>
<p>
In order to be used on both Linux and Windows, the ASLocalizer.cpp UTF-8 file in Artistic Style does not
contain a Byte Order Mark (BOM). With Visual Studio 2015 there has been a change in how UTF-8 files
without a BOM are processed. The new procedure is described
<a href="https://blogs.msdn.microsoft.com/vcblog/2016/02/22/new-options-for-managing-character-sets-in-the-microsoft-cc-compiler/"
target="_blank" title="open new window">here</a>. It affects only the language translations in the &quot;.exe&quot;
file. The shared libraries and static libraries are not affected. It is necessary only if you are using a translation
other than English.</p>
<p>
In addition to the &quot;auto detect&quot; option in Tools &gt; Options... &gt; Text Editor &gt; General, an
additional compiler option is required. The option &quot;/source&#8209;charset:utf&#8209;8&quot; must be added
to the project properties at C++ &gt; Command Line &gt; Additional Options. Since the non&#8209;unicode files
in Artistic
Style are ASCII, the option can be applied to the entire project instead of just one file. This option has been
added in the files distributed with Artistic Style. There is also a new &quot;/validate&#8209;charset&quot; option,
which gets turned on automatically with the above option. This switch enables the validation of the UTF-8 input
files.</p>
<p>
This compiler option was not available until Update 2 of Visual Studio. If you are using an earlier version of
2015, a BOM should be added to the file using File &gt; &quot;Advanced Save Options&quot;. Change the encoding
to &quot;Unicode (UTF-8 with signature) - Codepage 65001&quot;. </p>
<p>
In the above &quot;Visual C++ Team Blog&quot; Microsoft mentions that in a future major release of the compiler,
they would like to change the default handling of BOM-less files to assume UTF-8.</p>
<h4>Assignment Operator Alignment</h4>
<p>
Visual Studio 2013 and 2015 have an Edit option &quot;Align Assignments&quot; that will align assignment operators
across multiple lines. There is also an extension named &quot;Code alignment&quot; that will align the code on
other items as well. Other development environments may have something similar. These will selectively align the
data and allow for customization of the format.</p>
<p>
These options and extensions can be used with Artistic Style. If you choose to do this, the space padding will
be maintained and the alignment will be preserved.</p>
<h4>Coding Styles</h4>
<p>
Coding style, or programming style, is a set of rules or guidelines used when writing the source code. It is
often claimed that following a particular programming style will help in reading and understanding source code
conforming to the style, and help to avoid introducing errors.</p>
<p>
This Artistic Style distribution has a new &quot;file&quot; folder containing AStyle options files for various
coding styles. Using the option files will give approximately the indicated coding style. The files can be used
as they are, or modified as desired.</p>
<h4>Artistic Style Wx</h4>
<p>
There is a new GUI test program AStyleWx that uses wxWidgets. This replaces the old AStyleWin program. AStyleWx
is multi-platform and has more features simply because they are easier to implement with wxWidgets.</p>
<p>
It has download files and a website in a new sub-project directory of Artistic Style. The downloads contain
source code, documentation, and scripts. The Windows download contains an executable. The needed Artistic Style
source files are included. </p>
<p>
It is licensed under the MIT license. The source code may be used and modified for any purpose you
choose. Developers using Artistic Style in another project may use any part of AStyleWx in their project. The
modified source code does NOT need to be made available to others.</p>
<h4>Windows XP</h4>
<p>
The executable in the Windows distribution package is now compiled with a Visual Studio version that will no
longer work on Windows XP. Beginning with Visual Studio 2012, auto-vectorization tries to make loops run
faster by automatically vectorizing the code. Auto-vectorization is on by default, and there are no compiler
switches, #pragmas, or hints to disable it. It uses SSE instructions not available in Windows XP. Microsoft ended
support and updates for XP on April 8, 2014, and the usage share percentage continues to decrease.</p>
<p>
To compile on a non-XP machine for use on XP, using a compiler other than Visual Studio should always
produce an XP executable. Using Visual Studio 2010 or earlier should always produce an XP executable. If
you are using Visual Studio 2012, 2013, or 2015 on a non-XP machine, do the following for the Artistic Style
configuration you want to use:</p>
<ul>
<li>&quot;Windows XP Support for C++&quot; must be installed. It is available as an option in the Visual Studio install
and can be installed as a modification to the current install.</li>
<li>In the Artistic Style Properties, change General &gt; Platform Toolset, to &quot;Windows XP&quot; for your Visual
Studio version.</li>
<li>In the Artistic Style Properties, change C/C++ &gt; Preprocessor &gt; Preprocessor Definitions to include
_USING_V110_SDK71_.</li>
<li>Change other Properties if you want, such as Output Directory or Target Name.</li>
<li>Compile. The output should be executable on Windows XP. It will also execute on the later versions of Windows.
</li>
</ul>
<p>
In newer releases of Visual Studio 2015, the &quot;Universal CRT&quot; files have been moved. There is a
notification <a href="https://blogs.msdn.microsoft.com/vcblog/2015/03/03/introducing-the-universal-crt/">here</a>.
To compile using XP there may need to be additional include and library directories added. If the compile gets
errors add the appropriate directories to the project properties.</p>
<h3>Artistic Style 2.05 (November 2014)</h3>
<p>
Release 2.05.1 (December 2014) is a maintenance release and no new features were added. A list of changes is in
the Release Notes. The following information is for the original 2.05 release.</p>
<p>
A new bracket style option, &quot;style=vtk&quot;, has been added. It uses indented brackets, like Whitesmith,
except opening brackets for classes, functions, and methods are not indented. A complete description of the VTK
style is available at the &quot;Visualization Toolkit&quot; website (http://www.vtk.org/).</p>
<p>
A new preprocessor indent option "indent-preproc-block" will indent preprocessor block statements one additional
indent. The block must be top-level, or included within a namespace, and there are restrictions on what can be
indented.
The option is described in the "Indentation Options" section of the documentation.</p>
<p>
A new option, "dry-run", will run Artistic Style without updating the files. The report will be output as
usual.</p>
<p>
Formatting of source code may now be disabled for portions of a program by embedding special comment tags in the
program. These are described in a new &quot;Disable Formatting&quot; section of the documentation. They work the
same as in other formatters. There are tags to disable formatting for a block of code, and a tag to disable formatting
of a single line. This should allow any custom formatting to be retained.</p>
<p>
The product version number has been added to the filename of shared library (DLL) compiles. This will allow multiple
versions of a shared library on the same system without conflicts.</p>
<p>
An attribute &#39;__attribute__ ((visibility (&quot;default&quot;)))&#39; has been added to exported functions
on Linux shared libraries. This allows the option &quot;-fvisibility=hidden&quot; to be used on dynamic library
compiles. According to the GNU documentation, &quot;Using this feature can very substantially improve linking
and load times of shared object libraries, produce more optimized code, provide near-perfect API export and prevent
symbol clashes. It is strongly recommended that you use this in any shared objects you distribute.&quot;</p>
<p>
Improvements have been made in the formatting of C++11 uniform initializers (enclosed by brackets). The opening
bracket will not be space padded unless it is padded initially. The closing bracket will not be broken from the
final line unless it is broken initially. And the known problems with uniform initializers in class constructors
have been fixed.</p>
<p>
The Windows compiler definition ASTYLE_NO_VCX (no Visual Studio exports) has been changed to ASTYLE_NO_EXPORTS.
It is sometimes needed for static libraries on other compilers to prevent error and warning messages.</p>
<p>
Qt and Boost macros foreach, forever, Q_FOREACH, and Q_FOREVER will now be recognized as headers.</p>
<p>
The main documentation for Artistic Style is in HTML format. Until now there has not been a way to display it
from the astyle console program. A new option, "html" or "-!" will display the help documentation in the default
browser. This documentation is more complete than the astyle "help" option. It includes examples, and has an index
for easier navigation. Since astyle is typically run from a script this should allow an easy way to access the
documentation. The option is available only from the command line.</p>
<p>
The new "html" option assumes the documentation is installed in the standard install path. This is /usr/share/doc/astyle/html
for Linux and the path %programfiles%\AStyle\doc for Windows. If it is installed to a different directory, use
the variation "html=&lt;actual_install_path&gt;astyle.html. This option can also be used to open other HTML files.
More information is in the "Command Line Only" section of the documentation.</p>
<p>
The "html" option on Linux uses the script "xdg-open" from the install package "xdg-utils" to find the default
browser. This should be available on most systems. If it is not available on your system you can file a
bug report requesting a change. It would be helpful if you could determine how it is done before filing the report.
You can also file a bug report if the documentation is not installed to the above "default" directories. The HTML
documentation takes quite a bit of effort to maintain and I would like to make it easily available.</p>
<p>
The "help" option has been changed to send the output to stdout instead of stderr. This will allow piping and
redirection of the output. A common way to use the option on Linux is "astyle --help | less", which
will page the display. The "version" option has also been changed to stdout.</p>
<p>
A shared library error handler argument has been changed from &quot;char*&quot; to &quot;const char*&quot;. In
some cases this may cause compile errors in a user program until the references have been changed.</p>
<p>
The "Indent Style" topic on Wikipedia states that the "ANSI" style refers to K&amp;R style brackets
and not Allman style as used by Artistic Style. The option "style=ansi" is therefore being deprecated and will
be removed in a future release. Use one of the other long options instead (style=allman, style=bsd, or
style=break).</p>
<p>
Some of the documentation has been removed from the distribution package. It still contains all files needed to
install and run Artistic Style. The included files can be used without an Internet connection.</p>
<p>
There are now build files available for Xcode on Mac. The makefile is still available for those who want it. Both
now use the LLVM Clang compiler. There has been a
change to the makefile debug locations to make them similar to Xcode. The &quot;Install Instructions&quot; have
been updated for both.</p>
<p>
The Python Example in the Developer Information now supports Iron Python. The
programming instructions are sometimes different since the ctypes module works differently. The example script
documents the differences. If you use Python Tools for Visual Studio, it now installs in the Express editions
(beginning with release 2.1). Node.js can also be installed in Visual Studio Express.</p>
<p>
The executable in the Windows distribution package is now compiled with Visual Studio 2013 and will no longer
work on XP. If you are using XP, Artistic Style will need to be recompiled on the XP machine.</p>
<p>
A new <a href="http://www.visualstudio.com/news/vs2013-community-vs" target="_blank" title="open new window">Visual
Studio Community Edition</a> has been released. It is free, combines all of the Express editions into a single
development environment, and allows the addition of Visual Studio extensions. There is an
<a href="https://visualstudiogallery.msdn.microsoft.com/2f3f04cd-2866-4e47-a671-d1cc9cc3fb02" target="_blank"
title="open new window">AStyle Extension</a> available for installation. It has a graphic interface, adds
menu entries, and can be used from within Visual Studio. To install it search the &quot;Extensions and Updates&quot;,
&quot;Online&quot; entry for &quot;astyle&quot;.</p>
<p>
Thanks to Peter A. Bigot, HyungKi Jeong, David Faure, and Carl Moore for their contributions.</p>
<p>
<strong>Previous releases are available in the
<a href="http://astyle.sourceforge.net/newsArchives.html">News Archives</a>.</strong>
</p>
<p style="margin-left: -0.4in; text-align: center;">
<a href="http://sourceforge.net/projects/astyle">
<img src="http://sflogo.sourceforge.net/sflogo.php?group_id=2319&type=16" alt="" /></a>
</p>
</body>
</html>
File diff suppressed because it is too large. Load diff
-547
View File
@@ -1,547 +0,0 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="styles.css" rel="stylesheet" type="text/css" />
<link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />
<title>Artistic Style - Release Notes</title>
<script type="text/javascript">
window.onscroll = function () { scrollFunction() };
function scrollFunction() {
if (document.body.scrollTop > 400 || document.documentElement.scrollTop > 400) {
document.getElementById("topBtn").style.display = "block";
} else {
document.getElementById("topBtn").style.display = "none";
}
}
function topFunction() {
document.documentElement.scrollTop = 0;
document.body.scrollTop = 0;
}
</script>
</head>
<body id="Contents">
<div id="slogan">Artistic Style</div>
<button onclick="topFunction()" id="topBtn" title="Go to top"><span class="menu-arrow">&#9650;</span> <b>Top</b></button>
<label for="responsive-button" class="responsive-button">Artistic Style Menu</label>
<input type="checkbox" id="responsive-button" role="button">
<nav class="menu">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="astyle.html">Documentation</a></li>
<li><a href="">Release Info <span class="menu-arrow">&#9660;</span></a>
<ul>
<li><a href="news.html">News</a></li>
<li><a href="notes.html">Release Notes</a></li>
</ul>
</li>
<li><a href="">Installation <span class="menu-arrow">&#9660;</span></a>
<ul>
<li><a href="install.html">Install</a></li>
<li><a href="subversion.html">Source Repos</a></li>
<li><a href="http://sourceforge.net/projects/astyle/files/">Download</a></li>
</ul>
</li>
<li><a href="">Resources <span class="menu-arrow">&#9660;</span></a>
<ul>
<li><a href="scripts.html">Scripts</a></li>
<li><a href="links.html">Links</a></li>
<li><a href="development.html">Developer Info</a></li>
</ul>
</li>
</ul>
</nav>
<main>
<header>
<h1>Artistic Style Release Notes</h1>
</header>
<section class="release-notes">
<article class="release">
<h3>Artistic Style 3.6.17 (July 2026)</h3>
<ul>
<li>Added option remove-braces=one-line (https://gitlab.com/saalen/astyle/-/work_items/70)</li>
<li>Fix address-of after a pointer cast padding (https://gitlab.com/saalen/astyle/-/work_items/14)</li>
<li>Added sanitation of terminal output</li>
<li>Added new file pattern option --include and auto-detect local project options (https://gitlab.com/saalen/astyle/-/work_items/64)</li>
<li>Added new options --style=none --indent=none (https://gitlab.com/saalen/astyle/-/work_items/25)</li>
<li>Added empty line before first method without all option (https://gitlab.com/saalen/astyle/-/merge_requests/20)</li>
<li>Added the "no-indent-if-after-else" and "line-between-members" parameters</li>
<li>Added new option --max-code-length-mode=ignore-side-comments (https://gitlab.com/saalen/astyle/-/work_items/93)</li>
<li>Fix indent of upcoming long lines with total mode (https://gitlab.com/saalen/astyle/-/work_items/67)</li>
<li>apply more consistent indentation after line wrap (https://gitlab.com/saalen/astyle/-/work_items/98)</li>
<li>Fixed `--align-pointer=name` for Function Arguments.</li>
</ul>
</article>
<article class="release">
<h3>Artistic Style 3.6.16 (May 2026)</h3>
<ul>
<li>Fix regression: incorrect spacing for negative return literal with type cast (https://gitlab.com/saalen/astyle/-/work_items/110)</li>
<li>Fix regression: function signature opening bracket indentation collapses (https://gitlab.com/saalen/astyle/-/work_items/111)</li>
</ul>
</article>
<article class="release">
<h3>Artistic Style 3.6.15 (May 2026)</h3>
<ul>
<li>Fix indent of consecutive variable assignments (https://gitlab.com/saalen/astyle/-/work_items/104)</li>
<li>Fix pad-oper after a function call (https://gitlab.com/saalen/astyle/-/work_items/105)</li>
<li>Fix indent of function calls within initializer lists (https://gitlab.com/saalen/astyle/-/work_items/108)</li>
<li>Added parameter max-code-length-mode to add indent count to line length for line wrapping (https://gitlab.com/saalen/astyle/-/work_items/67)</li>
<li>Fix indent of code following C# verbatim triple quotes (https://gitlab.com/saalen/astyle/-/work_items/107)</li>
<li>Set C++17 language standard for all VS project configurations</li>
</ul>
</article>
<article class="release">
<h3>Artistic Style 3.6.14 (January 2026)</h3>
<ul>
<li>Fix indent after comma with align-pointer=type option (https://sourceforge.net/p/astyle/bugs/605/)</li>
<li>Fix preprocessor indent with align-pointer=type option (https://sourceforge.net/p/astyle/bugs/604/)</li>
<li>Fix padding of C# template delimiters with --pad-oper (https://gitlab.com/saalen/astyle/-/issues/102)</li>
<li>Fix indent of concatenated raw strings (https://sourceforge.net/p/astyle/bugs/596/)</li>
</ul>
</article>
<article class="release">
<h3>Artistic Style 3.6.13 (October 2025)</h3>
<ul>
<li>Fix indent of continued string literal as argument (https://gitlab.com/saalen/astyle/-/issues/99)</li>
<li>Fix regression related to template delimters (https://gitlab.com/saalen/astyle/-/issues/85)</li>
</ul>
</article>
<article class="release">
<h3>Artistic Style 3.6.12 (August 2025)</h3>
<ul>
<li>Improved complex lambda body indentation</li>
</ul>
</article>
<article class="release">
<h3>Artistic Style 3.6.11 (July 2025)</h3>
<ul>
<li>Fix regression related to diff markers (https://gitlab.com/saalen/astyle/-/issues/92)</li>
</ul>
</article>
<article class="release">
<h3>Artistic Style 3.6.10 (July 2025)</h3>
<ul>
<li>Fix comment recognition after macro definition (https://sourceforge.net/p/astyle/bugs/600/ )</li>
<li>Fix indent of switch statements within structs (https://gitlab.com/saalen/astyle/-/issues/91)</li>
<li>Fix Win32 build</li>
<li>Improved lambda body indentation</li>
<li>Ignore lines with git conflict markers (https://gitlab.com/saalen/astyle/-/issues/88)</li>
<li>Replaced platform file functions by C++ filesystem library</li>
</ul>
</article>
<article class="release">
<h3>Artistic Style 3.6.9 (April 2025)</h3>
<ul>
<li>Fix --mode parameter in generation script</li>
<li>disable old isInTemplate flag only within structs (https://gitlab.com/saalen/astyle/-/issues/85)</li>
</ul>
</article>
<article class="release">
<h3>Artistic Style 3.6.8 (March 2025)</h3>
<ul>
<li>Adjust --break-blocks to break structs and functions only with <i>all</i> option (https://gitlab.com/saalen/astyle/-/issues/83)</li>
<li>Fix space between pointer references with --align-pointer=type (https://sourceforge.net/p/astyle/bugs/594/)</li>
<li>Define &lt;&lt;&lt; and &gt;&gt;&gt; operators for Java only (https://sourceforge.net/p/astyle/bugs/595/)</li>
<li>Fix indentation of class modifiers within structs (https://sourceforge.net/p/astyle/bugs/585/)</li>
<li>Fix parsing of nested structs (https://sourceforge.net/p/astyle/bugs/586/)</li>
<li>Another approach to fix interpretation of closing nested templates as operator (https://gitlab.com/saalen/astyle/-/issues/69)</li>
<li>Fix indent of multiline strings with macros (https://gitlab.com/saalen/astyle/-/issues/82)</li>
</ul>
</article>
<article class="release">
<h3>Artistic Style 3.6.7 (February 2025)</h3>
<ul>
<li>Add --error-on-changes option (https://gitlab.com/saalen/astyle/-/issues/68)</li>
<li>Add c++17 flags in VS2022 project files; avoid VS2022 compilation warnings</li>
<li>Prevent --squeeze-ws of removing whitespace before comments (https://gitlab.com/saalen/astyle/-/issues/74)</li>
<li>Adjust --pad-include to ignore macros in include directives (https://gitlab.com/saalen/astyle/-/issues/73)</li>
<li>Adjust --pad-include section in the docs (https://gitlab.com/saalen/astyle/-/issues/78)</li>
<li>Fix interpretation of closing nested templates as operator (https://gitlab.com/saalen/astyle/-/issues/69)</li>
<li>Use standard filesystem API to retrieve absolute file paths (https://gitlab.com/saalen/astyle/-/issues/79)</li>
<li>Add operator --preserve-ws (https://gitlab.com/saalen/astyle/-/issues/78)</li>
<li>Disable --unpad-paren in structs for leading whitespace (https://gitlab.com/saalen/astyle/-/issues/80)</li>
<li>Do not remove space after opening parens and align-pointer=type (https://sourceforge.net/p/astyle/bugs/584)</li>
<li>Fix issue with --pad-oper and *= operand (https://gitlab.com/saalen/astyle/-/issues/81)</li>
</ul>
</article>
<article class="release">
<h3>Artistic Style 3.6.6 (December 2024)</h3>
<ul>
<li>Fix indent after assignment operators (correct cause) (https://gitlab.com/saalen/astyle/-/issues/61)</li>
<li>Adjust delete-empty-lines feature description (https://sourceforge.net/p/astyle/bugs/517/)</li>
<li>Support non-English versions of VS2022 in CMakeLists</li>
</ul>
</article>
<article class="release">
<h3>Artistic Style 3.6.5 (November 2024)</h3>
<ul>
<li>Add option --accept-empty-list (https://sourceforge.net/p/astyle/tickets/70/)</li>
<li>Fix indent regression due to method extraction (https://gitlab.com/saalen/astyle/-/issues/63)</li>
<li>Fix indent in blocks after assignment operators (https://gitlab.com/saalen/astyle/-/issues/62)</li>
<li>Fix indent of multi line strings after preprocessor or comment sections (https://gitlab.com/saalen/astyle/-/issues/65)</li>
<li>Fix indent after assignment operators (https://gitlab.com/saalen/astyle/-/issues/61)</li>
<li>Fix --align-pointer=middle with existing whitespace (https://sourceforge.net/p/astyle/tickets/124/)</li>
</ul>
</article>
<article class="release">
<h3>Artistic Style 3.6.4 (October 2024)</h3>
<ul>
<li>Fix indent of brace initializers within constructor init list (https://sourceforge.net/p/astyle/bugs/467/)</li>
<li>Improve indent of continued string literals (https://sourceforge.net/p/astyle/bugs/172/)</li>
<li>Fix space after opening paren for GSC (https://gitlab.com/saalen/astyle/-/issues/55)</li>
<li>Update astyle.html layout</li>
<li>Add deprecation hint for --html</li>
<li>Update install docs</li>
<li>Delete old IDE project files</li>
<li>Move build/cmake scripts content into main CMakeLists.txt</li>
</ul>
</article>
<article class="release">
<h3>Artistic Style 3.6.3 (October 2024)</h3>
<ul>
<li>Fix indent after single open parenthse (https://gitlab.com/saalen/astyle/-/issues/45)</li>
<li>Fix padding of operator char * methods (https://sourceforge.net/p/astyle/bugs/273/)</li>
<li>Fix padding of user defined type cast (https://sourceforge.net/p/astyle/bugs/250/)</li>
<li>Fix bitfield line break with macros (https://sourceforge.net/p/astyle/bugs/148/ )</li>
<li>Fix GSC modulo padding (https://gitlab.com/saalen/astyle/-/issues/55)</li>
<li>Removed flawed option --add-braces=nested (https://gitlab.com/saalen/astyle/-/issues/27)</li>
</ul>
</article>
<!-- Continue with more releases... -->
<!-- I've truncated this for brevity, but in the actual implementation, I'd include all releases -->
<article class="release">
<h3>Artistic Style 3.6.2 (September 2024)</h3>
<ul>
<li>Reverted alignment of user defined types using --align-pointer (https://gitlab.com/saalen/astyle/-/issues/35)</li>
</ul>
</article>
<article class="release">
<h3>Artistic Style 3.6.1 (September 2024)</h3>
<ul>
<li>Fix setting of --pad-negation and --pad-include options (https://sourceforge.net/p/astyle/bugs/580/)</li>
<li>Fix --pad-include with UTF-8 BOM (https://sourceforge.net/p/astyle/bugs/580/)</li>
<li>Improve multiplication recognition with --align-pointer=type (https://sourceforge.net/p/astyle/bugs/572/)</li>
<li>Improve --align-pointer=type after parens and brackets (https://sourceforge.net/p/astyle/bugs/578/)</li>
<li>Removed VMS compilation options</li>
<li>Updated JNI interface to use Arduino IDE conventions</li>
</ul>
</article>
<article class="release">
<h3>Artistic Style 3.6 (August 2024)</h3>
<ul>
<li>Add option --pad-include (https://sourceforge.net/p/astyle/tickets/117/)</li>
<li>Combined GHC and GSC style options</li>
<li>Improve combination of --align-pointer=type and --pad-oper (https://sourceforge.net/p/astyle/bugs/578/)</li>
<li>Improve multiplication recognition with --align-pointer=type (https://sourceforge.net/p/astyle/bugs/572/)</li>
<li>Update compiler options in build files</li>
<li>Fix indent of assignments within macros ( https://gitlab.com/saalen/astyle/-/issues/47)</li>
</ul>
</article>
<article class="release">
<h3>Artistic Style 3.5.2 (July 2024)</h3>
<ul>
<li>Fix library compilation errors (https://gitlab.com/saalen/astyle/-/issues/48)</li>
</ul>
</article>
<article class="release">
<h3>Artistic Style 3.5.1 (June 2024)</h3>
<ul>
<li>Fix crash concerning macro continuation (https://sourceforge.net/p/astyle/bugs/574)</li>
<li>Fix EOL handling for Windows builds (https://gitlab.com/saalen/astyle/-/issues/43)</li>
<li>Fix GSC comment recognition (https://gitlab.com/saalen/astyle/-/issues/46)</li>
<li>Fix MSVC compiler warnings (https://sourceforge.net/p/astyle/bugs/575)</li>
</ul>
</article>
<article class="release">
<h3>Artistic Style 3.5 (June 2024)</h3>
<ul>
<li>Add option --pad-negation (https://sourceforge.net/p/astyle/bugs/571)</li>
<li>Apply align-pointer=type only if type is present (https://sourceforge.net/p/astyle/bugs/573)</li>
<li>Avoid deletion of empty lines after continuation (https://sourceforge.net/p/astyle/bugs/574)</li>
<li>Fix alignment of logical AND operators (https://sourceforge.net/p/astyle/bugs/572)</li>
<li>Fix recognition of Java/C# multi line strings (https://gitlab.com/saalen/astyle/-/issues/42)</li>
</ul>
</article>
<article class="release">
<h3>Artistic Style 3.4.16 (May 2024)</h3>
<ul>
<li>Fix padding of scientific notation literals (#570)</li>
<li>Fix of reference args alignment (https://gitlab.com/saalen/astyle/-/issues/35)</li>
</ul>
</article>
<article class="release">
<h3>Artistic Style 3.4.15 (May 2024)</h3>
<ul>
<li>Fix parsing of floating point literals (#566)</li>
<li>Fix "--break-block" handling of class and function blocks (#569)</li>
<li>Fix "--align-pointer=type" option for all types in lambda parameter lists (https://gitlab.com/saalen/astyle/-/issues/35)</li>
<li>Fix padding of lambda capture with align-pointer option</li>
<li>Exclude files ending with backup suffix from input file names list (#560)</li>
</ul>
</article>
<article class="release">
<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>
</article>
<article class="release">
<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>
</ul>
</article>
<article class="release">
<h3>Artistic Style 3.4.12 (February 2024)</h3>
<ul>
<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>
</article>
<article class="release">
<h3>Artistic Style 3.4.11 (January 2024)</h3>
<ul>
<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>
</article>
<article class="release">
<h3>Artistic Style 3.4.10 (October 2023)</h3>
<ul>
<li>Fix missing indent in function parameter list (https://gitlab.com/saalen/astyle/-/issues/16)</li>
</ul>
</article>
<article class="release">
<h3>Artistic Style 3.4.9 (October 2023)</h3>
<ul>
<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>
</article>
<article class="release">
<h3>Artistic Style 3.4.8 (September 2023)</h3>
<ul>
<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>
</article>
<article class="release">
<h3>Artistic Style 3.4.6 (August 2023)</h3>
<ul>
<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>
</article>
<article class="release">
<h3>Artistic Style 3.4.1 (August 2023)</h3>
<ul>
<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>
</article>
<article class="release">
<h3>Artistic Style 3.4 (June 2023)</h3>
<ul>
<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>
</article>
<article class="release">
<h3>Artistic Style 3.3 (May 2023)</h3>
<ul>
<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>
</article>
<article class="release">
<h3>Artistic Style 3.2.1 (March 2023)</h3>
<ul>
<li>Fix struct recognition related to SF #534 (https://gitlab.com/saalen/astyle/-/issues/1)</li>
</ul>
</article>
<article class="release">
<h3>Artistic Style 3.2 (March 2023)</h3>
<ul>
<li>Add new option "style=webkit" for the WebKit brace style.</li>
<li>Improve recognition of pointer variable types.</li>
<li>Change CMake files to the &quot;modern&quot; format.</li>
<li>Fix formatting of raw string literals with the opening &#39;(&#39; at the end of line (#519).</li>
<li>Fix indentation of comments in a preprocessor define indented with tabs (#506).</li>
<li>Fix vector limit segfault with g++-8, recursive, and -D_GLIBCXX_ASSERTIONS (#503).</li>
<li>Refactoring:
<ul>
<li>Extract new method for options in ASOptions class to avoid compiler limits.</li>
<li>Change vector push_back to emplace_back except for vector&lt;bool&gt;.</li>
<li>Changes from clang-tidy to modernize code.</li>
</ul>
</li>
<li>added man page</li>
<li>removed deprecated options</li>
<li>added shell completion scripts</li>
<li>added &quot;--mode=js&quot; option</li>
<li>added INVALID_TYPE constant</li>
<li>removed upper limit of &quot;max-continuation-indent&quot;</li>
<li>fixed raw string parsing (#535)</li>
<li>fixed recognition of rvalue operator as reference (#543)</li>
<li>fixed reverting effect of AttachReturnType option (#527)</li>
<li>fixed padding of dereference operator (#544)</li>
<li>added C++ spaceship operator (#538)</li>
<li>fixed case indent after enum return value (#550)</li>
<li>fixed space deletion when aligning ref value name (#546)</li>
<li>fixed reverting effect of maxCodeLength and AttachReturnType options (#545)</li>
<li>fixed break of continued preprocessor strings with colon (#533)</li>
<li>fixed struct bitfield indentation (#534)</li>
<li>replace PATH_MAX by realpath (#549)</li>
<li>fixed negative integer literal breaks initializer list (#485)</li>
<li>fixed documentation of --delete-empty-lines short option (#508)</li>
<li>fixed project file search (#541)</li>
<li>fixed indent of ObjectiveC statements (#525)</li>
<li>fixed parsing of C# interpolation strings (#483)</li>
<li>fixed break-blocks format after struct (#518)</li>
<li>fixed project file search with wildcard input paths (https://gitlab.com/saalen/astyle/-/issues/1)</li>
<li>https://sourceforge.net/p/astyle/tickets/130/ better description for stat errors</li>
<li>https://sourceforge.net/p/astyle/tickets/129/ applied IT localization patch</li>
<li>improved DE localization</li>
</ul>
</article>
<article class="release">
<h3>Artistic Style 3.1 (January 2018)</h3>
<ul>
<li>Add new options "project", "project=####", and "project=none" (#11).</li>
<li>Add new options, &quot;break-return-type&quot; and &quot;break-return-type-decl&quot; (#358, 286, 205, 16).</li>
<li>Add new options, &quot;attach-return-type&quot; and &quot;attach-return-type-decl&quot; (#358, 286, 205, 16).</li>
<li>Add new option "style=ratliff", as an alternate name for banner style.</li>
<li>Add new environment variable ARTISTIC_STYLE_PROJECT_OPTIONS (#11).</li>
<li>Add multiple extensions to the command line file paths option.</li>
<li>Improve recognition of unary + and - when using pad-oper.</li>
<li>Change the Windows default options file location from USERPROFILE to APPDATA.</li>
<li>Change options file input to accept UTF-16, or UTF-8 with a BOM (or signature).</li>
<li>Change &quot;unsigned short&quot; data type to c++11 &quot;char16_t&quot;.</li>
<li>Change translations for new project options file.</li>
<li>Fix utf8LengthFromUtf16() calculation being less than the actual length.</li>
<li>Fix multiply followed by a dereference for &quot;align-pointer=type&quot;.</li>
<li>Fix recognition of a uniform class initializer in a base class initialization (#441).</li>
<li>Fix indentation of "volatile" keyword not used in a method definition (#450).</li>
<li>Fix indentation of "final" keyword not used in a method definition (#450).</li>
<li>Fix indentation of compound literals in an argument list (#456).</li>
<li>Fix indentation of trailing return type method following a constructor (#463).</li>
<li>Fix space padding of closing brace before a dot (#468).</li>
<li>Fix <span style="white-space: nowrap;">Objective-C</span> to allow for &quot;Extern C&quot; statements in the source files (#443, 444, 446).</li>
<li>Fix <span style="white-space: nowrap;">Objective-C</span> to allow for method definitions without a specified return type (#447).</li>
<li>Fix <span style="white-space: nowrap;">Objective-C</span> to allow for method definitions with multiple param types.</li>
<li>Fix <span style="white-space: nowrap;">Objective-C</span> to replace tabbed padding with a space.</li>
<li>Fix <span style="white-space: nowrap;">Objective-C</span> formatting of line-end comments with &quot;unpad-return-type&quot;.</li>
<li>Fix <span style="white-space: nowrap;">Objective-C</span> &quot;align-method-colon&quot; to ignore ternary (?) operators.</li>
<li>Fix C# base class constructor indentation (#459).</li>
<li>Fix C# indentation of method declaration containing a colon (#465)</li>
<li>Fix C/C++ to allow &quot;interface&quot; as a non-keyword (#445).</li>
<li>Fix Java to allow &quot;default&quot; as a non-switch keyword.</li>
<li>Fix line ends initialization if no line end has been read.</li>
<li>Fix Java build from including ASLocalizer in the shared library.</li>
<li>Fix to check for AStyleWx line tags after C style comments.</li>
<li>Fix boundary conditions and other errors discovered by fuzzing.</li>
<li>Refactoring:
<ul>
<li>Extract method isNumericVariable() in ASFormatter class.</li>
<li>Extract method isTopLevel() in ASBeautifier class.</li>
<li>Extract method fileExists() in Console class.</li>
<li>Rename ASEncoding variable from &quot;utf8_16&quot; to &quot;encode&quot;.</li>
<li>Rename ASBeautifier vector from squareBracketDepthStack to parenDepthStack.</li>
<li>Combine style options in ASOptions class to avoid compiler limits.</li>
</ul>
</li>
</ul>
</article>
<p class="archive-link">
<strong>Previous releases are available in the <a href="notesArchives.html">Release Notes Archives</a>.</strong>
</p>
</section>
<footer>
<p class="sourceforge-logo">
<a href="http://sourceforge.net/projects/astyle">
<img src="http://sflogo.sourceforge.net/sflogo.php?group_id=2319&type=16" alt="SourceForge Logo" />
</a>
</p>
</footer>
</main>
</body>
</html>
File diff suppressed because it is too large. Load diff
-82
View File
@@ -1,82 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Artistic Style - Scripts</title>
<meta http-equiv="Content-Language" content="en-us" />
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>Artistic Style Scripts</h1>
<p>
The following are scripts to support the Artistic Style program. They are in various computer languages for multiple
platforms.</p>
<h3>Scripts</h3>
<p>
<a href="https://sourceforge.net/projects/astyle/files/OldFiles/scripts/astyle-clean.py.zip" target="_blank" title="open new window">
<strong>astyle-clean.py</strong></a>&nbsp; is a <strong>Python script</strong> to clean a directory tree by
moving Artistic Style backup files to a separate directory. This allows Artistic Style to create backup files
without cluttering your source directories. There are four variables at the start of the script that need to be
set for each application. The script will move or copy backup files to a backup directory maintaining the original
directory structure. New backup files will be copied over the old so you will always have the most current
backup.</p>
<p>
<a href="https://sourceforge.net/projects/astyle/files/OldFiles/scripts/astyle-clean.sh.zip" target="_blank" title="open new window">
<strong>astyle-clean.sh</strong></a>&nbsp; is a <strong>Linux shell script</strong> to clean a directory tree
by moving Artistic Style backup files to a separate directory. This allows Artistic Style to create backup files
without cluttering your source directories. There are four variables at the start of the script that need to be
set for each application. The script will move or copy backup files to a backup directory maintaining the original
directory structure. New backup files will be copied over the old so you will always have the most current
backup.</p>
<p>
<a href="https://sourceforge.net/projects/astyle/files/OldFiles/scripts/astyle-clean.bat.zip" target="_blank" title="open new window">
<strong>astyle-clean.bat</strong></a>&nbsp; is a <strong>Windows batch file</strong> to clean a directory
tree by moving Artistic Style backup files to a separate directory. This allows Artistic Style to create backup
files without cluttering your source directories. There are four variables at the start of the script that need
to be set for each application. The script will move or copy backup files to a backup directory maintaining the
original directory structure. New backup files will be copied over the old so you will always have the most current
backup.</p>
<p>
<a href="https://sourceforge.net/projects/astyle/files/OldFiles/scripts/astyle.pl.zip" target="_blank" title="open new window">
<strong>astyle.pl</strong></a>&nbsp; is a <strong>Mac Perl script</strong> to indent source files in TextWrangler
and BBEdit using Artistic Style. Selected text from the editor can be passed to Artistic Style and replaced with
the reformatted text. Save the script in the "Unix Filters" directory (you need to restart TextWrangler to see
new scripts). Then simply highlight the text you would like to indent, choose the script from the Shebang (<code>#!</code>)
menu, and the text will be immaculately formatted. You can add Artistic Style options to the "my $astyle" line
in the script.</p>
<p>
<a href="https://sourceforge.net/projects/astyle/files/OldFiles/scripts/indent-commit.pl.zip" target="_blank" title="open new window">
<strong>indent-commit.pl</strong></a>&nbsp; is a <strong>Perl script</strong> to integrate Artistic Style
with a CVS repository check-in. Before code is checked in, Artistic Style is automatically called so that the
repository files have a consistent style. This script was posted on the web site several years ago and probably
needs to be updated.</p>
<p>
<a href="https://sourceforge.net/projects/astyle/files/OldFiles/scripts/astyle-hooks.el.zip" target="_blank" title="open new window">
<strong>astyle-hooks.el</strong></a>&nbsp; is an <strong>Emacs Lisp script</strong> containing hooks to convert
Emacs default styles to Artistic Style default styles. There are hooks for C++, Java, and C# files. The C# hook
requires the csharp-mode.el file from <a href="https://code.google.com/p/csharpmode/" target="_blank" title="open new window">
csharpmode</a> on Google Project Hosting. For best results Artistic Style should use the options &#8209;&#8209;min&#8209;conditional&#8209;indent=0
(&#8209;m0) and &#8209;&#8209;max&#8209;continuation&#8209;indent=50 (&#8209;M50). Emacs does not seem to have
an option equivalent to these. The formatting for Emacs and Artistic Style will not be identical, but should be
reasonably close.</p>
<p>
&nbsp;</p>
<p style="margin-left: -0.4in; text-align: center;">
<a href="http://sourceforge.net/projects/astyle">
<img src="http://sflogo.sourceforge.net/sflogo.php?group_id=2319&type=16" alt="" /></a></p>
<p>
&nbsp;</p>
</body>
</html>
-460
View File
@@ -1,460 +0,0 @@
/* Modern CSS for Artistic Style documentation */
:root {
--primary-color: #4169e1; /* RoyalBlue */
--hover-color: #6495ed; /* CornflowerBlue */
--accent-color: #fffdda; /* Light yellow for code blocks */
--text-color: #333;
--light-text: #fff;
--heading-color: var(--primary-color);
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
scroll-behavior: smooth;
font-size: 16px;
}
body {
font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
line-height: 1.6;
color: var(--text-color);
background-color: white;
margin: 0;
padding: 2rem;
max-width: 1200px;
margin: 0 auto;
}
/* Typography */
h1, h2, h3, h4, h5 {
color: var(--heading-color);
margin-top: 1.5em;
margin-bottom: 0.5em;
font-weight: 600;
line-height: 1.3;
}
h1 {
font-size: 2.2rem;
font-style: italic;
border-bottom: 2px solid var(--primary-color);
padding-bottom: 0.3em;
}
h2 {
font-size: 1.8rem;
}
h3 {
font-size: 1.5rem;
}
h4 {
font-size: 1.2rem;
}
h5 {
font-size: 1rem;
text-transform: uppercase;
}
p {
margin-bottom: 1.2em;
line-height: 1.6;
}
/* Links */
a {
color: var(--primary-color);
text-decoration: none;
transition: color 0.2s ease;
}
a:hover {
color: var(--hover-color);
text-decoration: underline;
}
a.contents:link, a.contents:visited {
color: var(--primary-color);
text-decoration: none;
}
a.contents:hover {
color: var(--hover-color);
text-decoration: underline;
}
/* Lists */
ul, ol {
margin-left: 1.5em;
margin-bottom: 1.5em;
}
li {
margin-bottom: 0.5em;
}
/* Code blocks */
pre {
color: var(--primary-color);
font-family: 'Courier New', Courier, monospace;
background-color: var(--accent-color);
padding: 1.2em;
border-radius: 4px;
overflow-x: auto;
margin: 1.5em 0;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* Images */
img {
max-width: 100%;
height: auto;
border: none;
}
/* Back to top button */
#topBtn {
display: none;
position: fixed;
bottom: 2rem;
right: 2rem;
z-index: 99;
border: none;
outline: none;
background-color: var(--primary-color);
color: var(--light-text);
cursor: pointer;
padding: 0.8rem;
border-radius: 50%;
font-size: 1rem;
opacity: 0.8;
transition: background-color 0.3s, opacity 0.3s;
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
#topBtn:hover {
background-color: var(--hover-color);
opacity: 1;
}
/* Slogan */
#slogan {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-weight: 200;
position: fixed;
bottom: 3rem;
right: 1rem;
z-index: 98;
color: var(--primary-color);
font-size: 2.5rem;
opacity: 0.4;
transition: opacity 0.3s;
}
#slogan:hover {
opacity: 0.8;
}
/* Navigation Menu */
.menu ul {
list-style-type: none;
display: flex;
flex-wrap: wrap;
justify-content: center;
padding: 0;
margin: 2rem 0;
gap: 0.5rem;
}
.menu ul li {
position: relative;
}
.menu ul li a {
text-decoration: none;
display: block;
padding: 1rem 1.5rem;
background: var(--primary-color);
color: var(--light-text);
border-radius: 4px;
transition: all 0.3s ease;
font-weight: 500;
min-width: 180px;
text-align: center;
}
.menu ul li a:hover,
.menu ul li a:focus,
.menu ul li a:active {
background: var(--hover-color);
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
/* Submenu styling */
.menu ul ul {
position: absolute;
left: 0;
opacity: 0;
visibility: hidden;
margin: 0;
flex-direction: column;
width: 100%;
box-shadow: 0 4px 10px rgba(0,0,0,0.2);
border-radius: 4px;
overflow: hidden;
transition: opacity 0.3s, visibility 0.3s;
z-index: 100;
background: var(--primary-color);
}
.menu ul li:hover ul {
opacity: 1;
visibility: visible;
}
.menu ul ul li {
width: 100%;
margin-bottom: 0;
}
.menu ul ul li a {
width: 100%;
padding: 0.5rem 1rem;
border-radius: 0;
background: var(--primary-color);
border-bottom: 1px solid rgba(255,255,255,0.1);
text-align: left;
}
.menu ul ul li a:hover {
background: var(--hover-color);
transform: none;
}
.menu-arrow {
font-size: 0.7rem;
margin-left: 0.3rem;
}
/* Responsive button for mobile menu */
.responsive-button {
padding: 1rem;
color: var(--light-text);
background: var(--primary-color);
border-radius: 4px;
text-align: center;
display: none;
cursor: pointer;
font-weight: 600;
margin: 1rem 0;
}
input[id=responsive-button] {
display: none;
}
input[id=responsive-button]:checked ~ .menu {
display: block;
}
/* Responsive styles */
@media screen and (max-width: 900px) {
body {
padding: 1rem;
}
h1 {
font-size: 1.8rem;
}
h2 {
font-size: 1.5rem;
}
h3 {
font-size: 1.3rem;
}
#slogan {
font-size: 1.8rem;
bottom: 2rem;
right: 1rem;
}
}
@media screen and (max-width: 780px) {
.responsive-button {
display: block;
}
.menu {
display: none;
}
.menu ul {
flex-direction: column;
width: 100%;
}
.menu ul li {
width: 100%;
margin-bottom: 2px;
}
.menu ul li a {
width: 100%;
text-align: left;
border-radius: 2px;
}
.menu ul ul {
position: static;
display: none;
opacity: 1;
visibility: visible;
box-shadow: none;
margin-left: 1rem;
width: calc(100% - 1rem);
}
.menu ul li:hover ul {
display: block;
}
#slogan {
font-size: 1.5rem;
opacity: 0.4;
}
#topBtn {
bottom: 1rem;
right: 1rem;
}
}
@media screen and (max-width: 480px) {
body {
padding: 0.8rem;
}
h1 {
font-size: 1.6rem;
}
h2 {
font-size: 1.4rem;
}
h3 {
font-size: 1.2rem;
}
pre {
padding: 1rem;
}
#slogan {
display: none;
}
}
/* Tables */
.responsive-table {
width: 100%;
margin: 1.5em 0;
border-collapse: collapse;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
border-radius: 4px;
overflow: hidden;
}
.responsive-table td,
.responsive-table th {
padding: 0.8rem;
text-align: left;
border-bottom: 1px solid rgba(0,0,0,0.1);
}
.responsive-table td img {
vertical-align: middle;
}
@media screen and (max-width: 600px) {
.responsive-table {
display: block;
overflow-x: auto;
}
}
/* Release notes specific styles */
.release-notes .release {
margin-bottom: 2.5rem;
}
.release-notes .release:last-child {
border-bottom: none;
}
.release-notes .release h3 {
background-color: var(--primary-color);
color: white;
padding: 0.6rem 1rem;
border-radius: 4px;
margin-bottom: 1rem;
}
.release-notes .release ul {
list-style-type: square;
}
.release-notes .release li {
margin-bottom: 0.5rem;
line-height: 1.5;
}
.release-notes .release li a {
word-break: break-word;
}
.archive-link {
margin: 2rem 0;
padding: 1rem;
background-color: rgba(0,0,0,0.05);
border-radius: 4px;
text-align: center;
}
/* Main content and sections */
main {
max-width: 100%;
}
.intro {
margin: 2rem 0;
font-size: 1.1rem;
line-height: 1.6;
}
.content article {
margin-bottom: 2rem;
}
.sourceforge-logo {
text-align: center;
margin: 2rem 0;
}
footer {
margin-top: 3rem;
padding-top: 1rem;
border-top: 1px solid rgba(0,0,0,0.1);
}
-123
View File
@@ -1,123 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Artistic Style - Subversion</title>
<meta http-equiv="Content-Language" content="en-us" />
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>Artistic Style Source Repositories</h1>
<h2>Git</h2>
<p>
The <a href="https://gitlab.com/saalen/astyle/-/tree/master">Git repository</a> is located at Gitlab. This repo is used for day to day development. The SVN repo mentioned below is kept up to date regularly.
</p>
<h2>Subversion</h2>
<p>
The <a href="https://svn.code.sf.net/p/astyle/code/">SVN repository</a> is located at SourceForge. The intermediate
source files have not been through the extensive system tests that are done before each release. Use reasonable
precautions when using source code from the repository.</p>
<p>
The current version is in the "trunk/AStyle" branch of the repository. The file and directory names are case
sensitive.
</p>
<p>
A sample checkout is:<br />
<strong>svn&nbsp; checkout&nbsp; "https://svn.code.sf.net/p/astyle/code/trunk/AStyle"&nbsp;
"$HOME/astyle"</strong></p>
<p>
You can also <a href="https://sourceforge.net/p/astyle/code/HEAD/tree/" target="_blank" title="open new window">browse
the subversion repository</a>. The current development release is in the "trunk" directory. This gives you
a view into the current status of the project's code without actually checking-out the files.</p>
<h3>Other Projects</h3>
<p>
Two additional Artistic Style projects are available in the repository. They are not maintained for the general
public, but are available if you want them. You may have to create your own project files and scripts to use
them.</p>
<p>
All projects, and any additional source required, should be installed in the same top level folder. A sample file
directory containing ALL the projects should look as follows. The project dependencies are described
below.</p>
<pre> Projects
AStyle
AStyleDev
AStyleTest
AStyleWx
AStyleWxTest
</pre>
<h4>AStyleDev</h4>
<p>
AStyleDev contains the development files that are made available in the "Developer Information" section. Refer
to that section for more information.</p>
<p>
These projects require the Artistic Style project to compile.</p>
<p>
A sample checkout is:<br />
<strong>svn&nbsp; checkout&nbsp; "https://svn.code.sf.net/p/astyle/code/trunk/AStyleDev"&nbsp; "$HOME/astyledev"
</strong></p>
<h4>AStyleTest</h4>
<p>
AStyleTest contains the unit test programs and test scripts for Artistic Style. There are over 2500 tests in the
main test program.</p>
<p>
This project requires the Artistic Style project to compile.
In addition, the test program requires Google Mock and Google Test described below.</p>
<p>
The main test project, AStyleTest, can be run in Visual Studio using the graphical Visual Studio Test
Explorer. The procedure is described below.</p>
<p>
A sample checkout is:<br />
<strong>svn&nbsp; checkout&nbsp; "https://svn.code.sf.net/p/astyle/code/trunk/AStyleTest"&nbsp; "$HOME/astyletest"
</strong></p>
<h4>AStyleWx</h4>
<p>
AStyleWx contains a GUI test program for Artistic Style that uses the wxWidgets C++ library.</p>
<p>
This project requires the Artistic Style project to compile.
Files for download are made available in the
<a href="https://sourceforge.net/projects/astylewx.astyle.p/" target="_blank" title="open new window">Artistic Style
Wx</a> subproject. The download contains all files needed to compile the project. The subproject can be accessed
from the Artistic Style SourceForge pages.</p>
<p>
A sample checkout is:<br />
<strong>svn&nbsp; checkout&nbsp; "https://svn.code.sf.net/p/astyle/code/trunk/AStyleWx&quot;&nbsp; "$HOME/astylewx&quot;
</strong></p>
<h4>AStyleWxTest</h4>
<p>
AStyleTest contains the unit test programs and test scripts for AStyleWx.&nbsp; </p>
<p>
This project requires the AStyleWx project to compile. In addition, the test program requires Google Mock and
Google Test described below.</p>
<p>
A sample checkout is:<br />
<strong>svn&nbsp; checkout&nbsp; "https://svn.code.sf.net/p/astyle/code/trunk/AStyleWxTest"&nbsp; "$HOME/astylewxtest"
</strong></p>
<p style="margin-left: -0.4in; text-align: center;">
<a href="http://sourceforge.net/projects/astyle">
<img src="http://sflogo.sourceforge.net/sflogo.php?group_id=2319&type=16" alt="" /></a></p>
<p>
&nbsp;</p>
</body>
</html>
-92
View File
@@ -1,92 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>.NET Framework SDK</title>
<meta http-equiv="Content-Language" content="en-us" />
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>Visual Studio 2010 C++ Express</h1>
<h2>Install Instructions for .NET Framework SDK</h2>
<p>
&nbsp;</p>
<p>
Following are instructions for installing the .NET Framework SDK in Visual Studio 2010 Express and adding x64
platforms to an existing project in a manner similar to the more expensive Visual Studio editions.</p>
<h4>Installing .NET Framework SDK</h4>
<p>
64-bit tools are not available in the Visual Studio 2010 C++ Express Edition by default. To enable 64-bit targets,
install the .NET Framework SDK in addition to the Visual Studio 2010 Express Edition. Otherwise, the x64 solution
platform is not available and a warning will occur if you open a project containing a 64-bit target.</p>
<p>
Install the <a href="http://www.microsoft.com/en-us/download/details.aspx?id=8279" target="_blank" title="open new window">
Windows SDK</a> appropriate for your operating system. Use the "Install Now" link to get the SDK. You can
optionally install the Windows Performance Toolkit, Debugging Tools, and Application Verifier. The Help is also
optional.</p>
<p>
After installing this package the x64 configurations can be created.</p>
<p>
IMPORTANT: If Visual Studio 2010 Service Pack 1 is applied after the .NET Framework SDK install, an additional
update is required to restore the Visual C++ compilers and libraries that may have been removed. Information is
available <a href="http://msdn.microsoft.com/en-us/vstudio//gg697159" target="_blank"
title="open new window">here</a>.</p>
<h4>Adding x64 to Project Files</h4>
<p>
Open a Win32 project. Open the Configuration Manager from the Build menu. In the Active Solution Platform select
New. For the New Platform select x64. You will need to &#8220;Copy settings from Win32&#8221; and check
&#8220;Create new project platforms&#8221;.</p>
<p>
Open the Properties from the Project menu. There is a new configuration property that needs to be set for the
linker to find the system libraries. Be sure the x64 platform is selected and change "Configuration Properties
&gt; General
&gt; Platform Toolset<strong>"</strong>, to <strong>Windows7.1SDK</strong>. Otherwise, you will get linker errors
such as "LINK : fatal error LNK1104: cannot open file 'kernel32.lib'". This setting can also optionally be used
for the Win32 platform.</p>
<p>
The x64 configuration can now be compiled, but the compiler will place the files in the same directories as the
Win32 compiles. To correct this, the x64 compiles should be placed in an x64 directory using the <strong>$(Platform)</strong>
macro.</p>
<p>
Add the $(Platform) macro to &#8220;Configuration Properties &gt; General &gt; Output directory&#8221; so the
entry becomes $(SolutionDir)<strong>$(Platform)\</strong>$(Configuration)\.</p>
<p>
Leave &#8220;Configuration Properties&nbsp; &gt; General&gt; Intermediate Directory&#8221; at the default which
should be <strong>$(Platform)\</strong>$(Configuration)\.</p>
<p>
Check the x64 Debug configuration &#8220;Configuration Properties &gt; Linker &gt; Debugging &gt; Generate Program
Database File&#8221; for $(TargetDir)$(TargetName).pdb.</p>
<p>
Compile the project. If there are compile errors you may need to add the <strong>$(Platform)</strong> macro
to other settings as well. For example, if there are user library files the macro may need to be added to
&#8220;Configuration Properties &gt; Linker &gt; General &gt; Additional Library Directories&#8221;.</p>
<p>
You should now be able to compile both Win32 and x64 platforms in a manner similar to the more expensive Visual
Studio editions.</p>
<p>
&nbsp;</p>
<p style="margin-left: -0.4in; text-align: center;">
<a href="http://sourceforge.net/projects/astyle">
<img src="http://sflogo.sourceforge.net/sflogo.php?group_id=2319&type=16" alt="" /></a></p>
<p>
&nbsp;</p>
</body>
</html>
-23
View File
@@ -1,23 +0,0 @@
### Coding Styles
Coding style, or programming style, is a set of rules or guidelines
used when writing the source code. It is often claimed that following
a particular coding style will help in reading and understanding
source code conforming to the style, and help to avoid introducing
errors.
### .ini Files
The .ini files in this folder contain
Artistic Style options for various coding styles. Using the option
files will give approximately the indicated coding style. The
files may be input using --options=filepath/filename.ini.
### .yaml Files
The .yaml files in this folder are clang-format style configuration
files. They have been modified to have approximately the same options as
the Artistic Style options files. Change the file name to.clang-format
or _clang-format to use the files. The results can be compared to
the Artistic style results using the above .ini files.
-24
View File
@@ -1,24 +0,0 @@
# Allman Coding Style Options
# Based on an old AStyle release.
# braces and indent
style=allman
# indent=spaces # this is the default
# indentation
indent-preproc-block
indent-preproc-define
min-conditional-indent=0
max-continuation-indent=80
# padding
pad-oper
pad-header
unpad-paren
align-pointer=type
# formatting
break-one-line-headers
keep-one-line-blocks
keep-one-line-statements
convert-tabs
-37
View File
@@ -1,37 +0,0 @@
# astyle formatting options
# for all projects except AStyleDev example projects
# example projects use style=horstmann and indent=spaces (-A9s)
# for compatibility with Visual Studio: force-tab-x, min-conditional-indent=0 (-Tm0)
# short options: -A1txn -SxWwM60 -pHk1 -xbO -xQxrxsxMxP2
# braces and indent
style=allman
indent=tab
attach-namespaces
# indentation
indent-switches
indent-preproc-block
indent-preproc-define
max-continuation-indent=60
# padding
pad-oper
pad-header
align-pointer=type
# formatting
break-one-line-headers
keep-one-line-blocks
# objective-c
pad-method-prefix
unpad-return-type
unpad-param-type
align-method-colon
pad-method-colon=after
# other options
lineend=linux
# don't use "other options" (e.g. formatted) in this file
# send them as additional command line options
-34
View File
@@ -1,34 +0,0 @@
# Chromium Coding Style Options
# https://chromium.googlesource.com/chromium/src/+/master/styleguide/styleguide.md
# braces and indent
style=google
indent=spaces=2
# indentation
indent-switches
indent-continuation=2
indent-preproc-block
indent-preproc-define
min-conditional-indent=0
max-continuation-indent=80
# padding
pad-oper
pad-header
unpad-paren
align-pointer=type
# formatting
break-one-line-headers
keep-one-line-blocks
keep-one-line-statements
convert-tabs
#close-templates
# objective-c
pad-method-prefix
unpad-return-type
unpad-param-type
align-method-colon
pad-method-colon=none
-119
View File
@@ -1,119 +0,0 @@
---
# clang-chromium.yaml
# clang-format version 6.0
Language: Cpp
# BasedOnStyle: Chromium
AccessModifierOffset: -1
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Left
AlignOperands: true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: true
BinPackArguments: true
BinPackParameters: false
BraceWrapping:
AfterClass: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: false
BeforeElse: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Attach
BreakBeforeInheritanceComma: false
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeColon
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 0 # 80 ##########
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DerivePointerAlignment: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
IncludeBlocks: Preserve
IncludeCategories:
- Regex: '^<ext/.*\.h>'
Priority: 2
- Regex: '^<.*\.h>'
Priority: 1
- Regex: '^<.*'
Priority: 2
- Regex: '.*'
Priority: 3
IncludeIsMainRegex: '([-_](test|unittest))?$'
IndentCaseLabels: true
IndentPPDirectives: None
IndentWidth: 2
IndentWrappedFunctionNames: false
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: false
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 2 # 1 ##########
NamespaceIndentation: None
ObjCBlockIndentWidth: 2
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: false
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 1
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 200
PointerAlignment: Left
RawStringFormats:
- Delimiter: pb
Language: TextProto
BasedOnStyle: google
ReflowComments: true
SortIncludes: false # true ##########
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 2
SpacesInAngles: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Auto
TabWidth: 8
UseTab: Never
...
-119
View File
@@ -1,119 +0,0 @@
---
# clang-google.yaml
# clang-format version 6.0
Language: Cpp
# BasedOnStyle: Google
AccessModifierOffset: -1
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Left
AlignOperands: true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: true
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: true
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
AfterClass: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: false
BeforeElse: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Attach
BreakBeforeInheritanceComma: false
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeColon
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 0 # 80 ##########
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DerivePointerAlignment: true
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
IncludeBlocks: Preserve
IncludeCategories:
- Regex: '^<ext/.*\.h>'
Priority: 2
- Regex: '^<.*\.h>'
Priority: 1
- Regex: '^<.*'
Priority: 2
- Regex: '.*'
Priority: 3
IncludeIsMainRegex: '([-_](test|unittest))?$'
IndentCaseLabels: true
IndentPPDirectives: None
IndentWidth: 2
IndentWrappedFunctionNames: false
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: false
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCBlockIndentWidth: 2
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: false
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 1
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 200
PointerAlignment: Left
RawStringFormats:
- Delimiter: pb
Language: TextProto
BasedOnStyle: google
ReflowComments: true
SortIncludes: false # true ##########
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 2
SpacesInAngles: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Auto
TabWidth: 8
UseTab: Never
...
-117
View File
@@ -1,117 +0,0 @@
---
# clang-llvm.yaml
# clang-format version 6.0
Language: Cpp
# BasedOnStyle: LLVM
AccessModifierOffset: -2
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Right
AlignOperands: true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: false
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
AfterClass: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: false
BeforeElse: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Attach
BreakBeforeInheritanceComma: false
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeColon
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 0 # 80 ##########
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DerivePointerAlignment: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
IncludeBlocks: Preserve
IncludeCategories:
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
Priority: 2
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
Priority: 3
- Regex: '.*'
Priority: 1
IncludeIsMainRegex: '(Test)?$'
IndentCaseLabels: false
IndentPPDirectives: None
IndentWidth: 2
IndentWrappedFunctionNames: false
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: true
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 2 # 1 ##########
NamespaceIndentation: None
ObjCBlockIndentWidth: 2
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Right
RawStringFormats:
- Delimiter: pb
Language: TextProto
BasedOnStyle: google
ReflowComments: true
SortIncludes: false # true ##########
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Cpp11
TabWidth: 8
UseTab: Never
...
-117
View File
@@ -1,117 +0,0 @@
---
# clang-mozilla.yaml
# clang-format version 6.0
Language: Cpp
# BasedOnStyle: Mozilla
AccessModifierOffset: -2
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Right
AlignOperands: true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: TopLevel
AlwaysBreakAfterReturnType: TopLevel
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: true
BinPackArguments: false
BinPackParameters: false
BraceWrapping:
AfterClass: true
AfterControlStatement: false
AfterEnum: true
AfterFunction: true
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: true
AfterUnion: true
AfterExternBlock: true
BeforeCatch: false
BeforeElse: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: false
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Mozilla
BreakBeforeInheritanceComma: true
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeComma
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 0 # 80 ##########
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 2
ContinuationIndentWidth: 2
Cpp11BracedListStyle: false
DerivePointerAlignment: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: false
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
IncludeBlocks: Preserve
IncludeCategories:
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
Priority: 2
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
Priority: 3
- Regex: '.*'
Priority: 1
IncludeIsMainRegex: '(Test)?$'
IndentCaseLabels: true
IndentPPDirectives: None
IndentWidth: 2
IndentWrappedFunctionNames: false
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: true
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 2 # 1 ##########
NamespaceIndentation: None
ObjCBlockIndentWidth: 2
ObjCSpaceAfterProperty: true
ObjCSpaceBeforeProtocolList: false
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 200
PointerAlignment: Left
RawStringFormats:
- Delimiter: pb
Language: TextProto
BasedOnStyle: google
ReflowComments: true
SortIncludes: false # true ##########
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterTemplateKeyword: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Cpp11
TabWidth: 8
UseTab: Never
...
-37
View File
@@ -1,37 +0,0 @@
---
# clang-visualstudio.yaml
# clang-format version 6.0
BasedOnStyle: WebKit
Language: Cpp
Standard: Cpp11
UseTab: Never
IndentWidth: 4
ColumnLimit: 0 # 120 ##########
PointerAlignment: Left
BreakBeforeBraces: Allman
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: false
AlwaysBreakTemplateDeclarations: true
AlignAfterOpenBracket: true
AlignOperands: true
AlignTrailingComments: true
BinPackArguments: false
BinPackParameters: false
BreakBeforeBinaryOperators: None
BreakConstructorInitializersBeforeComma: true
ConstructorInitializerAllOnOneLineOrOnePerLine: true
Cpp11BracedListStyle: true
IndentCaseLabels: true
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 2 ##########
NamespaceIndentation: None
PenaltyReturnTypeOnItsOwnLine: 1000
SortIncludes: false ##########
SpaceAfterTemplateKeyword: false
...
-117
View File
@@ -1,117 +0,0 @@
---
# clang-webkit.yaml
# clang-format version 6.0
Language: Cpp
# BasedOnStyle: WebKit
AccessModifierOffset: -4
AlignAfterOpenBracket: DontAlign
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Right
AlignOperands: false
AlignTrailingComments: false
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: false
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
AfterClass: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: true
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: false
BeforeElse: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: All
BreakBeforeBraces: WebKit
BreakBeforeInheritanceComma: false
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeComma
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 0
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: false
DerivePointerAlignment: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: false
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
IncludeBlocks: Preserve
IncludeCategories:
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
Priority: 2
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
Priority: 3
- Regex: '.*'
Priority: 1
IncludeIsMainRegex: '(Test)?$'
IndentCaseLabels: false
IndentPPDirectives: None
IndentWidth: 4
IndentWrappedFunctionNames: false
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: true
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 2 # 1 ##########
NamespaceIndentation: Inner
ObjCBlockIndentWidth: 4
ObjCSpaceAfterProperty: true
ObjCSpaceBeforeProtocolList: true
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Left
RawStringFormats:
- Delimiter: pb
Language: TextProto
BasedOnStyle: google
ReflowComments: true
SortIncludes: false # true ##########
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Cpp11
TabWidth: 8
UseTab: Never
...
-33
View File
@@ -1,33 +0,0 @@
# Gnu Coding Style Options
# https://www.gnu.org/prep/standards/html_node/Writing-C.html#Writing-C
# Based on an old AStyle release and examples from the above GNU Coding Standards.
# braces and indent
style=gnu
indent=spaces=2
# indentation
indent-preproc-block
indent-preproc-define
min-conditional-indent=0
max-continuation-indent=80
# padding
pad-oper
pad-first-paren-out
pad-header
unpad-paren
align-pointer=name
# formatting
break-one-line-headers
keep-one-line-blocks
keep-one-line-statements
convert-tabs
# objective-c
pad-method-prefix
pad-return-type
unpad-param-type
align-method-colon
pad-method-colon=after
-36
View File
@@ -1,36 +0,0 @@
# Google Coding Style Options
# C++ - https://google.github.io/styleguide/cppguide.html
# Java - https://google.github.io/styleguide/javaguide.html
# ObjC - https://google.github.io/styleguide/objcguide.xml
# braces and indent
style=google
indent=spaces=2
# indentation
indent-switches
indent-continuation=2
indent-preproc-block
indent-preproc-define
min-conditional-indent=0
max-continuation-indent=80
# padding
pad-oper
pad-header
unpad-paren
align-pointer=type
# formatting
break-one-line-headers
keep-one-line-blocks
keep-one-line-statements
convert-tabs
#close-templates
# objective-c
pad-method-prefix
unpad-return-type
unpad-param-type
align-method-colon
pad-method-colon=none
-26
View File
@@ -1,26 +0,0 @@
# Horstmann Coding Style Options
# Obtained from Horstmann source code.
# braces and indent
style=horstmann
indent=spaces=3
# indentation
indent-modifiers
indent-switches
indent-preproc-block
indent-preproc-define
min-conditional-indent=0
max-continuation-indent=80
# padding
pad-oper
pad-header
unpad-paren
align-pointer=type
# formatting
break-one-line-headers
keep-one-line-blocks
keep-one-line-statements
convert-tab
-23
View File
@@ -1,23 +0,0 @@
# Java Coding Style Options
# Obtained from Java source code.
# braces and indent
style=java
# indentation
indent-preproc-block
indent-preproc-define
min-conditional-indent=0
max-continuation-indent=80
# padding
pad-oper
pad-header
unpad-paren
align-pointer=type
# formatting
break-one-line-headers
keep-one-line-blocks
keep-one-line-statements
convert-tab
-24
View File
@@ -1,24 +0,0 @@
# Linux Coding Style Options
# Obtained from the Linux Kernel BSD.
# braces and indent
style=linux
indent=tab=8
# indentation
indent-preproc-block
indent-preproc-define
min-conditional-indent=0
max-continuation-indent=80
# padding
pad-oper
pad-header
unpad-paren
align-pointer=name
# formatting
break-one-line-headers
keep-one-line-blocks
keep-one-line-statements
convert-tabs
-33
View File
@@ -1,33 +0,0 @@
# LLVM Coding Style Options
# http://llvm.org/docs/CodingStandards.html
# braces and indent
style=attach
indent=spaces=2
# indentation
indent-continuation=2
indent-preproc-block
indent-preproc-define
min-conditional-indent=0
max-continuation-indent=80
# padding
pad-oper
pad-header
unpad-paren
align-pointer=name
# formatting
break-one-line-headers
keep-one-line-blocks
keep-one-line-statements
convert-tabs
close-templates
# objective-c
pad-method-prefix
unpad-return-type
unpad-param-type
align-method-colon
pad-method-colon=none
-35
View File
@@ -1,35 +0,0 @@
# Mozilla Coding Style Options
# https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style
# braces and indent
style=mozilla
indent=spaces=2
# indentation
indent-switches
indent-preproc-block
indent-preproc-define
min-conditional-indent=0
max-continuation-indent=80
# padding
pad-oper
pad-header
unpad-paren
align-pointer=type
# formatting
break-one-line-headers
break-return-type
break-return-type-decl
keep-one-line-blocks
keep-one-line-statements
convert-tabs
close-templates
# objective-c
pad-method-prefix
unpad-return-type
unpad-param-type
align-method-colon
pad-method-colon=none
-27
View File
@@ -1,27 +0,0 @@
# Stroustrup Coding Style Options
# http://www.stroustrup.com/Programming/PPP-style.pdf.
# braces and indent
style=stroustrup
attach-closing-while
indent=spaces=5
# indentation
indent-modifiers
indent-switches
indent-preproc-block
indent-preproc-define
min-conditional-indent=0
max-continuation-indent=80
# padding
pad-oper
pad-header
unpad-paren
align-pointer=type
# formatting
break-one-line-headers
keep-one-line-blocks
keep-one-line-statements
convert-tabs
-34
View File
@@ -1,34 +0,0 @@
# Visual Studio Coding Style Options
# https://github.com/Microsoft/cpprestsdk/
# BasedOnStyle: WebKit
# braces and indent
style=allman
attach-closing-while
# indentation
indent-switches
indent-after-parens
indent-preproc-block
indent-preproc-define
min-conditional-indent=0
max-continuation-indent=120
# padding
pad-oper
pad-header
unpad-paren
align-pointer=type
# formatting
keep-one-line-blocks
keep-one-line-statements
convert-tabs
#close-templates
# objective-c
pad-method-prefix
unpad-return-type
unpad-param-type
align-method-colon
pad-method-colon=none
-33
View File
@@ -1,33 +0,0 @@
# WebKit Coding Style Options
# https://webkit.org/code-style-guidelines/
# braces and indent
style=webkit
attach-closing-while
# indentation
indent-after-parens
indent-preproc-block
indent-preproc-define
min-conditional-indent=0
max-continuation-indent=80
# padding
pad-oper
pad-header
unpad-paren
align-pointer=type
# formatting
break-one-line-headers
keep-one-line-blocks
keep-one-line-statements
convert-tabs
#close-templates
# objective-c
pad-method-prefix
unpad-return-type
unpad-param-type
align-method-colon
pad-method-colon=none
-557
View File
@@ -1,557 +0,0 @@
.TH astyle 1 "2024-06-30" "Andre Simon" "user documentation"
.SH NAME
astyle - C syntax indenter and formatter
.SH SYNOPSIS
.B astyle
[OPTIONS] [input files]
.SH DESCRIPTION
.B astyle
provides a variety of options to apply a consistent coding style to C, C++, Java or Objective-C source code files.
.PP
When indenting a specific file, the resulting indented file RETAINS
the original file-name. The original pre-indented file is renamed,
with a suffix of '.orig' added to the original filename.
.PP
Wildcards (* and ?) may be used in the filename.
A 'recursive' option can process directories recursively.
Multiple file extensions may be separated by a comma.
.PP
By default, astyle is set up to indent with four spaces per indent,
a maximal indentation of 40 spaces inside continuous statements,
a minimum indentation of eight spaces inside conditional statements,
and NO formatting options.
.SH Brace Style Options
If no brace style is requested, the opening braces will not be
changed and closing braces will be broken from the preceding line.
.IP "--style=allman OR --style=bsd OR --style=break OR -A1"
Allman style formatting/indenting.
Broken braces.
.IP "--style=java OR --style=attach OR -A2"
Java style formatting/indenting.
Attached braces.
.IP "--style=kr OR --style=k&r OR --style=k/r OR -A3"
Kernighan & Ritchie style formatting/indenting.
Linux braces.
.IP "--style=stroustrup OR -A4"
Stroustrup style formatting/indenting.
Linux braces, with broken closing headers.
.IP "--style=whitesmith OR -A5"
Whitesmith style formatting/indenting.
Broken, indented braces.
Indented class blocks and switch blocks.
.IP "--style=vtk OR -A15"
VTK style formatting/indenting.
Broken, indented braces except for the opening braces.
.IP "--style=ratliff OR --style=banner OR -A6"
Ratliff style formatting/indenting.
Attached, indented braces.
.IP "--style=gnu OR -A7"
GNU style formatting/indenting.
Broken braces, indented blocks.
.IP "--style=linux OR --style=knf OR -A8"
Linux style formatting/indenting.
Linux braces, minimum conditional indent is one-half indent.
.IP "--style=horstmann OR --style=run-in OR -A9"
Horstmann style formatting/indenting.
Run-in braces, indented switches.
.IP "--style=1tbs OR --style=otbs OR -A10"
One True Brace Style formatting/indenting.
Linux braces, add braces to all conditionals.
.IP "--style=google OR -A14"
Google style formatting/indenting.
Attached braces, indented class modifiers.
.IP "--style=mozilla OR -A16"
Mozilla style formatting/indenting.
Linux braces, with broken braces for structs and enums,
and attached braces for namespaces.
.IP "--style=webkit OR -A17"
WebKit style formatting/indenting.
Linux braces, with attached closing headers.
.IP "--style=pico OR -A11"
Pico style formatting/indenting.
Run-in opening braces and attached closing braces.
Uses keep one line blocks and keep one line statements.
.IP "--style=lisp OR -A12"
Lisp style formatting/indenting.
Attached opening braces and attached closing braces.
Uses keep one line statements.
.IP "--style=none"
Preserve existing brace placement without reformatting.
Braces in the output are byte-identical to the input.
Other formatting options (e.g. --pad-comma) continue to work.
.SH Tab Options:
If no indentation option is set, the default
option of 4 spaces per indent will be used.
.IP "--indent=spaces=# OR -s#"
Indent using # spaces per indent. Not specifying #
will result in a default of 4 spaces per indent.
.IP "--indent=tab OR --indent=tab=# OR -t OR -t#"
Indent using tab characters, assuming that each
indent is # spaces long. Not specifying # will result
in a default assumption of 4 spaces per indent.
.IP "--indent=force-tab=# OR -T#"
Indent using tab characters, assuming that each
indent is # spaces long. Force tabs to be used in areas
AStyle would prefer to use spaces.
.IP "--indent=force-tab-x=# OR -xT#"
Allows the tab length to be set to a length that is different
from the indent length. This may cause the indentation to be
a mix of both spaces and tabs. This option sets the tab length.
.IP "--indent=none"
Preserve existing indentation without recomputing indent depth.
Both the beautifier and enhancer indent passes are bypassed.
Other formatting options (e.g. --pad-comma) continue to work.
.SH Brace Modify Options:
.IP "--attach-namespaces OR -xn"
Attach braces to a namespace statement.
.IP "--attach-classes OR -xc"
Attach braces to a class statement.
.IP "--attach-inlines OR -xl"
Attach braces to class inline function definitions.
.IP "--attach-extern-c OR -xk"
Attach braces to an extern "C" statement.
.IP "--attach-closing-while OR -xV"
Attach closing while of do-while to the closing brace.
.SH Indentation Options:
.IP "--indent-classes OR -C"
Indent 'class' blocks so that the entire block is indented.
.IP "--indent-modifiers OR -xG"
Indent 'class' access modifiers, 'public:', 'protected:' or
'private:', one half indent. The rest of the class is not
indented.
.IP "--indent-switches OR -S"
Indent 'switch' blocks, so that the inner 'case XXX:'
headers are indented in relation to the switch block.
.IP "--indent-cases OR -K"
Indent case blocks from the 'case XXX:' headers.
Case statements not enclosed in blocks are NOT indented.
.IP "--indent-namespaces OR -N"
Indent the contents of namespace blocks.
.IP "--indent-after-parens OR -xU"
Indent, instead of align, continuation lines following lines
that contain an opening paren '(' or an assignment '='.
.IP "--indent-continuation=# OR -xt#"
Indent continuation lines an additional # indents.
The valid values are 0 thru 4 indents.
The default value is 1 indent.
.IP "--indent-labels OR -L"
Indent labels so that they appear one indent less than
the current indentation level, rather than being
flushed completely to the left (which is the default).
.IP "--indent-preproc-block OR -xW"
Indent preprocessor blocks at brace level 0.
Without this option the preprocessor block is not indented.
.IP "--indent-preproc-cond OR -xw"
Indent preprocessor conditional statements #if/#else/#endif
to the same level as the source code.
.IP "--indent-preproc-define OR -w"
Indent multi-line preprocessor #define statements.
.IP "--indent-col1-comments OR -Y"
Indent line comments that start in column one.
.IP "--min-conditional-indent=# OR -m#"
Indent a minimal # spaces in a continuous conditional
belonging to a conditional header.
The valid values are:
0 - no minimal indent.
1 - indent at least one additional indent.
2 - indent at least two additional indents.
3 - indent at least one-half an additional indent.
The default value is 2, two additional indents.
.IP "--max-continuation-indent=# OR -M#"
Indent a maximal # spaces in a continuation line,
relative to the previous line.
The minimum and default value is 40.
.SH Padding Options
.IP "--break-blocks OR -f"
Insert empty lines around unrelated blocks, labels, classes, ...
.IP "--break-blocks=all OR -F"
Like --break-blocks, except also insert empty lines
around closing headers (e.g. 'else', 'catch', ...).
.IP "--pad-oper OR -p"
Insert space padding around operators.
.IP "--pad-comma OR -xg"
Insert space padding after commas.
.IP "--pad-negation"
Insert space padding after negations.
.IP "--pad-negation=before"
Insert space padding also before negations.
.IP "--pad-paren OR -P"
Insert space padding around parenthesis on both the outside
and the inside.
.IP "--pad-paren-out OR -d"
Insert space padding around parenthesis on the outside only.
.IP "--pad-first-paren-out OR -xd"
Insert space padding around first parenthesis in a series on
the outside only.
.IP "--pad-paren-in OR -D"
Insert space padding around parenthesis on the inside only.
.IP "--pad-header OR -H"
Insert space padding after paren headers (e.g. 'if', 'for'...).
.IP "--unpad-paren OR -U"
Remove unnecessary space padding around parenthesis. This
can be used in combination with the 'pad' options above.
.IP "--pad-empty-paren OR -xo"
Apply padding to empty pairs of parentheses; combine with other
parenthesis padding options.
.IP "--pad-brackets"
Insert space padding around square brackets on both the outside
and the inside.
.IP "--pad-brackets-in"
Insert space padding around square brackets the inside only.
.IP "--pad-brackets-out"
Insert space padding around square brackets the outside only.
.IP "--unpad-brackets"
Remove unnecessary space padding around square brackets.
.IP "--delete-empty-lines OR -xe"
Delete empty lines within a function or method.
It will NOT delete lines added by the break-blocks options.
.IP "--fill-empty-lines OR -E"
Fill empty lines with the white space of their
previous lines.
.IP "--align-pointer=type OR -k1"
.IP "--align-pointer=middle OR -k2"
.IP "--align-pointer=name OR -k3"
Attach a pointer or reference operator (*, &, or ^) to either
the operator type (left), middle, or operator name (right).
To align the reference separately use --align-reference.
.IP "--align-reference=none OR -W0"
.IP "--align-reference=type OR -W1"
.IP "--align-reference=middle OR -W2"
.IP "--align-reference=name OR -W3"
Attach a reference operator (&) to either
the operator type (left), middle, or operator name (right).
If not set, follow pointer alignment.
.IP "--squeeze-lines=#"
Remove superfluous empty lines exceeding the given number.
.IP "--squeeze-ws"
Remove superfluous whitespace.
.SH Formatting Options
.IP "--break-closing-braces OR -y"
Break braces before closing headers (e.g. 'else', 'catch', ...).
Use with --style=java, --style=kr, --style=stroustrup, --style=linux, or --style=1tbs."
.IP "--break-elseifs OR -e"
Break 'else if()' statements into two different lines.
.IP "--break-one-line-headers OR -xb"
Break one line headers (e.g. 'if', 'while', 'else', ...) from a
statement residing on the same line.
.IP "--add-braces OR -j"
.IP "--add-braces=nested (experimental)"
Add braces to unbraced one line conditional statements.
.IP "--add-one-line-braces OR -J"
Add one line braces to unbraced one line conditional
statements.
.IP "--remove-braces OR -xj"
.IP "--remove-braces=one-line OR -xk [experimental]"
Remove braces from braced conditional statements.
With =one-line only one-line blocks are affected; multi-line braced blocks are left unchanged.
.IP "--break-return-type OR -xB"
.IP "--break-return-type-decl OR -xD"
Break the return type from the function name. Options are
for the function definitions and the function declarations.
.IP "--attach-return-type OR -xf"
.IP "--attach-return-type-decl OR -xh"
Attach the return type to the function name. Options are
for the function definitions and the function declarations.
.IP "--keep-one-line-blocks OR -O"
Don't break blocks residing completely on one line.
.IP "--keep-one-line-statements OR -o"
Don't break lines containing multiple statements into
multiple single-statement lines.
.IP "--convert-tabs OR -c"
Convert tabs to the appropriate number of spaces.
.IP "--close-templates OR -xy"
Close ending angle brackets on template definitions.
.IP "--remove-comment-prefix OR -xp"
Remove the leading '*' prefix on multi-line comments and
indent the comment text one indent.
.IP "--max-code-length=# OR -xC#"
.IP "--break-after-logical OR -xL"
max-code-length=# will break the line if it exceeds more than
# characters. The valid values are 50 thru 200.
If the line contains logical conditionals they will be placed
first on the new line. The option break-after-logical will
cause the logical conditional to be placed last on the
previous line.
.IP "--mode=c"
Indent a C or C++ source file (this is the default).
.IP "--mode=java"
Indent a Java source file.
.IP "--mode=cs"
Indent a C# source file.
.IP "--mode=objc"
Indent an Objective-C source file.
.IP "--mode=js"
Indent a JavaScript source file (experimental).
.IP "--mode=ghc"
Indent a GHC source file (experimental).
.IP "--mode=gsc"
Indent a GSC source file (experimental).
.SH Objective-C Options
.IP "--pad-method-prefix OR -xQ"
Insert space padding after the '-' or '+' Objective-C
method prefix.
.IP "--unpad-method-prefix OR -xR"
Remove all space padding after the '-' or '+' Objective-C
method prefix.
.IP "--pad-return-type OR -xq"
Insert space padding after the Objective-C return type.
.IP "--unpad-return-type OR -xr"
Remove all space padding after the Objective-C return type.
.IP "--pad-param-type OR -xS"
Insert space padding after the Objective-C param type.
.IP "--unpad-param-type OR -xs"
Remove all space padding after the Objective-C param type.
.IP "--align-method-colon OR -xM"
Align the colons in an Objective-C method definition.
.IP "--pad-method-colon=none OR -xP"
.IP "--pad-method-colon=all OR -xP1"
.IP "--pad-method-colon=after OR -xP2"
.IP "--pad-method-colon=before OR -xP3"
Add or remove space padding before or after the colons in an
Objective-C method call.
.SH Other Options
.IP "--suffix=####"
Append the suffix #### instead of '.orig' to original filename.
.IP "--suffix=none OR -n"
Do not retain a backup of the original file.
.IP "--recursive OR -r OR -R"
Process subdirectories recursively.
.IP "--dry-run"
Perform a trial run with no changes made to check for formatting.
.IP "--exclude=####"
Specify a file or directory #### to be excluded from processing.
.IP "--ignore-exclude-errors OR -i"
Allow processing to continue if there are errors in the exclude=####
options. It will display the unmatched excludes.
.IP "--ignore-exclude-errors-x OR -xi"
Allow processing to continue if there are errors in the exclude=####
options. It will NOT display the unmatched excludes.
.IP "--errors-to-stdout OR -X"
Print errors and help information to standard-output rather than
to standard-error.
.IP "--preserve-date OR -Z"
Preserve the original file's date and time modified. The time
modified will be changed a few micro seconds to force a compile.
.IP "--verbose OR -v"
Verbose mode. Extra informational messages will be displayed.
.IP "--formatted OR -Q"
Formatted display mode. Display only the files that have been
formatted.
.IP "--quiet OR -q"
Quiet mode. Suppress all output except error messages.
.IP "--lineend=windows OR -z1"
.IP "--lineend=linux OR -z2"
.IP "--lineend=macold OR -z3"
Force use of the specified line end style. Valid options
are windows (CRLF), linux (LF), and macold (CR).
.SH Command Line Only
.IP "--options=####"
.IP "--options=none"
Specify a default option file #### to read and use.
It must contain a file path and a file name.
'none' disables the default option file.
.IP "--project"
.IP "--project=####"
.IP "--project=none"
Specify a project option file #### to read and use.
It must contain a file name only, without a directory path.
The file should be included in the project top-level directory.
The default file name is .astylerc or _astylerc.
'none' disables the project or environment variable file.
.IP "--ascii OR -I"
The displayed output will be ascii characters only.
.IP "--version OR -V"
Print version number.
.IP "--help OR -h OR -?"
Print this help message.
.IP "--html OR -!"
Open the HTML help file "astyle.html" in the default browser.
The documentation must be installed in the standard install path.
.IP "--html=####"
Open a HTML help file in the default browser using the file path
####. The path may include a directory path and a file name, or a
file name only. Paths containing spaces must be enclosed in quotes.
.IP "--stdin=####"
Use the file path #### as input to single file formatting.
This is a replacement for redirection.
.IP "--stdout=####"
Use the file path #### as output from single file formatting.
This is a replacement for redirection.
.SH Option Files
Artistic Style looks for a default option file and/or a project
option file in the following order:
.PP
1. The command line options have precedence.
.PP
2. The project option file has precedence over the default file
o the file name indicated by the --project= command line option.
o the file named .astylerc or _ astylerc.
o the file name identified by ARTISTIC_STYLE_PROJECT_OPTIONS.
o the file is disabled by --project=none on the command line.
.PP
3. The default option file that can be used for all projects.
o the file path indicated by the --options= command line option.
o the file path indicated by ARTISTIC_STYLE_OPTIONS.
o the file named .astylerc in the HOME directory (for Linux).
o the file name astylerc in the APPDATA directory (for Windows).
o the file is disabled by --project=none on the command line.
.PP
Long options within the option files may be written without '--'.
.PP
Line-end comments begin with a '#'.
.SH Disable Formatting
Blocks of code can be disabled with the comment tags *INDENT-OFF*
and *INDENT-ON*. It must be contained in a one-line comment.
.PP
Padding of operators can be disabled on a single line using the
comment tag *NOPAD*. It must be contained in a line-end comment.
.SH Examples
File conversions:
.PP
astyle --style=allman /home/project/foo.cpp
.PP
astyle --style=allman --recursive /home/project/*.cpp,*.h
.PP
astyle --style=allman < OriginalSourceFile > BeautifiedSourceFile
.SH AUTHORS
Andre Simon <as@andre-simon.de>
.SH SEE ALSO
More information at https://sourceforge.net/p/astyle/.
-113
View File
@@ -1,113 +0,0 @@
_astyle() {
local IFS=$' \t\n'
local args cur prev cmd opts arg
args=("${COMP_WORDS[@]}")
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
opts="--style --indent --attach-namespaces --attach-classes --attach-inlines --attach-extern-c --attach-closing-while --indent-classes --indent-modifiers --indent-switches --indent-cases --indent-namespaces --indent-after-parens --indent-continuation --indent-labels --indent-preproc-block --indent-preproc-cond --indent-preproc-define --indent-col1-comments --min-conditional-indent --max-continuation-indent --break-blocks --pad-oper --pad-comma --pad-negation --pad-include --pad-paren --pad-paren-out --pad-first-paren-out --pad-paren-in --pad-header --unpad-paren --pad-brackets --pad-brackets-in --pad-brackets-out --unpad-brackets --delete-empty-lines --fill-empty-lines --align-pointer --align-reference --break-closing-braces --break-elseifs --break-one-line-headers --add-braces --add-one-line-braces --remove-braces --remove-braces=one-line --break-return-type --break-return-type-decl --attach-return-type --attach-return-type-decl --keep-one-line-blocks --keep-one-line-statements --convert-tabs --close-templates --remove-comment-prefix --max-code-length --max-code-length-mode --break-after-logical --mode --line-between-members --pad-method-prefix --unpad-method-prefix --pad-return-type --unpad-return-type --pad-param-type --unpad-param-type --align-method-colon --pad-method-colon --suffix --recursive --dry-run --error-on-changes --exclude --ignore-exclude-errors --ignore-exclude-errors-x --errors-to-stdout --preserve-date --verbose --formatted --quiet --lineend --options --project --ascii --version --help --html --stdin --stdout --squeeze-lines --squeeze-ws --preserve-ws --indent-lambda --accept-empty-list"
case "$prev" in
--style)
COMPREPLY=($(compgen -W "allman java kr stroustrup whitesmith vtk ratliff gnu linux horstmann 1tbs google mozilla webkit pico lisp none" -- "$cur"))
return 0
;;
--indent)
COMPREPLY=($(compgen -W "spaces tab force-tab force-tab-x none" -- "$cur"))
return 0
;;
--indent-continuation)
COMPREPLY=($(compgen -W "0 1 2 3 4" -- "$cur"))
return 0
;;
--min-conditional-indent)
COMPREPLY=($(compgen -W "0 1 2 3" -- "$cur"))
return 0
;;
--max-continuation-indent)
COMPREPLY=($(compgen -f -- "$cur"))
return 0
;;
--break-blocks)
COMPREPLY=($(compgen -W "all" -- "$cur"))
return 0
;;
--break-elseifs)
COMPREPLY=($(compgen -W "no-indent" -- "$cur"))
return 0
;;
--pad-negation)
COMPREPLY=($(compgen -W "before" -- "$cur"))
return 0
;;
--pad-include)
COMPREPLY=($(compgen -W "none" -- "$cur"))
return 0
;;
--align-pointer)
COMPREPLY=($(compgen -W "type middle name" -- "$cur"))
return 0
;;
--align-reference)
COMPREPLY=($(compgen -W "none type middle name" -- "$cur"))
return 0
;;
--max-code-length)
COMPREPLY=($(compgen -f -- "$cur"))
return 0
;;
--max-code-length-mode)
COMPREPLY=($(compgen -W "code total ignore-side-comments" -- "$cur"))
return 0
;;
--mode)
COMPREPLY=($(compgen -W "c java cs objc js gsc ghc" -- "$cur"))
return 0
;;
--line-between-members)
COMPREPLY=($(compgen -W "all" -- "$cur"))
return 0
;;
--pad-method-colon)
COMPREPLY=($(compgen -W "none all after before" -- "$cur"))
return 0
;;
--suffix)
COMPREPLY=($(compgen -f -- "$cur"))
return 0
;;
--exclude)
COMPREPLY=($(compgen -f -- "$cur"))
return 0
;;
--lineend)
COMPREPLY=($(compgen -W "windows linux macold" -- "$cur"))
return 0
;;
--options)
COMPREPLY=($(compgen -f -- "$cur"))
return 0
;;
--project)
COMPREPLY=($(compgen -f -- "$cur"))
return 0
;;
--stdin)
COMPREPLY=($(compgen -f -- "$cur"))
return 0
;;
--stdout)
COMPREPLY=($(compgen -f -- "$cur"))
return 0
;;
--squeeze-lines)
COMPREPLY=($(compgen -f -- "$cur"))
return 0
;;
esac
if [[ "$cur" = -* ]]; then
COMPREPLY=($(compgen -W "$opts" -- "$cur"))
fi
}
complete -F _astyle -o bashdefault -o default astyle
-95
View File
@@ -1,95 +0,0 @@
complete -c astyle -l style -xa 'allman java kr stroustrup whitesmith vtk ratliff gnu linux horstmann 1tbs google mozilla webkit pico lisp none' -d 'Set a formatting and indenting style'
complete -c astyle -l indent -xa 'spaces tab force-tab force-tab-x none' -d 'Set indentation option'
complete -c astyle -l attach-namespaces -d 'Attach braces to a namespace statement'
complete -c astyle -l attach-classes -d 'Attach braces to a class statement'
complete -c astyle -l attach-inlines -d 'Attach braces to class inline function definitions'
complete -c astyle -l attach-extern-c -d 'Attach braces to an extern C statement'
complete -c astyle -l attach-closing-while -d 'Attach closing while of do-while to the closing brace'
complete -c astyle -l indent-classes -d 'Indent \'class\' blocks so that the entire block is indented'
complete -c astyle -l indent-modifiers -d 'Indent \'class\' access modifiers, \'public:\', \'protected:\' or \'private:\', one half indent'
complete -c astyle -l indent-switches -d 'Indent \'switch\' blocks, so that the inner \'case XXX:\' headers are indented in relation to the switch block'
complete -c astyle -l indent-cases -d 'Indent case blocks from the \'case XXX:\' headers'
complete -c astyle -l indent-namespaces -d 'Indent the contents of namespace blocks'
complete -c astyle -l indent-after-parens -d 'Indent, instead of align, continuation lines following lines that contain an opening paren \'(\' or an assignment \'=\''
complete -c astyle -l indent-continuation -xa '0 1 2 3 4' -d 'Indent continuation lines an additional indents'
complete -c astyle -l indent-labels -d 'Indent labels so that they appear one indent less than the current indentation level, rather than being flushed completely to the left'
complete -c astyle -l indent-preproc-block -d 'Indent preprocessor blocks at brace level 0'
complete -c astyle -l indent-preproc-cond -d 'Indent preprocessor conditional statements #if/#else/#endif to the same level as the source code'
complete -c astyle -l indent-preproc-define -d 'Indent multi-line preprocessor #define statements'
complete -c astyle -l indent-col1-comments -d 'Indent line comments that start in column one'
complete -c astyle -l min-conditional-indent -xa '0 1 2 3' -d 'Indent a minimal # spaces in a continuous conditional belonging to a conditional header'
complete -c astyle -l max-continuation-indent -r -d 'Indent a maximal # spaces in a continuation line, relative to the previous line'
complete -c astyle -l break-blocks -xa 'all' -d 'Insert empty lines around unrelated blocks, labels, classes, ..'
complete -c astyle -l pad-oper -d 'Insert space padding around operators'
complete -c astyle -l pad-comma -d 'Insert space padding after commas'
complete -c astyle -l pad-negation -xa 'before' -d 'Insert space padding after negations'
complete -c astyle -l pad-include -xa 'none' -d 'Insert space padding after include directives'
complete -c astyle -l pad-paren -d 'Insert space padding around parenthesis on both the outside and the inside'
complete -c astyle -l pad-paren-out -d 'Insert space padding around parenthesis on the outside only'
complete -c astyle -l pad-first-paren-out -d 'Insert space padding around first parenthesis in a series on the outside only'
complete -c astyle -l pad-paren-in -d 'Insert space padding around parenthesis on the inside only'
complete -c astyle -l pad-header -d 'Insert space padding after paren headers (e.g'
complete -c astyle -l unpad-paren -d 'Remove unnecessary space padding around parenthesis'
complete -c astyle -l pad-brackets -d 'Insert space padding around square brackets on both the outside and the inside'
complete -c astyle -l pad-brackets-in -d 'Insert space padding around square brackets on the inside only'
complete -c astyle -l pad-brackets-out -d 'Insert space padding around square brackets on the outside only'
complete -c astyle -l unpad-brackets -d 'Remove unnecessary space padding around square brackets (experimental)'
complete -c astyle -l delete-empty-lines -d 'Delete empty lines within a function or method'
complete -c astyle -l fill-empty-lines -d 'Fill empty lines with the white space of their previous lines'
complete -c astyle -l align-pointer -xa 'type middle name' -d 'Attach a pointer or reference operator (*, &, or ^) to either the operator type (left), middle, or operator name (right)'
complete -c astyle -l align-reference -xa 'none type middle name' -d 'Attach a reference operator (&) to either the operator type (left), middle, or operator name (right)'
complete -c astyle -l break-closing-braces -d 'Break braces before closing headers (e.g'
complete -c astyle -l break-elseifs -xa 'no-indent' -d 'Break \'else if()\' statements into two different lines'
complete -c astyle -l break-one-line-headers -d 'Break one line headers (e.g'
complete -c astyle -l line-between-members -xa 'all' -d 'Insert an empty line between class/struct method definitions and between top-level functions'
complete -c astyle -l add-braces -d 'Add braces to unbraced one line conditional statements'
complete -c astyle -l add-one-line-braces -d 'Add one line braces to unbraced one line conditional statements'
complete -c astyle -l remove-braces -xa 'one-line' -d 'Remove braces from braced conditional statements (=one-line: one-line blocks only, experimental)'
complete -c astyle -l break-return-type -d 'Break the return type from the function name definitions'
complete -c astyle -l break-return-type-decl -d 'Break the return type from the function name declarations'
complete -c astyle -l attach-return-type -d 'Attach the return type to the function name definitions'
complete -c astyle -l attach-return-type-decl -d 'Attach the return type to the function name declarations'
complete -c astyle -l keep-one-line-blocks -d 'Don\'t break blocks residing completely on one line'
complete -c astyle -l keep-one-line-statements -d 'Don\'t break lines containing multiple statements into multiple single-statement lines'
complete -c astyle -l convert-tabs -d 'Convert tabs to the appropriate number of spaces'
complete -c astyle -l close-templates -d 'Close ending angle brackets on template definitions'
complete -c astyle -l remove-comment-prefix -d 'Remove the leading \'*\' prefix on multi-line comments and indent the comment text one indent'
complete -c astyle -l max-code-length -r -d 'Break the line if it exceeds more than # characters'
complete -c astyle -l max-code-length-mode -xa 'code total ignore-side-comments' -d 'Determines how line length is measured'
complete -c astyle -l break-after-logical -d 'After break line using --max-code-length, place logical conditional last on the previous line'
complete -c astyle -l mode -xa 'c java cs objc js gsc ghc' -d 'Set input syntax mode'
complete -c astyle -l pad-method-prefix -d 'Insert space padding after the \'-\' or \'+\' Objective-C method prefix'
complete -c astyle -l unpad-method-prefix -d 'Remove all space padding after the \'-\' or \'+\' Objective-C method prefix'
complete -c astyle -l pad-return-type -d 'Insert space padding after the Objective-C return type'
complete -c astyle -l unpad-return-type -d 'Remove all space padding after the Objective-C return type'
complete -c astyle -l pad-param-type -d 'Insert space padding after the Objective-C param type'
complete -c astyle -l unpad-param-type -d 'Remove all space padding after the Objective-C param type'
complete -c astyle -l align-method-colon -d 'Align the colons in an Objective-C method definition'
complete -c astyle -l pad-method-colon -xa 'none all after before' -d 'Add or remove space padding before or after the colons in an Objective-C method call'
complete -c astyle -l suffix -r -d 'Append the suffix #### instead of \'.orig\' to original filename or do not retain a backup of the original file if set to none'
complete -c astyle -l recursive -d 'Process subdirectories recursively'
complete -c astyle -l dry-run -d 'Perform a trial run with no changes made to check for formatting'
complete -c astyle -l error-on-changes -d 'With --dry-run: Report any file reformat as error'
complete -c astyle -l exclude -r -d 'Specify a file or directory #### to be excluded from processing'
complete -c astyle -l ignore-exclude-errors -d 'Allow processing to continue if there are errors in the --exclude options'
complete -c astyle -l ignore-exclude-errors-x -d 'Allow processing to continue if there are errors in the --exclude options'
complete -c astyle -l errors-to-stdout -d 'Print errors and help information to standard-output rather than to standard-error'
complete -c astyle -l preserve-date -d 'Preserve the original file\'s date and time modified'
complete -c astyle -l verbose -d 'Extra informational messages will be displayed'
complete -c astyle -l formatted -d 'Display only the files that have been formatted'
complete -c astyle -l quiet -d 'Suppress all output except error messages'
complete -c astyle -l lineend -xa 'windows linux macold' -d 'Force use of the specified line end style'
complete -c astyle -l options -r -d 'Specify a default option file to read and use'
complete -c astyle -l project -r -d 'Specify a project option file to read and use'
complete -c astyle -l ascii -d 'The displayed output will be ASCII characters only'
complete -c astyle -l version -d 'Print version number'
complete -c astyle -l help -d 'Print help message'
complete -c astyle -l html -d 'Open the HTML help file astyle.html in the default browser'
complete -c astyle -l stdin -r -d 'Use the file path as input to single file formatting'
complete -c astyle -l stdout -r -d 'Use the file path as output from single file formatting'
complete -c astyle -l squeeze-lines -r -d 'Remove superfluous empty lines exceeding the given number'
complete -c astyle -l squeeze-ws -d 'Remove superfluous whitespace'
complete -c astyle -l preserve-ws -d 'Preserve whitespace near comma operators if squeeze-ws is not set'
complete -c astyle -l indent-lambda -d 'Indent C++ lambda functions (experimental, broken for complex fct bodies)'
complete -c astyle -l accept-empty-list -d 'With wildcard or -R: Do not report an empty input file list as error'
-109
View File
@@ -1,109 +0,0 @@
#compdef astyle
_astyle() {
local -a options=(
"--style[Set a formatting and indenting style]: :(allman java kr stroustrup whitesmith vtk ratliff gnu linux horstmann 1tbs google mozilla webkit pico lisp none)"
"--indent[Set indentation option]: :(spaces tab force-tab force-tab-x none)"
"--attach-namespaces[Attach braces to a namespace statement]"
"--attach-classes[Attach braces to a class statement]"
"--attach-inlines[Attach braces to class inline function definitions]"
"--attach-extern-c[Attach braces to an extern C statement]"
"--attach-closing-while[Attach closing while of do-while to the closing brace]"
"--indent-classes[Indent 'class' blocks so that the entire block is indented]"
"--indent-modifiers[Indent 'class' access modifiers, 'public\:', 'protected\:' or 'private\:', one half indent]"
"--indent-switches[Indent 'switch' blocks, so that the inner 'case XXX\:' headers are indented in relation to the switch block]"
"--indent-cases[Indent case blocks from the 'case XXX\:' headers]"
"--indent-namespaces[Indent the contents of namespace blocks]"
"--indent-after-parens[Indent, instead of align, continuation lines following lines that contain an opening paren '(' or an assignment '=']"
"--indent-continuation[Indent continuation lines an additional indents]: :(0 1 2 3 4)"
"--indent-labels[Indent labels so that they appear one indent less than the current indentation level, rather than being flushed completely to the left]"
"--indent-preproc-block[Indent preprocessor blocks at brace level 0]"
"--indent-preproc-cond[Indent preprocessor conditional statements #if/#else/#endif to the same level as the source code]"
"--indent-preproc-define[Indent multi-line preprocessor #define statements]"
"--indent-col1-comments[Indent line comments that start in column one]"
"--min-conditional-indent[Indent a minimal # spaces in a continuous conditional belonging to a conditional header]: :(0 1 2 3)"
"--max-continuation-indent[Indent a maximal # spaces in a continuation line, relative to the previous line]: :_files"
"--break-blocks[Insert empty lines around unrelated blocks, labels, classes, ..]: :(all)"
"--pad-oper[Insert space padding around operators]"
"--pad-comma[Insert space padding after commas]"
"--pad-negation[Insert space padding after negations]: :(before)"
"--pad-include[Insert space padding after include directives]: :(none)"
"--pad-paren[Insert space padding around parenthesis on both the outside and the inside]"
"--pad-paren-out[Insert space padding around parenthesis on the outside only]"
"--pad-first-paren-out[Insert space padding around first parenthesis in a series on the outside only]"
"--pad-paren-in[Insert space padding around parenthesis on the inside only]"
"--pad-header[Insert space padding after paren headers (e.g]"
"--unpad-paren[Remove unnecessary space padding around parenthesis]"
"--pad-brackets[Insert space padding around square brackets on both the outside and the inside]"
"--pad-brackets-in[Insert space padding around square brackets on the inside only]"
"--pad-brackets-out[Insert space padding around square brackets on the outside only]"
"--unpad-brackets[Remove unnecessary space padding around square brackets (experimental)]"
"--delete-empty-lines[Delete empty lines within a function or method]"
"--fill-empty-lines[Fill empty lines with the white space of their previous lines]"
"--align-pointer[Attach a pointer or reference operator (*, &, or ^) to either the operator type (left), middle, or operator name (right)]: :(type middle name)"
"--align-reference[Attach a reference operator (&) to either the operator type (left), middle, or operator name (right)]: :(none type middle name)"
"--break-closing-braces[Break braces before closing headers (e.g]"
"--break-elseifs[Break 'else if()' statements into two different lines]: :(no-indent)"
"--break-one-line-headers[Break one line headers (e.g]"
"--line-between-members[Insert an empty line between class/struct method definitions and between top-level functions]: :(all)"
"--add-braces[Add braces to unbraced one line conditional statements]"
"--add-one-line-braces[Add one line braces to unbraced one line conditional statements]"
"--remove-braces[Remove braces from braced conditional statements]"
"--remove-braces=one-line[Remove braces from one-line conditional statements only (experimental)]"
"--break-return-type[Break the return type from the function name definitions]"
"--break-return-type-decl[Break the return type from the function name declarations]"
"--attach-return-type[Attach the return type to the function name definitions]"
"--attach-return-type-decl[Attach the return type to the function name declarations]"
"--keep-one-line-blocks[Don't break blocks residing completely on one line]"
"--keep-one-line-statements[Don't break lines containing multiple statements into multiple single-statement lines]"
"--convert-tabs[Convert tabs to the appropriate number of spaces]"
"--close-templates[Close ending angle brackets on template definitions]"
"--remove-comment-prefix[Remove the leading '*' prefix on multi-line comments and indent the comment text one indent]"
"--max-code-length[Break the line if it exceeds more than # characters]: :_files"
"--max-code-length-mode[Determines how line length is measured]: :(code total ignore-side-comments)"
"--break-after-logical[After break line using --max-code-length, place logical conditional last on the previous line]"
"--mode[Set input syntax mode]: :(c java cs objc js gsc ghc)"
"--pad-method-prefix[Insert space padding after the '-' or '+' Objective-C method prefix]"
"--unpad-method-prefix[Remove all space padding after the '-' or '+' Objective-C method prefix]"
"--pad-return-type[Insert space padding after the Objective-C return type]"
"--unpad-return-type[Remove all space padding after the Objective-C return type]"
"--pad-param-type[Insert space padding after the Objective-C param type]"
"--unpad-param-type[Remove all space padding after the Objective-C param type]"
"--align-method-colon[Align the colons in an Objective-C method definition]"
"--pad-method-colon[Add or remove space padding before or after the colons in an Objective-C method call]: :(none all after before)"
"--suffix[Append the suffix #### instead of '.orig' to original filename or do not retain a backup of the original file if set to none]: :_files"
"--recursive[Process subdirectories recursively]"
"--dry-run[Perform a trial run with no changes made to check for formatting]"
"--error-on-changes[With --dry-run: Report any file reformat as error]"
"--exclude[Specify a file or directory #### to be excluded from processing]: :_files"
"--ignore-exclude-errors[Allow processing to continue if there are errors in the --exclude options]"
"--ignore-exclude-errors-x[Allow processing to continue if there are errors in the --exclude options]"
"--errors-to-stdout[Print errors and help information to standard-output rather than to standard-error]"
"--preserve-date[Preserve the original file's date and time modified]"
"--verbose[Extra informational messages will be displayed]"
"--formatted[Display only the files that have been formatted]"
"--quiet[Suppress all output except error messages]"
"--lineend[Force use of the specified line end style]: :(windows linux macold)"
"--options[Specify a default option file to read and use]: :_files"
"--project[Specify a project option file to read and use]: :_files"
"--ascii[The displayed output will be ASCII characters only]"
"--version[Print version number]"
"--help[Print help message]"
"--html[Open the HTML help file astyle.html in the default browser]"
"--stdin[Use the file path as input to single file formatting]: :_files"
"--stdout[Use the file path as output from single file formatting]: :_files"
"--squeeze-lines[Remove superfluous empty lines exceeding the given number]: :_files"
"--squeeze-ws[Remove superfluous whitespace]"
"--preserve-ws[Preserve whitespace near comma operators if squeeze-ws is not set]"
"--indent-lambda[Indent C++ lambda functions (experimental, broken for complex fct bodies)]"
"--accept-empty-list[With wildcard or -R\: Do not report an empty input file list as error]"
)
_arguments -s -S \
$options \
"*: :_files" \
&& return 0
return 1
}
_astyle
-330
View File
@@ -1,330 +0,0 @@
#!/usr/bin/env lua
-- Based on the generator script written by Paul Ouellette for highlight:
-- https://gitlab.com/saalen/highlight/-/merge_requests/137
local argparse = require "argparse"
local parser = argparse "astyle"
:add_help(false)
parser:argument "file"
:args "*"
parser:option "--style"
:description "Set a formatting and indenting style"
:choices {"allman", "java", "kr", "stroustrup", "whitesmith", "vtk", "ratliff", "gnu", "linux", "horstmann", "1tbs", "google", "mozilla", "webkit", "pico", "lisp"}
parser:option "--indent"
:description "Set indentation option"
:choices {"spaces", "tab", "force-tab", "force-tab-x"}
parser:flag "--attach-namespaces"
:description "Attach braces to a namespace statement"
parser:flag "--attach-classes"
:description "Attach braces to a class statement"
parser:flag "--attach-inlines"
:description "Attach braces to class inline function definitions"
parser:flag "--attach-extern-c"
:description "Attach braces to an extern C statement"
parser:flag "--attach-closing-while"
:description "Attach closing while of do-while to the closing brace"
parser:flag "--indent-classes"
:description "Indent 'class' blocks so that the entire block is indented"
parser:flag "--indent-modifiers"
:description "Indent 'class' access modifiers, 'public:', 'protected:' or 'private:', one half indent."
parser:flag "--indent-switches"
:description "Indent 'switch' blocks, so that the inner 'case XXX:' headers are indented in relation to the switch block"
parser:flag "--indent-cases"
:description "Indent case blocks from the 'case XXX:' headers"
parser:flag "--indent-namespaces"
:description "Indent the contents of namespace blocks"
parser:flag "--indent-after-parens"
:description "Indent, instead of align, continuation lines following lines that contain an opening paren '(' or an assignment '='"
parser:option "--indent-continuation"
:description "Indent continuation lines an additional indents"
:choices {"0", "1", "2", "3", "4"}
parser:flag "--indent-labels"
:description "Indent labels so that they appear one indent less than the current indentation level, rather than being flushed completely to the left"
parser:flag "--indent-preproc-block"
:description "Indent preprocessor blocks at brace level 0. Without this option the preprocessor block is not indented"
parser:flag "--indent-preproc-cond"
:description "Indent preprocessor conditional statements #if/#else/#endif to the same level as the source code"
parser:flag "--indent-preproc-define"
:description "Indent multi-line preprocessor #define statements"
parser:flag "--indent-col1-comments"
:description "Indent line comments that start in column one"
parser:option "--min-conditional-indent"
:description "Indent a minimal # spaces in a continuous conditional belonging to a conditional header"
:choices {"0", "1", "2", "3"}
parser:option "--max-continuation-indent"
:description "Indent a maximal # spaces in a continuation line, relative to the previous line"
parser:option "--break-blocks"
:description "Insert empty lines around unrelated blocks, labels, classes, ..."
:args "?"
:choices {"all"}
parser:flag "--pad-oper"
:description "Insert space padding around operators"
parser:flag "--pad-comma"
:description "Insert space padding after commas"
parser:option "--pad-negation"
:description "Insert space padding after negations"
:args "?"
:choices {"before"}
parser:option "--pad-include"
:description "Insert space padding after include directives"
:args "?"
:choices {"none"}
parser:flag "--pad-paren"
:description "Insert space padding around parenthesis on both the outside and the inside"
parser:flag "--pad-paren-out"
:description "Insert space padding around parenthesis on the outside only"
parser:flag "--pad-first-paren-out"
:description "Insert space padding around first parenthesis in a series on the outside only"
parser:flag "--pad-paren-in"
:description "Insert space padding around parenthesis on the inside only"
parser:flag "--pad-header"
:description "Insert space padding after paren headers (e.g. 'if', 'for'...)"
parser:flag "--unpad-paren"
:description "Remove unnecessary space padding around parenthesis"
parser:flag "--pad-brackets"
:description "Insert space padding around square brackets on both the outside and the inside."
parser:flag "--pad-brackets-in"
:description "Insert space padding around square brackets on the inside only."
parser:flag "--pad-brackets-out"
:description "Insert space padding around square brackets on the outside only."
parser:flag "--unpad-brackets"
:description "Remove unnecessary space padding around square brackets (experimental)."
parser:flag "--delete-empty-lines"
:description "Delete empty lines within a function or method"
parser:flag "--fill-empty-lines"
:description "Fill empty lines with the white space of their previous lines"
parser:option "--align-pointer"
:description "Attach a pointer or reference operator (*, &, or ^) to either the operator type (left), middle, or operator name (right)"
:choices {"type", "middle", "name"}
parser:option "--align-reference"
:description "Attach a reference operator (&) to either the operator type (left), middle, or operator name (right). If not set, follow pointer alignment"
:choices {"none", "type", "middle", "name"}
parser:flag "--break-closing-braces"
:description "Break braces before closing headers (e.g. 'else', 'catch', ...)"
parser:option "--break-elseifs"
:description "Break 'else if()' statements into two different lines"
:args "?"
:choices {"no-indent"}
parser:flag "--break-one-line-headers"
:description "Break one line headers (e.g. 'if', 'while', 'else', ...) from a statement residing on the same line"
parser:option "--line-between-members"
:description "Insert an empty line between class/struct method definitions and between top-level functions."
:args "?"
:choices {"all"}
parser:flag "--add-braces"
:description "Add braces to unbraced one line conditional statements"
parser:flag "--add-one-line-braces"
:description "Add one line braces to unbraced one line conditional statements"
parser:flag "--remove-braces"
:description "Remove braces from a braced one line conditional statements"
parser:flag "--break-return-type"
:description "Break the return type from the function name definitions"
parser:flag "--break-return-type-decl"
:description "Break the return type from the function name declarations"
parser:flag "--attach-return-type"
:description "Attach the return type to the function name definitions"
parser:flag "--attach-return-type-decl"
:description "Attach the return type to the function name declarations"
parser:flag "--keep-one-line-blocks"
:description "Don't break blocks residing completely on one line"
parser:flag "--keep-one-line-statements"
:description "Don't break lines containing multiple statements into multiple single-statement lines"
parser:flag "--convert-tabs"
:description "Convert tabs to the appropriate number of spaces"
parser:flag "--close-templates"
:description "Close ending angle brackets on template definitions"
parser:flag "--remove-comment-prefix"
:description "Remove the leading '*' prefix on multi-line comments and indent the comment text one indent"
parser:option "--max-code-length"
:description "Break the line if it exceeds more than # characters"
parser:option "--max-code-length-mode"
:description "Determines how line length is measured"
:choices {"code", "total", "ignore-side-comments"}
parser:flag "--break-after-logical"
:description "After break line using --max-code-length, place logical conditional last on the previous line"
parser:option "--mode"
:description "Set input syntax mode"
:choices {"c", "java", "cs", "objc", "js", "gsc", "ghc"}
parser:flag "--pad-method-prefix"
:description "Insert space padding after the '-' or '+' Objective-C method prefix"
parser:flag "--unpad-method-prefix"
:description "Remove all space padding after the '-' or '+' Objective-C method prefix"
parser:flag "--pad-return-type"
:description "Insert space padding after the Objective-C return type"
parser:flag "--unpad-return-type"
:description "Remove all space padding after the Objective-C return type"
parser:flag "--pad-param-type"
:description "Insert space padding after the Objective-C param type"
parser:flag "--unpad-param-type"
:description "Remove all space padding after the Objective-C param type"
parser:flag "--align-method-colon"
:description "Align the colons in an Objective-C method definition."
parser:option "--pad-method-colon"
:description "Add or remove space padding before or after the colons in an Objective-C method call"
:choices {"none", "all", "after", "before"}
parser:option "--suffix"
:description "Append the suffix #### instead of '.orig' to original filename or do not retain a backup of the original file if set to none"
parser:flag "--recursive"
:description "Process subdirectories recursively"
parser:flag "--dry-run"
:description "Perform a trial run with no changes made to check for formatting"
parser:flag "--error-on-changes"
:description "With --dry-run: Report any file reformat as error"
parser:option "--exclude"
:description "Specify a file or directory #### to be excluded from processing"
parser:flag "--ignore-exclude-errors"
:description "Allow processing to continue if there are errors in the --exclude options. It will display the unmatched excludes"
parser:flag "--ignore-exclude-errors-x"
:description "Allow processing to continue if there are errors in the --exclude options. It will NOT display the unmatched excludes"
parser:flag "--errors-to-stdout"
:description "Print errors and help information to standard-output rather than to standard-error"
parser:flag "--preserve-date"
:description "Preserve the original file's date and time modified"
parser:flag "--verbose"
:description "Extra informational messages will be displayed"
parser:flag "--formatted"
:description "Display only the files that have been formatted"
parser:flag "--quiet"
:description "Suppress all output except error messages"
parser:option "--lineend"
:description "Force use of the specified line end style"
:choices {"windows", "linux", "macold"}
parser:option "--options"
:description "Specify a default option file to read and use."
parser:option "--project"
:description "Specify a project option file to read and use"
:args "?"
parser:flag "--ascii"
:description "The displayed output will be ASCII characters only"
parser:flag "--version"
:description "Print version number"
parser:flag "--help"
:description "Print help message"
parser:option "--html"
:description "Open the HTML help file astyle.html in the default browser"
:args "?"
parser:option "--stdin"
:description "Use the file path as input to single file formatting"
parser:option "--stdout"
:description "Use the file path as output from single file formatting"
parser:option "--squeeze-lines"
:description "Remove superfluous empty lines exceeding the given number"
parser:flag "--squeeze-ws"
:description "Remove superfluous whitespace"
parser:flag "--preserve-ws"
:description "Preserve whitespace near comma operators if squeeze-ws is not set"
parser:flag "--indent-lambda"
:description "Indent C++ lambda functions (experimental, broken for complex fct bodies)"
parser:flag "--accept-empty-list"
:description "With wildcard or -R: Do not report an empty input file list as error"
local p = argparse "gen-completions"
p:argument "shell"
:choices {"bash", "zsh", "fish"}
local shell = p:parse().shell
if shell == "bash" then
io.write(parser:get_bash_complete())
elseif shell == "zsh" then
io.write(parser:get_zsh_complete())
else
io.write(parser:get_fish_complete())
end
File diff suppressed because it is too large. Load diff
-779
View File
@@ -1,779 +0,0 @@
// ASEnhancer.cpp
// Copyright (c) 2026 The Artistic Style Authors.
// This code is licensed under the MIT License.
// License.md describes the conditions under which this software may be distributed.
//-----------------------------------------------------------------------------
// headers
//-----------------------------------------------------------------------------
#include "astyle.h"
//-----------------------------------------------------------------------------
// astyle namespace
//-----------------------------------------------------------------------------
namespace astyle {
//
//-----------------------------------------------------------------------------
// ASEnhancer class
//-----------------------------------------------------------------------------
/**
* initialize the ASEnhancer.
*
* init() is called each time an ASFormatter object is initialized.
*/
void ASEnhancer::init(int _fileType,
int _indentLength,
int _tabLength,
bool _useTabs,
bool _forceTab,
bool _namespaceIndent,
bool _caseIndent,
bool _preprocBlockIndent,
bool _preprocDefineIndent,
bool _emptyLineFill,
std::vector<const std::pair<const std::string, const std::string>* >* _indentableMacros,
bool _preserveIndent)
{
// formatting variables from ASFormatter and ASBeautifier
ASBase::init(_fileType);
indentLength = _indentLength;
tabLength = _tabLength;
useTabs = _useTabs;
forceTab = _forceTab;
namespaceIndent = _namespaceIndent;
caseIndent = _caseIndent;
preprocBlockIndent = _preprocBlockIndent;
preprocDefineIndent = _preprocDefineIndent;
emptyLineFill = _emptyLineFill;
indentableMacros = _indentableMacros;
preserveIndent = _preserveIndent;
quoteChar = '\'';
// unindent variables
lineNumber = 0;
braceCount = 0;
isInComment = false;
isInQuote = false;
switchDepth = 0;
eventPreprocDepth = 0;
lookingForCaseBrace = false;
unindentNextLine = false;
shouldUnindentLine = false;
shouldUnindentComment = false;
// switch struct and vector
sw.switchBraceCount = 0;
sw.unindentDepth = 0;
sw.unindentCase = false;
switchStack.clear();
// other variables
nextLineIsEventIndent = false;
isInEventTable = false;
nextLineIsDeclareIndent = false;
isInDeclareSection = false;
}
/**
* additional formatting for line of source code.
* every line of source code in a source code file should be sent
* one after the other to this function.
* indents event tables
* unindents the case blocks
*
* @param line the original formatted line will be updated if necessary.
*/
void ASEnhancer::enhance(std::string& line, bool isInNamespace, bool isInPreprocessor, bool isInSQL)
{
shouldUnindentLine = true;
shouldUnindentComment = false;
lineNumber++;
if (preserveIndent)
return;
// check for beginning of event table
if (nextLineIsEventIndent)
{
isInEventTable = true;
nextLineIsEventIndent = false;
}
// check for beginning of SQL declare section
if (nextLineIsDeclareIndent)
{
isInDeclareSection = true;
nextLineIsDeclareIndent = false;
}
if (line.empty()
&& !isInEventTable
&& !isInDeclareSection
&& !emptyLineFill)
return;
// test for unindent on attached braces
if (unindentNextLine)
{
sw.unindentDepth++;
sw.unindentCase = true;
unindentNextLine = false;
}
// parse characters in the current line
parseCurrentLine(line, isInPreprocessor, isInSQL);
// check for SQL indentable lines
if (isInDeclareSection)
{
size_t firstText = line.find_first_not_of(" \t");
if (firstText == std::string::npos || line[firstText] != '#')
indentLine(line, 1);
}
// check for event table indentable lines
if (isInEventTable
&& (eventPreprocDepth == 0
|| (namespaceIndent && isInNamespace)))
{
size_t firstText = line.find_first_not_of(" \t");
if (firstText == std::string::npos || line[firstText] != '#')
indentLine(line, 1);
}
if (shouldUnindentComment && sw.unindentDepth > 0)
unindentLine(line, sw.unindentDepth - 1);
else if (shouldUnindentLine && sw.unindentDepth > 0)
unindentLine(line, sw.unindentDepth);
}
/**
* convert a force-tab indent to spaces
*
* @param line a reference to the line that will be converted.
*/
void ASEnhancer::convertForceTabIndentToSpaces(std::string& line) const
{
// replace tab indents with spaces
for (size_t i = 0; i < line.length(); i++)
{
if (!std::isblank(line[i]))
break;
if (line[i] == '\t')
{
line.erase(i, 1);
line.insert(i, tabLength, ' ');
i += tabLength - 1;
}
}
}
/**
* convert a space indent to force-tab
*
* @param line a reference to the line that will be converted.
*/
void ASEnhancer::convertSpaceIndentToForceTab(std::string& line) const
{
assert(tabLength > 0);
// replace leading spaces with tab indents
size_t newSpaceIndentLength = line.find_first_not_of(" \t");
size_t tabCount = newSpaceIndentLength / tabLength; // truncate extra spaces
line.replace(0U, tabCount * tabLength, tabCount, '\t');
}
/**
* find the colon following a 'case' statement
*
* @param line a reference to the line.
* @param caseIndex the line index of the case statement.
* @return the line index of the colon.
*/
size_t ASEnhancer::findCaseColon(std::string_view line, size_t caseIndex) const
{
size_t i = caseIndex;
bool isInQuote_ = false;
char quoteChar_ = ' ';
for (; i < line.length(); i++)
{
if (isInQuote_)
{
if (line[i] == '\\')
{
i++;
continue;
}
if (line[i] == quoteChar_) // check ending quote
{
isInQuote_ = false;
quoteChar_ = ' ';
continue;
}
continue; // must close quote before continuing
}
if (line[i] == '"' // check opening quote
|| (line[i] == '\'' && !isDigitSeparator(line, i)))
{
isInQuote_ = true;
quoteChar_ = line[i];
continue;
}
if (line[i] == ':')
{
if ((i + 1 < line.length()) && (line[i + 1] == ':'))
i++; // bypass scope resolution operator
else
break; // found it
}
}
return i;
}
/**
* indent a line by a given number of tabsets
* by inserting leading whitespace to the line argument.
*
* @param line a reference to the line to indent.
* @param indent the number of tabsets to insert.
* @return the number of characters inserted.
*/
int ASEnhancer::indentLine(std::string& line, int indent) const
{
if (line.empty()
&& !emptyLineFill)
return 0;
size_t charsToInsert = 0;
if (forceTab && indentLength != tabLength)
{
// replace tab indents with spaces
convertForceTabIndentToSpaces(line);
// insert the space indents
charsToInsert = indent * indentLength;
line.insert(line.begin(), charsToInsert, ' ');
// replace leading spaces with tab indents
convertSpaceIndentToForceTab(line);
}
else if (useTabs)
{
charsToInsert = indent;
line.insert(line.begin(), charsToInsert, '\t');
}
else // spaces
{
charsToInsert = indent * indentLength;
line.insert(line.begin(), charsToInsert, ' ');
}
return charsToInsert;
}
/**
* check for SQL "BEGIN DECLARE SECTION".
* must compare case insensitive and allow any spacing between words.
*
* @param line a reference to the line to indent.
* @param index the current line index.
* @return true if a hit.
*/
bool ASEnhancer::isBeginDeclareSectionSQL(std::string_view line, size_t index) const
{
size_t hits = 0;
size_t i;
for (i = index; i < line.length(); i++)
{
i = line.find_first_not_of(" \t", i);
if (i == std::string::npos)
return false;
if (line[i] == ';')
break;
if (!isCharPotentialHeader(line, i))
continue;
std::string_view word = getCurrentWord(line, i);
for (char character : word)
character = (char) toupper(character);
if (word == "EXEC" || word == "SQL")
{
i += word.length() - 1;
continue;
}
if (word == "DECLARE" || word == "SECTION")
{
hits++;
i += word.length() - 1;
continue;
}
if (word == "BEGIN")
{
hits++;
i += word.length() - 1;
continue;
}
return false;
}
if (hits == 3)
return true;
return false;
}
/**
* check for SQL "END DECLARE SECTION".
* must compare case insensitive and allow any spacing between words.
*
* @param line a reference to the line to indent.
* @param index the current line index.
* @return true if a hit.
*/
bool ASEnhancer::isEndDeclareSectionSQL(std::string_view line, size_t index) const
{
size_t hits = 0;
size_t i;
for (i = index; i < line.length(); i++)
{
i = line.find_first_not_of(" \t", i);
if (i == std::string::npos)
return false;
if (line[i] == ';')
break;
if (!isCharPotentialHeader(line, i))
continue;
std::string_view word = getCurrentWord(line, i);
for (char character : word)
character = (char) toupper(character);
if (word == "EXEC" || word == "SQL")
{
i += word.length() - 1;
continue;
}
if (word == "DECLARE" || word == "SECTION")
{
hits++;
i += word.length() - 1;
continue;
}
if (word == "END")
{
hits++;
i += word.length() - 1;
continue;
}
return false;
}
if (hits == 3)
return true;
return false;
}
/**
* check if a one-line brace has been reached,
* i.e. if the currently reached '{' character is closed
* with a complimentary '}' elsewhere on the current line,
*.
* @return false = one-line brace has not been reached.
* true = one-line brace has been reached.
*/
bool ASEnhancer::isOneLineBlockReached(std::string_view line, int startChar) const
{
assert(line[startChar] == '{');
bool isInComment_ = false;
bool isInQuote_ = false;
int _braceCount = 1;
int lineLength = line.length();
char quoteChar_ = ' ';
char ch = ' ';
for (int i = startChar + 1; i < lineLength; ++i)
{
ch = line[i];
if (isInComment_)
{
if (line.compare(i, 2, "*/") == 0)
{
isInComment_ = false;
++i;
}
continue;
}
if (ch == '\\')
{
++i;
continue;
}
if (isInQuote_)
{
if (ch == quoteChar_)
isInQuote_ = false;
continue;
}
if (ch == '"'
|| (ch == '\'' && !isDigitSeparator(line, i)))
{
isInQuote_ = true;
quoteChar_ = ch;
continue;
}
if (line.compare(i, 2, "//") == 0)
break;
if (line.compare(i, 2, "/*") == 0)
{
isInComment_ = true;
++i;
continue;
}
if (ch == '{')
++_braceCount;
else if (ch == '}')
--_braceCount;
if (_braceCount == 0)
return true;
}
return false;
}
/**
* parse characters in the current line to determine if an indent
* or unindent is needed.
*/
void ASEnhancer::parseCurrentLine(std::string& line, bool isInPreprocessor, bool isInSQL)
{
bool isSpecialChar = false; // is a backslash escape character
for (size_t i = 0; i < line.length(); i++)
{
char ch = line[i];
// bypass whitespace
if (std::isblank(ch))
continue;
// handle special characters (i.e. backslash+character such as \n, \t, ...)
if (isSpecialChar)
{
isSpecialChar = false;
continue;
}
if (!(isInComment) && line.compare(i, 2, "\\\\") == 0)
{
i++;
continue;
}
if (!(isInComment) && ch == '\\')
{
isSpecialChar = true;
continue;
}
// handle quotes (such as 'x' and "Hello Dolly")
if (!isInComment
&& (ch == '"'
|| (ch == '\'' && !isDigitSeparator(line, i))))
{
if (!isInQuote)
{
quoteChar = ch;
isInQuote = true;
}
else if (quoteChar == ch)
{
isInQuote = false;
continue;
}
}
if (isInQuote)
continue;
// handle comments
if (!(isInComment) && line.compare(i, 2, "//") == 0)
{
// check for windows line markers
if (line.compare(i + 2, 1, "\xf0") > 0)
lineNumber--;
// unindent if not in case braces
if (line.find_first_not_of(" \t") == i
&& sw.switchBraceCount == 1
&& sw.unindentCase)
shouldUnindentComment = true;
break; // finished with the line
}
if (!(isInComment) && line.compare(i, 2, "/*") == 0)
{
// unindent if not in case braces
if (sw.switchBraceCount == 1 && sw.unindentCase)
shouldUnindentComment = true;
isInComment = true;
size_t commentEnd = line.find("*/", i);
if (commentEnd == std::string::npos)
i = line.length() - 1;
else
i = commentEnd - 1;
continue;
}
if ((isInComment) && line.compare(i, 2, "*/") == 0)
{
// unindent if not in case braces
if (sw.switchBraceCount == 1 && sw.unindentCase)
shouldUnindentComment = true;
isInComment = false;
i++;
continue;
}
if (isInComment)
{
// unindent if not in case braces
if (sw.switchBraceCount == 1 && sw.unindentCase)
shouldUnindentComment = true;
size_t commentEnd = line.find("*/", i);
if (commentEnd == std::string::npos)
i = line.length() - 1;
else
i = commentEnd - 1;
continue;
}
// if we have reached this far then we are NOT in a comment or string of special characters
if (line[i] == '{')
braceCount++;
if (line[i] == '}')
braceCount--;
// check for preprocessor within an event table
if (isInEventTable && line[i] == '#' && preprocBlockIndent)
{
std::string preproc;
preproc = line.substr(i + 1);
if (preproc.substr(0, 2) == "if") // #if, #ifdef, #ifndef)
eventPreprocDepth += 1;
if (preproc.substr(0, 5) == "endif" && eventPreprocDepth > 0)
eventPreprocDepth -= 1;
}
bool isPotentialKeyword = isCharPotentialHeader(line, i);
// ---------------- wxWidgets and MFC macros ----------------------------------
if (isPotentialKeyword)
{
for (const auto* indentableMacro : *indentableMacros)
{
// 'first' is the beginning macro
if (findKeyword(line, i, indentableMacro->first))
{
nextLineIsEventIndent = true;
break;
}
// 'second' is the ending macro
if (findKeyword(line, i, indentableMacro->second))
{
isInEventTable = false;
eventPreprocDepth = 0;
break;
}
}
}
// ---------------- process SQL -----------------------------------------------
if (isInSQL)
{
if (isBeginDeclareSectionSQL(line, i))
nextLineIsDeclareIndent = true;
if (isEndDeclareSectionSQL(line, i))
isInDeclareSection = false;
break;
}
// ---------------- process switch statements ---------------------------------
if (isPotentialKeyword && findKeyword(line, i, ASResource::AS_SWITCH))
{
switchDepth++;
switchStack.emplace_back(sw); // save current variables
sw.switchBraceCount = 0;
sw.unindentCase = false; // don't clear case until end of switch
i += 5; // bypass switch statement
continue;
}
// just want unindented case statements from this point
if (caseIndent
|| switchDepth == 0
|| (isInPreprocessor && !preprocDefineIndent))
{
// bypass the entire word
if (isPotentialKeyword)
{
std::string_view name = getCurrentWord(line, i);
i += name.length() - 1;
}
continue;
}
i = processSwitchBlock(line, i);
} // end of for loop * end of for loop * end of for loop * end of for loop
}
/**
* process the character at the current index in a switch block.
*
* @param line a reference to the line to indent.
* @param index the current line index.
* @return the new line index.
*/
size_t ASEnhancer::processSwitchBlock(std::string& line, size_t index)
{
size_t i = index;
bool isPotentialKeyword = isCharPotentialHeader(line, i);
if (line[i] == '{')
{
sw.switchBraceCount++;
if (lookingForCaseBrace) // if 1st after case statement
{
sw.unindentCase = true; // unindenting this case
sw.unindentDepth++;
lookingForCaseBrace = false; // not looking now
}
return i;
}
lookingForCaseBrace = false; // no opening brace, don't indent
if (line[i] == '}')
{
sw.switchBraceCount--;
if (sw.switchBraceCount == 0) // if end of switch statement
{
int lineUnindent = sw.unindentDepth;
if (line.find_first_not_of(" \t") == i
&& !switchStack.empty())
lineUnindent = switchStack[switchStack.size() - 1].unindentDepth;
if (shouldUnindentLine)
{
if (lineUnindent > 0)
i -= unindentLine(line, lineUnindent);
shouldUnindentLine = false;
}
switchDepth--;
sw = switchStack.back();
switchStack.pop_back();
}
return i;
}
if (isPotentialKeyword
&& (findKeyword(line, i, ASResource::AS_CASE)
|| findKeyword(line, i, ASResource::AS_DEFAULT)))
{
if (sw.unindentCase) // if unindented last case
{
sw.unindentCase = false; // stop unindenting previous case
sw.unindentDepth--;
}
i = findCaseColon(line, i);
i++;
for (; i < line.length(); i++) // bypass whitespace
{
if (!std::isblank(line[i]))
break;
}
if (i < line.length())
{
if (line[i] == '{')
{
braceCount++;
sw.switchBraceCount++;
if (!isOneLineBlockReached(line, i))
unindentNextLine = true;
return i;
}
}
lookingForCaseBrace = true;
i--; // need to process this char
return i;
}
if (isPotentialKeyword)
{
std::string_view name = getCurrentWord(line, i); // bypass the entire name
i += name.length() - 1;
}
return i;
}
/**
* unindent a line by a given number of tabsets
* by erasing the leading whitespace from the line argument.
*
* @param line a reference to the line to unindent.
* @param unindent the number of tabsets to erase.
* @return the number of characters erased.
*/
int ASEnhancer::unindentLine(std::string& line, int unindent) const
{
size_t whitespace = line.find_first_not_of(" \t");
if (whitespace == std::string::npos) // if line is blank
whitespace = line.length(); // must remove padding, if any
if (whitespace == 0)
return 0;
size_t charsToErase = 0;
if (forceTab && indentLength != tabLength)
{
// replace tab indents with spaces
convertForceTabIndentToSpaces(line);
// remove the space indents
size_t spaceIndentLength = line.find_first_not_of(" \t");
charsToErase = unindent * indentLength;
if (charsToErase <= spaceIndentLength)
line.erase(0, charsToErase);
else
charsToErase = 0;
// replace leading spaces with tab indents
convertSpaceIndentToForceTab(line);
}
else if (useTabs)
{
charsToErase = unindent;
if (charsToErase <= whitespace)
line.erase(0, charsToErase);
else
charsToErase = 0;
}
else // spaces
{
charsToErase = unindent * indentLength;
if (charsToErase <= whitespace)
line.erase(0, charsToErase);
else
charsToErase = 0;
}
return charsToErase;
}
} // end namespace astyle
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
-170
View File
@@ -1,170 +0,0 @@
// ASLocalizer.h
// Copyright (c) 2026 The Artistic Style Authors.
// This code is licensed under the MIT License.
// License.md describes the conditions under which this software may be distributed.
#ifndef ASLOCALIZER_H
#define ASLOCALIZER_H
#include <string>
#include <vector>
// library builds do not need ASLocalizer
#ifdef ASTYLE_JNI
#ifndef ASTYLE_LIB // ASTYLE_LIB must be defined for ASTYLE_JNI
#define ASTYLE_LIB
#endif
#endif // ASTYLE_JNI
namespace astyle {
#ifndef ASTYLE_LIB
//-----------------------------------------------------------------------------
// ASLocalizer class for console build.
// This class encapsulates all language-dependent settings and is a
// generalization of the C locale concept.
//-----------------------------------------------------------------------------
class Translation;
class ASLocalizer
{
public: // functions
ASLocalizer();
virtual ~ASLocalizer();
std::string getLanguageID() const;
const Translation* getTranslationClass() const;
#ifdef _WIN32
void setLanguageFromLCID(size_t lcid);
#endif
void setLanguageFromName(const char* langID);
const char* settext(const char* textIn) const;
private: // functions
void setTranslationClass();
private: // variables
Translation* m_translationClass;// pointer to a polymorphic Translation class
std::string m_langID; // language identifier from the locale
std::string m_subLangID; // sub language identifier, if needed
#ifdef _WIN32
size_t m_lcid; // LCID of the user locale (Windows only)
size_t m_codepage; // active codepage, 65001 = utf-8
#endif
};
//----------------------------------------------------------------------------
// Translation base class.
//----------------------------------------------------------------------------
class Translation
// This base class is inherited by the language translation classes.
// Polymorphism is used to call the correct language translator.
// This class contains the translation std::vector and settext translation method.
// The language std::vector is built by the language sub classes.
// NOTE: This class must have virtual methods for typeid() to work.
// typeid() is used by AStyleTestI18n_Localizer.cpp.
{
public:
Translation();
virtual ~Translation() = default;
std::string convertToMultiByte(const std::wstring& wideStr) const;
std::string getTranslationString(size_t i) const;
size_t getTranslationVectorSize() const;
bool getWideTranslation(const std::string& stringIn, std::wstring& wideOut) const;
std::string& translate(const std::string& stringIn) const;
protected:
void addPair(const std::string& english, const std::wstring& translated);
// variables
std::vector<std::pair<std::string, std::wstring> > m_translationVector;
private:
// the number of translation pairs added a constructor
static const size_t translationElements = 30; // need static for vs2013
// the translated std::string
mutable std::string m_mbTranslation;
};
//----------------------------------------------------------------------------
// Translation classes
// One class for each language.
// These classes have only a constructor which builds the language std::vector.
//----------------------------------------------------------------------------
class Bulgarian : public Translation
{ public: Bulgarian(); };
class ChineseSimplified : public Translation
{ public: ChineseSimplified(); };
class ChineseTraditional : public Translation
{ public: ChineseTraditional(); };
class Dutch : public Translation
{ public: Dutch(); };
class English : public Translation
{ public: English(); };
class Estonian : public Translation
{ public: Estonian(); };
class Finnish : public Translation
{ public: Finnish(); };
class French : public Translation
{ public: French(); };
class German : public Translation
{ public: German(); };
class Greek : public Translation
{ public: Greek(); };
class Hindi : public Translation
{ public: Hindi(); };
class Hungarian : public Translation
{ public: Hungarian(); };
class Italian : public Translation
{ public: Italian(); };
class Japanese : public Translation
{ public: Japanese(); };
class Korean : public Translation
{ public: Korean(); };
class Norwegian : public Translation
{ public: Norwegian(); };
class Polish : public Translation
{ public: Polish(); };
class Portuguese : public Translation
{ public: Portuguese(); };
class Romanian : public Translation
{ public: Romanian(); };
class Russian : public Translation
{ public: Russian(); };
class Spanish : public Translation
{ public: Spanish(); };
class Swedish : public Translation
{ public: Swedish(); };
class Ukrainian : public Translation
{ public: Ukrainian(); };
#endif // ASTYLE_LIB
} // namespace astyle
#endif // ASLOCALIZER_H
-827
View File
@@ -1,827 +0,0 @@
// ASResource.cpp
// Copyright (c) 2026 The Artistic Style Authors.
// This code is licensed under the MIT License.
// License.md describes the conditions under which this software may be distributed.
//-----------------------------------------------------------------------------
// headers
//-----------------------------------------------------------------------------
#include "astyle.h"
#include <algorithm>
//-----------------------------------------------------------------------------
// astyle namespace
//-----------------------------------------------------------------------------
namespace astyle {
//
const std::string ASResource::_AS_EXCEPT = std::string("__except");
const std::string ASResource::_AS_FINALLY = std::string("__finally");
const std::string ASResource::_AS_TRY = std::string("__try");
const std::string ASResource::AS_ADD = std::string("add");
const std::string ASResource::AS_AUTO = std::string("auto");
const std::string ASResource::AS_AUTORELEASEPOOL = std::string("autoreleasepool");
const std::string ASResource::AS_CASE = std::string("case");
const std::string ASResource::AS_CATCH = std::string("catch");
const std::string ASResource::AS_CLASS = std::string("class");
const std::string ASResource::AS_CONST = std::string("const");
const std::string ASResource::AS_CONST_CAST = std::string("const_cast");
const std::string ASResource::AS_DEFAULT = std::string("default");
const std::string ASResource::AS_DELEGATE = std::string("delegate");
const std::string ASResource::AS_DELETE = std::string("delete");
const std::string ASResource::AS_DO = std::string("do");
const std::string ASResource::AS_DYNAMIC_CAST = std::string("dynamic_cast");
const std::string ASResource::AS_ELSE = std::string("else");
const std::string ASResource::AS_END = std::string("end");
const std::string ASResource::AS_ENUM = std::string("enum");
const std::string ASResource::AS_EXTERN = std::string("extern");
const std::string ASResource::AS_FINAL = std::string("final");
const std::string ASResource::AS_FINALLY = std::string("finally");
const std::string ASResource::AS_FIXED = std::string("fixed");
const std::string ASResource::AS_FOR = std::string("for");
const std::string ASResource::AS_FOREACH = std::string("foreach");
const std::string ASResource::AS_FOREVER = std::string("forever");
const std::string ASResource::AS_GET = std::string("get");
const std::string ASResource::AS_IF = std::string("if");
const std::string ASResource::AS_INTERFACE = std::string("interface");
const std::string ASResource::AS_INTERRUPT = std::string("interrupt");
const std::string ASResource::AS_LET = std::string("let");
const std::string ASResource::AS_LOCK = std::string("lock");
const std::string ASResource::AS_MODULE = std::string("module"); // CORBA IDL module definition
const std::string ASResource::AS_NAMESPACE = std::string("namespace");
const std::string ASResource::AS_NEW = std::string("new");
const std::string ASResource::AS_NOEXCEPT = std::string("noexcept");
const std::string ASResource::AS_NS_DURING = std::string("NS_DURING");
const std::string ASResource::AS_NS_HANDLER = std::string("NS_HANDLER");
const std::string ASResource::AS_OPERATOR = std::string("operator");
const std::string ASResource::AS_OVERRIDE = std::string("override");
const std::string ASResource::AS_PRIVATE = std::string("private");
const std::string ASResource::AS_PROTECTED = std::string("protected");
const std::string ASResource::AS_PUBLIC = std::string("public");
const std::string ASResource::AS_QFOREACH = std::string("Q_FOREACH");
const std::string ASResource::AS_QFOREVER = std::string("Q_FOREVER");
const std::string ASResource::AS_REINTERPRET_CAST = std::string("reinterpret_cast");
const std::string ASResource::AS_REMOVE = std::string("remove");
const std::string ASResource::AS_SEALED = std::string("sealed");
const std::string ASResource::AS_SELECTOR = std::string("selector");
const std::string ASResource::AS_SET = std::string("set");
const std::string ASResource::AS_STATIC = std::string("static");
const std::string ASResource::AS_STATIC_CAST = std::string("static_cast");
const std::string ASResource::AS_STRUCT = std::string("struct");
const std::string ASResource::AS_TYPEDEF_STRUCT = std::string("typedef struct");
const std::string ASResource::AS_SWITCH = std::string("switch");
const std::string ASResource::AS_SYNCHRONIZED = std::string("synchronized");
const std::string ASResource::AS_TEMPLATE = std::string("template");
const std::string ASResource::AS_THROW = std::string("throw");
const std::string ASResource::AS_THROWS = std::string("throws");
const std::string ASResource::AS_TRY = std::string("try");
const std::string ASResource::AS_UNCHECKED = std::string("unchecked");
const std::string ASResource::AS_UNION = std::string("union");
const std::string ASResource::AS_UNSAFE = std::string("unsafe");
const std::string ASResource::AS_USING = std::string("using");
const std::string ASResource::AS_VOLATILE = std::string("volatile");
const std::string ASResource::AS_WHERE = std::string("where");
const std::string ASResource::AS_WHILE = std::string("while");
const std::string ASResource::AS_ASM = std::string("asm");
const std::string ASResource::AS__ASM__ = std::string("__asm__");
const std::string ASResource::AS_MS_ASM = std::string("_asm");
const std::string ASResource::AS_MS__ASM = std::string("__asm");
const std::string ASResource::AS_BAR_DEFINE = std::string("#define");
const std::string ASResource::AS_BAR_INCLUDE = std::string("#include");
const std::string ASResource::AS_BAR_IF = std::string("#if");
const std::string ASResource::AS_BAR_EL = std::string("#el");
const std::string ASResource::AS_BAR_ENDIF = std::string("#endif");
const std::string ASResource::AS_OPEN_PAREN = std::string("(");
const std::string ASResource::AS_CLOSE_PAREN = std::string(")");
const std::string ASResource::AS_OPEN_BRACE = std::string("{");
const std::string ASResource::AS_CLOSE_BRACE = std::string("}");
const std::string ASResource::AS_OPEN_LINE_COMMENT = std::string("//");
const std::string ASResource::AS_OPEN_COMMENT = std::string("/*");
const std::string ASResource::AS_CLOSE_COMMENT = std::string("*/");
const std::string ASResource::AS_GSC_OPEN_COMMENT = std::string("/#");
const std::string ASResource::AS_GSC_CLOSE_COMMENT = std::string("#/");
const std::string ASResource::AS_OPEN_CONFLICT = std::string("<<<<<<<");
const std::string ASResource::AS_MIDDLE_CONFLICT = std::string("=======");
const std::string ASResource::AS_CLOSE_CONFLICT = std::string(">>>>>>>");
const std::string ASResource::AS_ASSIGN = std::string("=");
const std::string ASResource::AS_PLUS_ASSIGN = std::string("+=");
const std::string ASResource::AS_MINUS_ASSIGN = std::string("-=");
const std::string ASResource::AS_MULT_ASSIGN = std::string("*=");
const std::string ASResource::AS_DIV_ASSIGN = std::string("/=");
const std::string ASResource::AS_MOD_ASSIGN = std::string("%=");
const std::string ASResource::AS_OR_ASSIGN = std::string("|=");
const std::string ASResource::AS_AND_ASSIGN = std::string("&=");
const std::string ASResource::AS_XOR_ASSIGN = std::string("^=");
const std::string ASResource::AS_GR_GR_ASSIGN = std::string(">>=");
const std::string ASResource::AS_LS_LS_ASSIGN = std::string("<<=");
const std::string ASResource::AS_GR_GR_GR_ASSIGN = std::string(">>>=");
const std::string ASResource::AS_LS_LS_LS_ASSIGN = std::string("<<<=");
const std::string ASResource::AS_GCC_MIN_ASSIGN = std::string("<?");
const std::string ASResource::AS_GCC_MAX_ASSIGN = std::string(">?");
const std::string ASResource::AS_RETURN = std::string("return");
const std::string ASResource::AS_CIN = std::string("cin");
const std::string ASResource::AS_COUT = std::string("cout");
const std::string ASResource::AS_CERR = std::string("cerr");
const std::string ASResource::AS_EQUAL = std::string("==");
const std::string ASResource::AS_PLUS_PLUS = std::string("++");
const std::string ASResource::AS_MINUS_MINUS = std::string("--");
const std::string ASResource::AS_NOT_EQUAL = std::string("!=");
const std::string ASResource::AS_GR_EQUAL = std::string(">=");
const std::string ASResource::AS_GR_GR = std::string(">>");
const std::string ASResource::AS_GR_GR_GR = std::string(">>>");
const std::string ASResource::AS_LS_EQUAL = std::string("<=");
const std::string ASResource::AS_LS_LS = std::string("<<");
const std::string ASResource::AS_LS_LS_LS = std::string("<<<");
const std::string ASResource::AS_QUESTION_QUESTION = std::string("??");
const std::string ASResource::AS_LAMBDA = std::string("=>"); // C# lambda expression arrow
const std::string ASResource::AS_ARROW = std::string("->");
const std::string ASResource::AS_AND = std::string("&&");
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("-");
const std::string ASResource::AS_MULT = std::string("*");
const std::string ASResource::AS_DIV = std::string("/");
const std::string ASResource::AS_MOD = std::string("%");
const std::string ASResource::AS_GR = std::string(">");
const std::string ASResource::AS_LS = std::string("<");
const std::string ASResource::AS_NOT = std::string("!");
const std::string ASResource::AS_BIT_OR = std::string("|");
const std::string ASResource::AS_BIT_AND = std::string("&");
const std::string ASResource::AS_BIT_NOT = std::string("~");
const std::string ASResource::AS_BIT_XOR = std::string("^");
const std::string ASResource::AS_QUESTION = std::string("?");
const std::string ASResource::AS_COLON = std::string(":");
const std::string ASResource::AS_COMMA = std::string(",");
const std::string ASResource::AS_DOT = std::string(".");
const std::string ASResource::AS_SEMICOLON = std::string(";");
/**
* Sort comparison function.
* Compares the length of the value of pointers in the vectors.
* The LONGEST std::strings will be first in the vector.
*
* @param a and b, the std::string pointers to be compared.
*/
bool sortOnLength(const std::string* a, const std::string* b)
{
return (*a).length() > (*b).length();
}
/**
* Sort comparison function.
* Compares the value of pointers in the vectors.
*
* @param a and b, the std::string pointers to be compared.
*/
bool sortOnName(const std::string* a, const std::string* b)
{
return *a < *b;
}
/**
* Build the vector of assignment operators.
* Used by BOTH ASFormatter.cpp and ASBeautifier.cpp
*
* @param assignmentOperators a reference to the vector to be built.
*/
void ASResource::buildAssignmentOperators(std::vector<const std::string*>* assignmentOperators)
{
const size_t elements = 15;
assignmentOperators->reserve(elements);
assignmentOperators->emplace_back(&AS_ASSIGN);
assignmentOperators->emplace_back(&AS_PLUS_ASSIGN);
assignmentOperators->emplace_back(&AS_MINUS_ASSIGN);
assignmentOperators->emplace_back(&AS_MULT_ASSIGN);
assignmentOperators->emplace_back(&AS_DIV_ASSIGN);
assignmentOperators->emplace_back(&AS_MOD_ASSIGN);
assignmentOperators->emplace_back(&AS_OR_ASSIGN);
assignmentOperators->emplace_back(&AS_AND_ASSIGN);
assignmentOperators->emplace_back(&AS_XOR_ASSIGN);
// Java
assignmentOperators->emplace_back(&AS_GR_GR_GR_ASSIGN);
assignmentOperators->emplace_back(&AS_GR_GR_ASSIGN);
assignmentOperators->emplace_back(&AS_LS_LS_ASSIGN);
// Unknown
assignmentOperators->emplace_back(&AS_LS_LS_LS_ASSIGN);
assert(assignmentOperators->size() < elements);
sort(assignmentOperators->begin(), assignmentOperators->end(), sortOnLength);
}
/**
* Build the vector of C++ cast operators.
* Used by ONLY ASFormatter.cpp
*
* @param castOperators a reference to the vector to be built.
*/
void ASResource::buildCastOperators(std::vector<const std::string*>* castOperators)
{
const size_t elements = 5;
castOperators->reserve(elements);
castOperators->emplace_back(&AS_CONST_CAST);
castOperators->emplace_back(&AS_DYNAMIC_CAST);
castOperators->emplace_back(&AS_REINTERPRET_CAST);
castOperators->emplace_back(&AS_STATIC_CAST);
assert(castOperators->size() < elements);
sort(castOperators->begin(), castOperators->end(), sortOnName);
}
/**
* Build the vector of header words.
* Used by BOTH ASFormatter.cpp and ASBeautifier.cpp
*
* @param headers a reference to the vector to be built.
*/
void ASResource::buildHeaders(std::vector<const std::string*>* headers, int fileType, bool beautifier)
{
const size_t elements = 25;
headers->reserve(elements);
headers->emplace_back(&AS_IF);
headers->emplace_back(&AS_ELSE);
headers->emplace_back(&AS_FOR);
headers->emplace_back(&AS_WHILE);
headers->emplace_back(&AS_DO);
headers->emplace_back(&AS_SWITCH);
headers->emplace_back(&AS_CASE);
headers->emplace_back(&AS_DEFAULT);
headers->emplace_back(&AS_TRY);
headers->emplace_back(&AS_CATCH);
headers->emplace_back(&AS_QFOREACH); // QT
headers->emplace_back(&AS_QFOREVER); // QT
headers->emplace_back(&AS_FOREACH); // QT & C#
headers->emplace_back(&AS_FOREVER); // Qt & Boost
if (fileType == C_TYPE || fileType == OBJC_TYPE)
{
headers->emplace_back(&_AS_TRY); // __try
headers->emplace_back(&_AS_FINALLY); // __finally
headers->emplace_back(&_AS_EXCEPT); // __except
}
if (fileType == JAVA_TYPE)
{
headers->emplace_back(&AS_FINALLY);
headers->emplace_back(&AS_SYNCHRONIZED);
}
if (fileType == SHARP_TYPE)
{
headers->emplace_back(&AS_FINALLY);
headers->emplace_back(&AS_LOCK);
headers->emplace_back(&AS_FIXED);
headers->emplace_back(&AS_GET);
headers->emplace_back(&AS_SET);
headers->emplace_back(&AS_ADD);
headers->emplace_back(&AS_REMOVE);
headers->emplace_back(&AS_USING);
}
if (beautifier)
{
if (fileType == C_TYPE || fileType == OBJC_TYPE)
{
headers->emplace_back(&AS_TEMPLATE);
}
if (fileType == JAVA_TYPE)
{
headers->emplace_back(&AS_STATIC); // for static constructor
}
}
assert(headers->size() < elements);
sort(headers->begin(), headers->end(), sortOnName);
}
/**
* Build the vector of indentable headers.
* Used by ONLY ASBeautifier.cpp
*
* @param indentableHeaders a reference to the vector to be built.
*/
void ASResource::buildIndentableHeaders(std::vector<const std::string*>* indentableHeaders)
{
indentableHeaders->emplace_back(&AS_RETURN);
}
/**
* Build the vector of indentable macros pairs.
* Initialized by ASFormatter, used by ONLY ASEnhancer.cpp
*
* @param indentableMacros a reference to the vector to be built.
*/
void ASResource::buildIndentableMacros(std::vector<const std::pair<const std::string, const std::string>* >* indentableMacros)
{
const size_t elements = 10;
indentableMacros->reserve(elements);
// the pairs must be retained in memory because of pair pointers
using macro_pair = std::pair<const std::string, const std::string>;
static const macro_pair macros[] =
{
// wxWidgets
macro_pair("BEGIN_EVENT_TABLE", "END_EVENT_TABLE"),
macro_pair("wxBEGIN_EVENT_TABLE", "wxEND_EVENT_TABLE"),
// MFC
macro_pair("BEGIN_DISPATCH_MAP", "END_DISPATCH_MAP"),
macro_pair("BEGIN_EVENT_MAP", "END_EVENT_MAP"),
macro_pair("BEGIN_MESSAGE_MAP", "END_MESSAGE_MAP"),
macro_pair("BEGIN_PROPPAGEIDS", "END_PROPPAGEIDS"),
};
for (const macro_pair& macro : macros)
indentableMacros->emplace_back(&macro);
assert(indentableMacros->size() < elements);
}
/**
* Build the vector of non-assignment operators.
* Used by ONLY ASBeautifier.cpp
*
* @param nonAssignmentOperators a reference to the vector to be built.
* @param fileType language identifier.
*
*/
void ASResource::buildNonAssignmentOperators(std::vector<const std::string*>* nonAssignmentOperators, int fileType)
{
const size_t elements = 16;
nonAssignmentOperators->reserve(elements);
nonAssignmentOperators->emplace_back(&AS_EQUAL);
nonAssignmentOperators->emplace_back(&AS_PLUS_PLUS);
nonAssignmentOperators->emplace_back(&AS_MINUS_MINUS);
nonAssignmentOperators->emplace_back(&AS_NOT_EQUAL);
nonAssignmentOperators->emplace_back(&AS_GR_EQUAL);
nonAssignmentOperators->emplace_back(&AS_GR_GR);
nonAssignmentOperators->emplace_back(&AS_LS_EQUAL);
nonAssignmentOperators->emplace_back(&AS_LS_LS);
nonAssignmentOperators->emplace_back(&AS_ARROW);
nonAssignmentOperators->emplace_back(&AS_AND);
nonAssignmentOperators->emplace_back(&AS_OR);
nonAssignmentOperators->emplace_back(&AS_LAMBDA);
nonAssignmentOperators->emplace_back(&AS_DOT);
if (fileType == JAVA_TYPE) {
nonAssignmentOperators->emplace_back(&AS_GR_GR_GR);
nonAssignmentOperators->emplace_back(&AS_LS_LS_LS);
}
assert(nonAssignmentOperators->size() < elements);
sort(nonAssignmentOperators->begin(), nonAssignmentOperators->end(), sortOnLength);
}
/**
* Build the vector of header non-paren headers.
* Used by BOTH ASFormatter.cpp and ASBeautifier.cpp.
* NOTE: Non-paren headers should also be included in the headers vector.
*
* @param nonParenHeaders a reference to the std::vector to be built.
* @param fileType language identifier.
*
*/
void ASResource::buildNonParenHeaders(std::vector<const std::string*>* nonParenHeaders, int fileType, bool beautifier)
{
const size_t elements = 20;
nonParenHeaders->reserve(elements);
nonParenHeaders->emplace_back(&AS_ELSE);
nonParenHeaders->emplace_back(&AS_DO);
nonParenHeaders->emplace_back(&AS_TRY);
nonParenHeaders->emplace_back(&AS_CATCH); // can be paren or non-paren
nonParenHeaders->emplace_back(&AS_CASE); // can be paren or non-paren
nonParenHeaders->emplace_back(&AS_DEFAULT);
nonParenHeaders->emplace_back(&AS_QFOREVER); // QT
nonParenHeaders->emplace_back(&AS_FOREVER); // Boost
if (fileType == C_TYPE || fileType == OBJC_TYPE)
{
nonParenHeaders->emplace_back(&_AS_TRY); // __try
nonParenHeaders->emplace_back(&_AS_FINALLY); // __finally
}
if (fileType == JAVA_TYPE)
{
nonParenHeaders->emplace_back(&AS_FINALLY);
}
if (fileType == SHARP_TYPE)
{
nonParenHeaders->emplace_back(&AS_FINALLY);
nonParenHeaders->emplace_back(&AS_GET);
nonParenHeaders->emplace_back(&AS_SET);
nonParenHeaders->emplace_back(&AS_ADD);
nonParenHeaders->emplace_back(&AS_REMOVE);
}
if (beautifier)
{
if (fileType == C_TYPE)
{
nonParenHeaders->emplace_back(&AS_TEMPLATE);
}
if (fileType == JAVA_TYPE)
{
nonParenHeaders->emplace_back(&AS_STATIC);
}
}
assert(nonParenHeaders->size() < elements);
sort(nonParenHeaders->begin(), nonParenHeaders->end(), sortOnName);
}
/**
* Build the vector of operators.
* Used by ONLY ASFormatter.cpp
*
* @param operators a reference to the vector to be built.
*/
void ASResource::buildOperators(std::vector<const std::string*>* operators, int fileType)
{
const size_t elements = 50;
operators->reserve(elements);
operators->emplace_back(&AS_PLUS_ASSIGN);
operators->emplace_back(&AS_MINUS_ASSIGN);
operators->emplace_back(&AS_MULT_ASSIGN);
operators->emplace_back(&AS_DIV_ASSIGN);
operators->emplace_back(&AS_MOD_ASSIGN);
operators->emplace_back(&AS_OR_ASSIGN);
operators->emplace_back(&AS_AND_ASSIGN);
operators->emplace_back(&AS_XOR_ASSIGN);
operators->emplace_back(&AS_EQUAL);
operators->emplace_back(&AS_PLUS_PLUS);
operators->emplace_back(&AS_MINUS_MINUS);
operators->emplace_back(&AS_NOT_EQUAL);
operators->emplace_back(&AS_GR_EQUAL);
operators->emplace_back(&AS_GR_GR_GR_ASSIGN);
operators->emplace_back(&AS_GR_GR_ASSIGN);
operators->emplace_back(&AS_GR_GR_GR);
operators->emplace_back(&AS_GR_GR);
operators->emplace_back(&AS_LS_EQUAL);
operators->emplace_back(&AS_LS_LS_LS_ASSIGN);
operators->emplace_back(&AS_LS_LS_ASSIGN);
operators->emplace_back(&AS_LS_LS_LS);
operators->emplace_back(&AS_LS_LS);
operators->emplace_back(&AS_QUESTION_QUESTION);
operators->emplace_back(&AS_LAMBDA);
operators->emplace_back(&AS_ARROW);
operators->emplace_back(&AS_AND);
operators->emplace_back(&AS_OR);
operators->emplace_back(&AS_SCOPE_RESOLUTION);
operators->emplace_back(&AS_PLUS);
operators->emplace_back(&AS_MINUS);
operators->emplace_back(&AS_MULT);
operators->emplace_back(&AS_DIV);
operators->emplace_back(&AS_MOD);
operators->emplace_back(&AS_QUESTION);
operators->emplace_back(&AS_COLON);
operators->emplace_back(&AS_ASSIGN);
operators->emplace_back(&AS_LS);
operators->emplace_back(&AS_GR);
operators->emplace_back(&AS_NOT);
operators->emplace_back(&AS_BIT_OR);
operators->emplace_back(&AS_BIT_AND);
operators->emplace_back(&AS_BIT_NOT);
operators->emplace_back(&AS_BIT_XOR);
if (fileType == C_TYPE)
{
operators->emplace_back(&AS_GCC_MIN_ASSIGN);
operators->emplace_back(&AS_GCC_MAX_ASSIGN);
operators->emplace_back(&AS_SPACESHIP);
}
if (fileType == JS_TYPE)
{
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);
}
/**
* Build the vector of pre-block statements.
* Used by ONLY ASBeautifier.cpp
* NOTE: Cannot be both a header and a preBlockStatement.
*
* @param preBlockStatements a reference to the vector to be built.
*/
void ASResource::buildPreBlockStatements(std::vector<const std::string*>* preBlockStatements, int fileType)
{
const size_t elements = 10;
preBlockStatements->reserve(elements);
preBlockStatements->emplace_back(&AS_CLASS);
if (fileType == C_TYPE || fileType == OBJC_TYPE)
{
preBlockStatements->emplace_back(&AS_STRUCT);
preBlockStatements->emplace_back(&AS_UNION);
preBlockStatements->emplace_back(&AS_NAMESPACE);
preBlockStatements->emplace_back(&AS_MODULE); // for CORBA IDL
preBlockStatements->emplace_back(&AS_INTERFACE); // for CORBA IDL
}
if (fileType == JAVA_TYPE)
{
preBlockStatements->emplace_back(&AS_INTERFACE);
preBlockStatements->emplace_back(&AS_THROWS);
}
if (fileType == SHARP_TYPE)
{
preBlockStatements->emplace_back(&AS_INTERFACE);
preBlockStatements->emplace_back(&AS_NAMESPACE);
preBlockStatements->emplace_back(&AS_WHERE);
preBlockStatements->emplace_back(&AS_STRUCT);
}
assert(preBlockStatements->size() < elements);
sort(preBlockStatements->begin(), preBlockStatements->end(), sortOnName);
}
/**
* Build the vector of pre-command headers.
* Used by BOTH ASFormatter.cpp and ASBeautifier.cpp.
* NOTE: Cannot be both a header and a preCommandHeader.
*
* A preCommandHeader is in a function definition between
* the closing paren and the opening brace.
* e.g. in "void foo() const {}", "const" is a preCommandHeader.
*/
void ASResource::buildPreCommandHeaders(std::vector<const std::string*>* preCommandHeaders, int fileType)
{
const size_t elements = 10;
preCommandHeaders->reserve(elements);
if (fileType == C_TYPE || fileType == OBJC_TYPE)
{
preCommandHeaders->emplace_back(&AS_CONST);
preCommandHeaders->emplace_back(&AS_FINAL);
preCommandHeaders->emplace_back(&AS_INTERRUPT);
preCommandHeaders->emplace_back(&AS_NOEXCEPT);
preCommandHeaders->emplace_back(&AS_OVERRIDE);
preCommandHeaders->emplace_back(&AS_VOLATILE);
preCommandHeaders->emplace_back(&AS_SEALED); // Visual C only
}
if (fileType == OBJC_TYPE)
{
preCommandHeaders->emplace_back(&AS_AUTORELEASEPOOL); // Obj-C only
}
if (fileType == JAVA_TYPE)
{
preCommandHeaders->emplace_back(&AS_THROWS);
}
if (fileType == SHARP_TYPE)
{
preCommandHeaders->emplace_back(&AS_WHERE);
}
assert(preCommandHeaders->size() < elements);
sort(preCommandHeaders->begin(), preCommandHeaders->end(), sortOnName);
}
/**
* Build the vector of pre-definition headers.
* Used by ONLY ASFormatter.cpp
* NOTE: Do NOT add 'enum' here. It is an array type brace.
* NOTE: Do NOT add 'extern' here. Do not want an extra indent.
*
* @param preDefinitionHeaders a reference to the vector to be built.
*/
void ASResource::buildPreDefinitionHeaders(std::vector<const std::string*>* preDefinitionHeaders, int fileType)
{
const size_t elements = 10;
preDefinitionHeaders->reserve(elements);
preDefinitionHeaders->emplace_back(&AS_CLASS);
if (fileType == C_TYPE || fileType == OBJC_TYPE)
{
preDefinitionHeaders->emplace_back(&AS_STRUCT);
preDefinitionHeaders->emplace_back(&AS_UNION);
preDefinitionHeaders->emplace_back(&AS_NAMESPACE);
preDefinitionHeaders->emplace_back(&AS_MODULE); // for CORBA IDL
preDefinitionHeaders->emplace_back(&AS_INTERFACE); // for CORBA IDL
}
if (fileType == JAVA_TYPE)
{
preDefinitionHeaders->emplace_back(&AS_INTERFACE);
}
if (fileType == SHARP_TYPE)
{
preDefinitionHeaders->emplace_back(&AS_STRUCT);
preDefinitionHeaders->emplace_back(&AS_INTERFACE);
preDefinitionHeaders->emplace_back(&AS_NAMESPACE);
}
assert(preDefinitionHeaders->size() < elements);
sort(preDefinitionHeaders->begin(), preDefinitionHeaders->end(), sortOnName);
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* ASBase Functions
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
// check if a specific line position contains a header.
const std::string* ASBase::findHeader(std::string_view line, int i,
const std::vector<const std::string*>* possibleHeaders) const
{
assert(isCharPotentialHeader(line, i));
// check the word
size_t maxHeaders = possibleHeaders->size();
for (size_t p = 0; p < maxHeaders; p++)
{
const std::string* header = (*possibleHeaders)[p];
const size_t wordEnd = i + header->length();
if (wordEnd > line.length())
continue;
int result = (line.compare(i, header->length(), *header));
if (result > 0)
continue;
if (result < 0)
break;
// check that this is not part of a longer word
if (wordEnd == line.length())
return header;
if (isLegalNameChar(line[wordEnd]))
continue;
const char peekChar = peekNextChar(line, wordEnd - 1);
// is not a header if part of a definition
if (peekChar == ',' || peekChar == ')')
break;
// the following accessor definitions are NOT headers
// goto default; is NOT a header
// default(int) keyword in C# is NOT a header
if ((header == &ASResource::AS_GET
|| header == &ASResource::AS_SET
|| header == &ASResource::AS_DEFAULT)
&& (peekChar == '.' || peekChar == ';' || peekChar == '(' || peekChar == '='))
break;
return header;
}
return nullptr;
}
// check if a specific line position contains a keyword.
bool ASBase::findKeyword(std::string_view line, int i, std::string_view keyword) const
{
assert(isCharPotentialHeader(line, i));
// check the word
const size_t keywordLength = keyword.length();
const size_t wordEnd = i + keywordLength;
if (wordEnd > line.length())
return false;
if (line.compare(i, keywordLength, keyword) != 0)
return false;
// check that this is not part of a longer word
if (wordEnd == line.length())
{
//std::cerr << "findKeyword t1 \n";
return true;
}
if (isLegalNameChar(line[wordEnd]))
return false;
// is not a keyword if part of a definition
const char peekChar = peekNextChar(line, (int) wordEnd - 1);
if (peekChar == ',' || peekChar == ')')
return false;
//std::cerr << "findKeyword t2 \n";
return true;
}
// check if a specific line position contains an operator.
const std::string* ASBase::findOperator(std::string_view line, int i,
const std::vector<const std::string*>* possibleOperators) const
{
assert(isCharPotentialOperator(line[i]));
// find the operator in the vector
// the vector contains the LONGEST operators first
// must loop thru the entire vector
size_t maxOperators = possibleOperators->size();
for (size_t p = 0; p < maxOperators; p++)
{
const size_t wordEnd = i + (*(*possibleOperators)[p]).length();
if (wordEnd > line.length())
continue;
if (line.compare(i, (*(*possibleOperators)[p]).length(), *(*possibleOperators)[p]) == 0)
return (*possibleOperators)[p];
}
return nullptr;
}
// get the current word on a line
// index must point to the beginning of the word
std::string_view ASBase::getCurrentWord(std::string_view line, size_t index) const
{
//assert(isCharPotentialHeader(line, index));
size_t lineLength = line.length();
size_t i;
for (i = index; i < lineLength; i++)
{
if (!isLegalNameChar(line[i])
|| ( (isCStyle() || isJavaStyle()) && i > index && line[i] == '.')
)
break;
}
return line.substr(index, i - index);
}
// check if a specific character can be used in a legal variable/method/class name
bool ASBase::isLegalNameChar(char ch) const
{
if (std::isblank(ch))
return false;
if ((unsigned char) ch > 127)
return false;
return (isalnum((unsigned char) ch)
|| ch == '_'
|| (!isSharpStyle() && ch == '.' )
|| (isJavaStyle() && ch == '$')
|| (isSharpStyle() && ch == '@')); // may be used as a prefix
}
// check if a specific character can be part of a header
bool ASBase::isCharPotentialHeader(std::string_view line, size_t i) const
{
assert(!std::isblank(line[i]));
char prevCh = ' ';
if (i > 0)
prevCh = line[i - 1];
if (i > 1 && line[i - 2] == '\\')
prevCh = ' ';
if (!isLegalNameChar(prevCh) && isLegalNameChar(line[i]))
return true;
return false;
}
// check if a specific character can be part of an operator
bool ASBase::isCharPotentialOperator(char ch) const
{
assert(!std::isblank(ch));
if ((unsigned) ch > 127)
return false;
return (ispunct((unsigned char) ch)
&& ch != '{' && ch != '}'
&& ch != '(' && ch != ')'
&& ch != '[' && ch != ']'
&& ch != ';' && ch != ','
&& ch != '#' && ch != '\\'
&& ch != '\'' && ch != '\"');
}
// check if a specific character is a digit
// NOTE: Visual C isdigit() gives assert error if char > 256
bool ASBase::isDigit(char ch) const
{
return (ch >= '0' && ch <= '9');
}
// check if a specific character is a digit separator
bool ASBase::isDigitSeparator(std::string_view line, int i) const
{
assert(line[i] == '\'');
// casting to (unsigned char) eliminates negative characters
// will get a "Debug Assertion Failed" if not cast
bool foundDigitSeparator = i > 0
&& isxdigit((unsigned char) line[i - 1])
&& i < (int) line.length() - 1
&& isxdigit((unsigned char) line[i + 1]);
return foundDigitSeparator;
}
// peek at the next unread character.
char ASBase::peekNextChar(std::string_view line, int i) const
{
char ch = ' ';
size_t peekNum = line.find_first_not_of(" \t", i + 1);
if (peekNum == std::string::npos)
return ch;
ch = line[peekNum];
return ch;
}
} // end namespace astyle
-1207
View File
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
-445
View File
@@ -1,445 +0,0 @@
// astyle_main.h
// Copyright (c) 2026 The Artistic Style Authors.
// This code is licensed under the MIT License.
// License.md describes the conditions under which this software may be distributed.
#ifndef ASTYLE_MAIN_H
#define ASTYLE_MAIN_H
//----------------------------------------------------------------------------
// headers
//----------------------------------------------------------------------------
#include "astyle.h"
#include <ctime>
#include <sstream>
#include <filesystem>
#if defined(__BORLANDC__) && __BORLANDC__ < 0x0650
// Embarcadero needs this for the following utime.h
// otherwise "struct utimbuf" gets an error on time_t
// 0x0650 for C++Builder XE3
using std::time_t;
#endif
#if defined(_MSC_VER)
#include <sys/stat.h>
#include <sys/utime.h>
#else
#include <sys/stat.h>
#include <utime.h>
#endif // end compiler checks
#ifdef ASTYLE_JNI
#include <jni.h>
#ifndef ASTYLE_LIB // ASTYLE_LIB must be defined for ASTYLE_JNI
#define ASTYLE_LIB
#endif
#endif // ASTYLE_JNI
#ifndef ASTYLE_LIB
// for console build only
#include "ASLocalizer.h"
#define _(a) localizer.settext(a)
#endif // ASTYLE_LIB
//-----------------------------------------------------------------------------
// declarations
//-----------------------------------------------------------------------------
// for getenv and localtime
#if defined(_MSC_VER)
#pragma warning(disable: 4996) // secure version deprecation warnings
#endif
#ifdef __clang__
#pragma clang diagnostic ignored "-Wdeprecated-declarations" // getenv, localtime
#pragma clang diagnostic ignored "-Wmissing-braces"
#endif
#ifdef ASTYLE_LIB
// define STDCALL and EXPORT for Windows
// MINGW defines STDCALL in Windows.h (actually windef.h)
// EXPORT has no value if ASTYLE_NO_EXPORT is defined
#ifdef _WIN32
#ifndef STDCALL
#define STDCALL __stdcall
#endif
// define this to prevent compiler warning and error messages
#ifdef ASTYLE_NO_EXPORT
#define EXPORT
#else
#define EXPORT __declspec(dllexport)
#endif
// define STDCALL and EXPORT for non-Windows
// visibility attribute allows "-fvisibility=hidden" compiler option
#else
#define STDCALL
#if __GNUC__ >= 4
#define EXPORT __attribute__ ((visibility ("default")))
#else
#define EXPORT
#endif
#endif // #ifdef _WIN32
// define pointers to callback error handler and memory allocation
typedef void (STDCALL* fpError)(int errorNumber, const char* errorMessage);
typedef char* (STDCALL* fpAlloc)(unsigned long memoryNeeded);
#endif // #ifdef ASTYLE_LIB
//----------------------------------------------------------------------------
// astyle namespace
//----------------------------------------------------------------------------
namespace astyle {
//
//----------------------------------------------------------------------------
// ASStreamIterator class
// typename will be stringstream for AStyle
// it could be istream for plug-ins
// ASSourceIterator is an inherited abstract class defined in astyle.h
//----------------------------------------------------------------------------
template<typename T>
class ASStreamIterator : public ASSourceIterator
{
public:
bool checkForEmptyLine;
public: // function declarations
explicit ASStreamIterator(T* in);
~ASStreamIterator() override;
int getStreamLength() const override;
std::string nextLine(bool emptyLineWasDeleted) override;
std::string peekNextLine() override;
void peekReset() override;
void saveLastInputLine();
std::streamoff tellg() override;
private:
T* inStream; // pointer to the input stream
std::string buffer; // current input line
std::string prevBuffer; // previous input line
std::string lastOutputEOL; // next output end of line char
std::streamoff streamLength; // length of the input file stream
std::streamoff peekStart; // starting position for peekNextLine
bool prevLineDeleted; // the previous input line was deleted
public: // inline functions
bool compareToInputBuffer(const std::string& nextLine_) const
{ return (nextLine_ == prevBuffer); }
const std::string& getLastOutputEOL() const { return lastOutputEOL; }
std::streamoff getPeekStart() const override { return peekStart; }
bool hasMoreLines() const override { return !inStream->eof(); }
};
//----------------------------------------------------------------------------
// ASEncoding class for utf8/16 conversions
// used by both console and library builds
//----------------------------------------------------------------------------
class ASEncoding
{
private:
using utf16 = char16_t; // 16 bits unsigned
using utf8 = unsigned char; // 8 bits
using ubyte = unsigned char; // 8 bits
enum { SURROGATE_LEAD_FIRST = 0xD800 };
enum { SURROGATE_LEAD_LAST = 0xDBFF };
enum { SURROGATE_TRAIL_FIRST = 0xDC00 };
enum { SURROGATE_TRAIL_LAST = 0xDFFF };
enum { SURROGATE_FIRST_VALUE = 0x10000 };
enum eState { eStart, eSecondOf4Bytes, ePenultimate, eFinal };
public:
bool getBigEndian() const;
int swap16bit(int value) const;
size_t utf16len(const utf16* utf16In) const;
size_t utf8LengthFromUtf16(const char* utf16In, size_t inLen, bool isBigEndian) const;
size_t utf8ToUtf16(char* utf8In, size_t inLen, bool isBigEndian, char* utf16Out) const;
size_t utf16LengthFromUtf8(const char* utf8In, size_t len) const;
size_t utf16ToUtf8(char* utf16In, size_t inLen, bool isBigEndian,
bool firstBlock, char* utf8Out) const;
};
//----------------------------------------------------------------------------
// ASOptions class for options processing
// used by both console and library builds
//----------------------------------------------------------------------------
class ASConsole;
class ASOptions
{
public:
#ifdef ASTYLE_LIB
ASOptions(ASFormatter& formatterArg);
#else
ASOptions(ASFormatter& formatterArg, ASConsole& consoleArg);
#endif
std::string getOptionErrors() const;
void importOptions(std::stringstream& in, std::vector<std::string>& optionsVector);
bool parseOptions(std::vector<std::string>& optionsVector);
private:
// variables
ASFormatter& formatter;
std::stringstream optionErrors; // option error messages
#ifndef ASTYLE_LIB
ASConsole& console; // DO NOT USE for ASTYLE_LIB
#endif
// functions
std::string getParam(const std::string& arg, const char* op);
std::string getParam(const std::string& arg, const char* op1, const char* op2);
bool isOption(const std::string& arg, const char* op);
bool isOption(const std::string& arg, const char* op1, const char* op2);
void isOptionError(const std::string& arg);
bool isParamOption(const std::string& arg, const char* option);
bool isParamOption(const std::string& arg, const char* option1, const char* option2);
void parseOption(const std::string& arg);
bool parseOptionContinued(const std::string& arg);
};
#ifndef ASTYLE_LIB
//----------------------------------------------------------------------------
// ASConsole class for console build
//----------------------------------------------------------------------------
class ASConsole
{
private: // variables
ASFormatter& formatter; // reference to the ASFormatter object
ASEncoding encode; // file encoding conversion
ASLocalizer localizer; // language translation
std::ostream* errorStream; // direct error messages to cerr or std::cout
// command line options
bool isRecursive; // recursive option
bool isDryRun; // dry-run option
bool noBackup; // suffix=none option
bool preserveDate; // preserve-date option
bool isVerbose; // verbose option
bool isQuiet; // quiet option
bool isFormattedOnly; // formatted lines only option
bool ignoreExcludeErrors; // don't abort on unmatched excludes
bool ignoreExcludeErrorsDisplay; // don't display unmatched excludes
bool useAscii; // ascii option
// other variables
bool bypassBrowserOpen; // don't open the browser on html options
bool hasWildcard; // file name includes a wildcard
size_t mainDirectoryLength; // directory length to be excluded in displays
bool filesAreIdentical; // input and output files are identical
bool acceptEmptyFileList; // empty input file list will not be reported as error
bool rejectDryRunWithFormat; // formatted files in dry run mode will be reported as error
int filesFormatted; // number of files formatted
int filesUnchanged; // number of files unchanged
int linesOut; // number of output lines
std::string outputEOL; // current line end
std::string astyleExePath; // absolute executable path and name from argv[0]
std::string optionFileName; // file path and name of the options file
std::string origSuffix; // suffix= option
std::string projectOptionFileName; // file path and name of the project options file
std::string stdPathIn; // path to input from stdin=
std::string stdPathOut; // path to output from stdout=
std::string targetDirectory; // path to the directory being processed
std::string targetFilename; // file name being processed
std::vector<std::string> excludeVector; // exclude from wildcard hits
std::vector<bool> excludeHitsVector; // exclude flags for error reporting
std::vector<std::string> fileNameVector; // file paths and names from the command line
std::vector<std::string> includeVector; // --include patterns from options files
std::vector<std::string> optionsVector; // options from the command line
std::vector<std::string> projectOptionsVector;// project options from the project options file
std::vector<std::string> fileOptionsVector; // options from the options file
std::vector<std::string> fileName; // files to be processed including path
public: // functions
explicit ASConsole(ASFormatter& formatterArg);
ASConsole(const ASConsole&) = delete;
ASConsole& operator=(ASConsole const&) = delete;
FileEncoding detectEncoding(const char* data, size_t dataSize) const;
void error() const;
void error(const char* why, const char* what) const;
void formatCinToCout();
std::vector<std::string> getArgvOptions(int argc, char** argv);
bool fileExists(const char* file) const;
bool fileNameVectorIsEmpty() const;
std::ostream* getErrorStream() const;
bool getFilesAreIdentical() const;
int getFilesFormatted() const;
bool getIgnoreExcludeErrors() const;
bool getIgnoreExcludeErrorsDisplay() const;
bool getIsDryRun() const;
bool getIsFormattedOnly() const;
bool getIsQuiet() const;
bool getIsRecursive() const;
bool getIsVerbose() const;
bool getLineEndsMixed() const;
bool getNoBackup() const;
bool getPreserveDate() const;
std::string getLanguageID() const;
std::string getNumberFormat(int num, size_t lcid = 0) const;
std::string getNumberFormat(int num, const char* groupingArg, const char* separator) const;
std::string getOptionFileName() const;
std::string getOrigSuffix() const;
std::string getProjectOptionFileName() const;
std::string getStdPathIn() const;
std::string getStdPathOut() const;
void getTargetFilenames(std::string& targetFilename_, std::vector<std::string>& targetFilenameVector) const;
void processFiles();
void processOptions(const std::vector<std::string>& argvOptions);
void setBypassBrowserOpen(bool state);
void setErrorStream(std::ostream* errStreamPtr);
void setIgnoreExcludeErrors(bool state);
void setIgnoreExcludeErrorsAndDisplay(bool state);
void setIsDryRun(bool state);
void setRejectFormatWithDryRun(bool state);
void setIsFormattedOnly(bool state);
void setIsQuiet(bool state);
void setIsRecursive(bool state);
void setIsVerbose(bool state);
void setNoBackup(bool state);
void setOptionFileName(const std::string& name);
void setOrigSuffix(const std::string& suffix);
void setPreserveDate(bool state);
void setProjectOptionFileName(const std::string& optfilepath);
void setStdPathIn(const std::string& path);
void setStdPathOut(const std::string& path);
void setAcceptEmptyInputFileList(bool state);
void standardizePath(std::string& path, bool removeBeginningSeparator = false) const;
bool stringEndsWith(std::string_view str, std::string_view suffix) const;
void updateExcludeVector(const std::string& suffixParam);
void addIncludePattern(const std::string& pattern);
std::vector<std::string> getExcludeVector() const;
std::vector<bool> getExcludeHitsVector() const;
std::vector<std::string> getFileNameVector() const;
std::vector<std::string> getIncludeVector() const;
std::vector<std::string> getOptionsVector() const;
std::vector<std::string> getProjectOptionsVector() const;
std::vector<std::string> getFileOptionsVector() const;
std::vector<std::string> getFileName() const;
private: // functions
void formatFile(const std::string& fileName_);
std::string getParentDirectory(const std::string& absPath) const;
std::string findProjectOptionFilePath(const std::string& fileName_) const;
std::string getCurrentDirectory(const std::string& fileName_) const;
void getFileNames(const std::string& directory, const std::vector<std::string>& wildcards);
void getFilePaths(const std::string& filePath);
std::string getFullPathName(const std::string& relativePath) const;
std::string getHtmlInstallPrefix() const;
std::string getParam(const std::string& arg, const char* op);
bool isHomeOrInvalidAbsPath(const std::string& absPath) const;
bool isWriteable(const std::filesystem::path& path) const;
void initializeOutputEOL(LineEndFormat lineEndFormat);
bool isOption(const std::string& arg, const char* op);
bool isOption(const std::string& arg, const char* a, const char* b);
bool isParamOption(const std::string& arg, const char* option);
bool isPathExcluded(const std::string& subPath);
void launchDefaultBrowser(const char* filePathIn = nullptr) const;
void printHelp() const;
void printMsg(const char* msg, const std::string& data) const;
void printSeparatingLine() const;
void printVerboseHeader() const;
void printVerboseStats(clock_t startTime) const;
FileEncoding readFile(const std::string& fileName_, std::stringstream& in) const;
void removeFile(const char* fileName_, const char* errMsg) const;
void renameFile(const char* oldFileName, const char* newFileName, const char* errMsg) const;
void sleep(int seconds) const;
int waitForRemove(const char* newFileName) const;
int wildcmp(const char* wild, const char* data) const;
void writeFile(const std::string& fileName_, FileEncoding encoding, std::ostringstream& out) const;
#ifdef _WIN32
void displayLastError();
#endif
};
#else // ASTYLE_LIB
//----------------------------------------------------------------------------
// ASLibrary class for library build
//----------------------------------------------------------------------------
class ASLibrary
{
public:
ASLibrary() = default;
virtual ~ASLibrary() = default;
// virtual functions are mocked in testing
char16_t* formatUtf16(const char16_t*, const char16_t*, fpError, fpAlloc) const;
virtual char16_t* convertUtf8ToUtf16(const char* utf8In, fpAlloc fpMemoryAlloc) const;
virtual char* convertUtf16ToUtf8(const char16_t* utf16In) const;
private:
static char* STDCALL tempMemoryAllocation(unsigned long memoryNeeded);
private:
ASEncoding encode; // file encoding conversion
};
#endif // ASTYLE_LIB
//----------------------------------------------------------------------------
} // end of namespace astyle
//----------------------------------------------------------------------------
// declarations for java native interface (JNI) build
// they are called externally and are NOT part of the namespace
//----------------------------------------------------------------------------
#ifdef ASTYLE_JNI
void STDCALL javaErrorHandler(int errorNumber, const char* errorMessage);
char* STDCALL javaMemoryAlloc(unsigned long memoryNeeded);
// the following function names are constructed from method names in the calling java program
extern "C" EXPORT
jstring STDCALL Java_AStyleInterface_AStyleGetVersion(JNIEnv* env, jclass);
extern "C" EXPORT
jstring STDCALL Java_AStyleInterface_AStyleMain(JNIEnv* env,
jobject obj,
jstring textInJava,
jstring optionsJava);
extern "C" EXPORT
jstring STDCALL Java_cc_arduino_packages_formatter_AStyleInterface_AStyleGetVersion(JNIEnv* env, jclass);
extern "C" EXPORT
jstring STDCALL Java_cc_arduino_packages_formatter_AStyleInterface_AStyleMain(JNIEnv* env,
jobject obj,
jstring textInJava,
jstring optionsJava);
#endif // ASTYLE_JNI
//----------------------------------------------------------------------------
// declarations for UTF-16 interface
// they are called externally and are NOT part of the namespace
//----------------------------------------------------------------------------
#ifdef ASTYLE_LIB
extern "C" EXPORT
char16_t* STDCALL AStyleMainUtf16(const char16_t* pSourceIn,
const char16_t* pOptions,
fpError fpErrorHandler,
fpAlloc fpMemoryAlloc);
#endif // ASTYLE_LIB
//-----------------------------------------------------------------------------
// declarations for standard DLL interface
// they are called externally and are NOT part of the namespace
//-----------------------------------------------------------------------------
#ifdef ASTYLE_LIB
extern "C" EXPORT char* STDCALL AStyleMain(const char* pSourceIn,
const char* pOptions,
fpError fpErrorHandler,
fpAlloc fpMemoryAlloc);
extern "C" EXPORT const char* STDCALL AStyleGetVersion(void);
#endif // ASTYLE_LIB
//-----------------------------------------------------------------------------
#endif // closes ASTYLE_MAIN_H
-52
View File
@@ -1,52 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="Bcc AStyle Dll" />
<Option pch_mode="0" />
<Option compiler="embarcadero_compiler_x64_680" />
<Build>
<Target title="AStyleD">
<Option output="bin/AStyle32.dll" prefix_auto="0" extension_auto="0" />
<Option object_output="objDll" />
<Option type="3" />
<Option compiler="embarcadero_compiler_x64_680" />
<Option createStaticLib="1" />
<Compiler>
<Add option="-w" />
<Add option="-tWD" />
<Add option="-O2" />
<Add option="-DNDEBUG" />
<Add option="-DASTYLE_LIB" />
</Compiler>
<Linker>
<Add option="-c" />
<Add option="-Gn" />
<Add option="-x" />
<Add option="-Gi" />
<Add library="cw64mt" />
<Add library="import64" />
</Linker>
<ExtraCommands>
<Add after="cmd /c copy /y bin\AStyle32.dll ..\..\src-p\ &gt; NUL" />
<Add after="cmd /c copy /y bin\AStyle32.dll ..\..\src-s\ &gt; NUL" />
</ExtraCommands>
</Target>
</Build>
<VirtualTargets>
<Add alias="All" targets="AStyleD;" />
</VirtualTargets>
<Unit filename="../../../AStyle/src/ASBeautifier.cpp" />
<Unit filename="../../../AStyle/src/ASEnhancer.cpp" />
<Unit filename="../../../AStyle/src/ASFormatter.cpp" />
<Unit filename="../../../AStyle/src/ASResource.cpp" />
<Unit filename="../../../AStyle/src/astyle.h" />
<Unit filename="../../../AStyle/src/astyle_main.cpp" />
<Unit filename="../../../AStyle/src/astyle_main.h" />
<Extensions>
<code_completion />
<envvars />
<debugger />
</Extensions>
</Project>
</CodeBlocks_project_file>
@@ -1,54 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="Bcc AStyle Java" />
<Option pch_mode="0" />
<Option compiler="embarcadero_compiler_x64_680" />
<Build>
<Target title="AStyleJ">
<Option output="bin/AStyle32j.dll" prefix_auto="0" extension_auto="0" />
<Option object_output="objJava" />
<Option type="3" />
<Option compiler="embarcadero_compiler_x64_680" />
<Compiler>
<Add option="-w" />
<Add option="-tWD" />
<Add option="-O2" />
<Add option="-DNDEBUG" />
<Add option="-DASTYLE_JNI" />
<Add directory="$(JAVA_HOME)/include" />
<Add directory="$(JAVA_HOME)/include/win32" />
</Compiler>
<Linker>
<Add option="-c" />
<Add option="-Gn" />
<Add option="-x" />
<Add library="cw64mt" />
<Add library="import64" />
</Linker>
<ExtraCommands>
<Add after="cmd /c copy /y bin\AStyle32j.dll ..\..\src-j\ &gt; NUL" />
</ExtraCommands>
</Target>
</Build>
<VirtualTargets>
<Add alias="All" targets="AStyleJ;" />
</VirtualTargets>
<Compiler>
<Add directory="../../include" />
</Compiler>
<Unit filename="../../../AStyle/src/ASBeautifier.cpp" />
<Unit filename="../../../AStyle/src/ASEnhancer.cpp" />
<Unit filename="../../../AStyle/src/ASFormatter.cpp" />
<Unit filename="../../../AStyle/src/ASResource.cpp" />
<Unit filename="../../../AStyle/src/astyle.h" />
<Unit filename="../../../AStyle/src/astyle_main.cpp" />
<Unit filename="../../../AStyle/src/astyle_main.h" />
<Extensions>
<code_completion />
<envvars />
<debugger />
</Extensions>
</Project>
</CodeBlocks_project_file>
-39
View File
@@ -1,39 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="Bcc AStyle Lib" />
<Option pch_mode="2" />
<Option compiler="embarcadero_compiler_x64_680" />
<Build>
<Target title="AStyleL">
<Option output="bin/astyle.lib" prefix_auto="0" extension_auto="0" />
<Option working_dir="" />
<Option object_output="objLib" />
<Option type="2" />
<Option compiler="embarcadero_compiler_x64_680" />
<Compiler>
<Add option="-w" />
<Add option="-O2" />
<Add option="-DNDEBUG" />
<Add option="-DASTYLE_LIB" />
</Compiler>
</Target>
</Build>
<VirtualTargets>
<Add alias="All" targets="AStyleL;" />
</VirtualTargets>
<Unit filename="../../../AStyle/src/ASBeautifier.cpp" />
<Unit filename="../../../AStyle/src/ASEnhancer.cpp" />
<Unit filename="../../../AStyle/src/ASFormatter.cpp" />
<Unit filename="../../../AStyle/src/ASResource.cpp" />
<Unit filename="../../../AStyle/src/astyle.h" />
<Unit filename="../../../AStyle/src/astyle_main.cpp" />
<Unit filename="../../../AStyle/src/astyle_main.h" />
<Extensions>
<code_completion />
<envvars />
<debugger />
</Extensions>
</Project>
</CodeBlocks_project_file>
-53
View File
@@ -1,53 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="Bcc AStyle" />
<Option pch_mode="0" />
<Option compiler="embarcadero_compiler_x64_680" />
<Build>
<Target title="AStyle">
<Option output="bin/AStyle" prefix_auto="0" extension_auto="1" />
<Option object_output="obj" />
<Option deps_output="dep" />
<Option type="1" />
<Option compiler="embarcadero_compiler_x64_680" />
<Option parameters="-atOP ..\..\test-c\*.cpp ..\..\test-c\*.h" />
<Option projectResourceIncludeDirsRelation="1" />
<Compiler>
<Add option="-w" />
<Add option="-tWM" />
<Add option="-tWC" />
<Add option="-DNDEBUG" />
</Compiler>
<Linker>
<Add option="-c" />
<Add option="-Gn" />
<Add option="-x" />
<Add library="cw64mt" />
<Add library="import64" />
</Linker>
<ExtraCommands>
<Add after="cmd /c copy /y bin\AStyle.exe ..\..\src-p\ &gt; NUL" />
<Mode after="always" />
</ExtraCommands>
</Target>
</Build>
<VirtualTargets>
<Add alias="All" targets="AStyle;" />
</VirtualTargets>
<Unit filename="../../../AStyle/src/ASBeautifier.cpp" />
<Unit filename="../../../AStyle/src/ASEnhancer.cpp" />
<Unit filename="../../../AStyle/src/ASFormatter.cpp" />
<Unit filename="../../../AStyle/src/ASLocalizer.cpp" />
<Unit filename="../../../AStyle/src/ASResource.cpp" />
<Unit filename="../../../AStyle/src/astyle.h" />
<Unit filename="../../../AStyle/src/astyle_main.cpp" />
<Unit filename="../../../AStyle/src/astyle_main.h" />
<Extensions>
<code_completion />
<envvars />
<debugger />
</Extensions>
</Project>
</CodeBlocks_project_file>
@@ -1,16 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_workspace_file>
<Workspace title="Bcc AStyleDev All">
<Project filename="Bcc AStyle.cbp" />
<Project filename="Bcc AStyle Dll.cbp" />
<Project filename="Bcc AStyle Java.cbp" />
<Project filename="Bcc AStyle Lib.cbp" />
<Project filename="Bcc ExampleDll.cbp">
<Depends filename="Bcc AStyle Dll.cbp" />
</Project>
<Project filename="Bcc ExampleLib.cbp">
<Depends filename="Bcc AStyle Lib.cbp" />
</Project>
<Project filename="Bcc ExampleObj.cbp" />
</Workspace>
</CodeBlocks_workspace_file>
-49
View File
@@ -1,49 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="Bcc ExampleDll" />
<Option pch_mode="0" />
<Option default_target="ExampleD" />
<Option compiler="embarcadero_compiler_x64_680" />
<Build>
<Target title="ExampleD">
<Option output="bin/ExampleD.exe" prefix_auto="0" extension_auto="0" />
<Option object_output="objDll" />
<Option deps_output="dep" />
<Option type="1" />
<Option compiler="embarcadero_compiler_x64_680" />
<Option projectCompilerOptionsRelation="1" />
<Option projectLinkerOptionsRelation="1" />
<Option projectIncludeDirsRelation="1" />
<Option projectResourceIncludeDirsRelation="1" />
<Option projectLibDirsRelation="1" />
<Compiler>
<Add option="-w" />
<Add option="-tWD" />
<Add option="-v-" />
<Add option="-O2" />
<Add option="-DNDEBUG" />
</Compiler>
<Linker>
<Add option="-c" />
<Add option="-Gn" />
<Add option="-x" />
<Add library="cw64mt" />
<Add library="import64" />
<Add library="bin/AStyle32.a" />
<Add directory="bin" />
</Linker>
</Target>
</Build>
<VirtualTargets>
<Add alias="All" targets="ExampleD;" />
</VirtualTargets>
<Unit filename="../../src-c/Example.cpp" />
<Extensions>
<code_completion />
<envvars />
<debugger />
</Extensions>
</Project>
</CodeBlocks_project_file>
-47
View File
@@ -1,47 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="Bcc ExampleLib" />
<Option pch_mode="0" />
<Option default_target="ExampleL" />
<Option compiler="embarcadero_compiler_x64_680" />
<Build>
<Target title="ExampleL">
<Option output="bin/ExampleL.exe" prefix_auto="0" extension_auto="0" />
<Option object_output="objlib" />
<Option type="1" />
<Option compiler="embarcadero_compiler_x64_680" />
<Option projectCompilerOptionsRelation="1" />
<Option projectLinkerOptionsRelation="1" />
<Option projectIncludeDirsRelation="1" />
<Compiler>
<Add option="-w" />
<Add option="-tWM" />
<Add option="-tWC" />
<Add option="-O2" />
<Add option="-v-" />
<Add option="-DNDEBUG" />
</Compiler>
<Linker>
<Add option="-c" />
<Add option="-Gn" />
<Add option="-x" />
<Add library="cw64mt" />
<Add library="import64" />
<Add library="astyle" />
<Add directory="bin" />
</Linker>
</Target>
</Build>
<VirtualTargets>
<Add alias="All" targets="ExampleL;" />
</VirtualTargets>
<Unit filename="../../src-c/Example.cpp" />
<Extensions>
<code_completion />
<envvars />
<debugger />
</Extensions>
</Project>
</CodeBlocks_project_file>
-55
View File
@@ -1,55 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="Bcc ExampleObj" />
<Option pch_mode="0" />
<Option compiler="embarcadero_compiler_x64_680" />
<Build>
<Target title="ExampleO">
<Option output="bin/ExampleO.exe" prefix_auto="0" extension_auto="0" />
<Option object_output="objObj" />
<Option deps_output="dep" />
<Option type="1" />
<Option compiler="embarcadero_compiler_x64_680" />
<Option projectCompilerOptionsRelation="1" />
<Option projectLinkerOptionsRelation="1" />
<Option projectIncludeDirsRelation="1" />
<Option projectResourceIncludeDirsRelation="1" />
<Option projectLibDirsRelation="1" />
<Compiler>
<Add option="-w" />
<Add option="-tWM" />
<Add option="-tWC" />
<Add option="-v-" />
<Add option="-O2" />
<Add option="-DASTYLE_LIB" />
<Add option="-DNDEBUG" />
</Compiler>
<Linker>
<Add option="-c" />
<Add option="-Gn" />
<Add option="-x" />
<Add library="cw64mt" />
<Add library="import64" />
</Linker>
</Target>
</Build>
<VirtualTargets>
<Add alias="All" targets="ExampleO;" />
</VirtualTargets>
<Unit filename="../../../AStyle/src/ASBeautifier.cpp" />
<Unit filename="../../../AStyle/src/ASEnhancer.cpp" />
<Unit filename="../../../AStyle/src/ASFormatter.cpp" />
<Unit filename="../../../AStyle/src/ASResource.cpp" />
<Unit filename="../../../AStyle/src/astyle.h" />
<Unit filename="../../../AStyle/src/astyle_main.cpp" />
<Unit filename="../../../AStyle/src/astyle_main.h" />
<Unit filename="../../src-c/Example.cpp" />
<Extensions>
<code_completion />
<envvars />
<debugger />
</Extensions>
</Project>
</CodeBlocks_project_file>
@@ -1,53 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="Bcc AStyle Dll" />
<Option pch_mode="0" />
<Option compiler="embarcadero_compiler_x86_bcc32c" />
<Build>
<Target title="AStyleD">
<Option output="bin/AStyle32.dll" prefix_auto="0" extension_auto="0" />
<Option object_output="objDll" />
<Option type="3" />
<Option compiler="embarcadero_compiler_x86_bcc32c" />
<Option createStaticLib="1" />
<Compiler>
<Add option="-w" />
<Add option="-tWD" />
<Add option="-O2" />
<Add option="-DNDEBUG" />
<Add option="-DASTYLE_LIB" />
</Compiler>
<Linker>
<Add option="-c" />
<Add option="-Gn" />
<Add option="-x" />
<Add option="-Gi" />
<Add library="cw32mt" />
<Add library="import32" />
</Linker>
<ExtraCommands>
<Add after="cmd /c copy /y bin\AStyle32.dll ..\..\src-p\ &gt; NUL" />
<Add after="cmd /c copy /y bin\AStyle32.dll ..\..\src-s\ &gt; NUL" />
<Add after="cmd /c copy /y bin\AStyle32.dll ..\..\src-s2\ &gt; NUL" />
</ExtraCommands>
</Target>
</Build>
<VirtualTargets>
<Add alias="All" targets="AStyleD;" />
</VirtualTargets>
<Unit filename="../../../AStyle/src/ASBeautifier.cpp" />
<Unit filename="../../../AStyle/src/ASEnhancer.cpp" />
<Unit filename="../../../AStyle/src/ASFormatter.cpp" />
<Unit filename="../../../AStyle/src/ASResource.cpp" />
<Unit filename="../../../AStyle/src/astyle.h" />
<Unit filename="../../../AStyle/src/astyle_main.cpp" />
<Unit filename="../../../AStyle/src/astyle_main.h" />
<Extensions>
<code_completion />
<envvars />
<debugger />
</Extensions>
</Project>
</CodeBlocks_project_file>
@@ -1,54 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="Bcc AStyle Java" />
<Option pch_mode="0" />
<Option compiler="embarcadero_compiler_x86_bcc32c" />
<Build>
<Target title="AStyleJ">
<Option output="bin/AStyle32j.dll" prefix_auto="0" extension_auto="0" />
<Option object_output="objJava" />
<Option type="3" />
<Option compiler="embarcadero_compiler_x86_bcc32c" />
<Compiler>
<Add option="-w" />
<Add option="-tWD" />
<Add option="-O2" />
<Add option="-DNDEBUG" />
<Add option="-DASTYLE_JNI" />
<Add directory="$(JAVA_HOME)/include" />
<Add directory="$(JAVA_HOME)/include/win32" />
</Compiler>
<Linker>
<Add option="-c" />
<Add option="-Gn" />
<Add option="-x" />
<Add library="cw32mt" />
<Add library="import32" />
</Linker>
<ExtraCommands>
<Add after="cmd /c copy /y bin\AStyle32j.dll ..\..\src-j\ &gt; NUL" />
</ExtraCommands>
</Target>
</Build>
<VirtualTargets>
<Add alias="All" targets="AStyleJ;" />
</VirtualTargets>
<Compiler>
<Add directory="../../include" />
</Compiler>
<Unit filename="../../../AStyle/src/ASBeautifier.cpp" />
<Unit filename="../../../AStyle/src/ASEnhancer.cpp" />
<Unit filename="../../../AStyle/src/ASFormatter.cpp" />
<Unit filename="../../../AStyle/src/ASResource.cpp" />
<Unit filename="../../../AStyle/src/astyle.h" />
<Unit filename="../../../AStyle/src/astyle_main.cpp" />
<Unit filename="../../../AStyle/src/astyle_main.h" />
<Extensions>
<code_completion />
<envvars />
<debugger />
</Extensions>
</Project>
</CodeBlocks_project_file>
@@ -1,39 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="Bcc AStyle Lib" />
<Option pch_mode="2" />
<Option compiler="embarcadero_compiler_x86_bcc32c" />
<Build>
<Target title="AStyleL">
<Option output="bin/astyle.lib" prefix_auto="0" extension_auto="0" />
<Option working_dir="" />
<Option object_output="objLib" />
<Option type="2" />
<Option compiler="embarcadero_compiler_x86_bcc32c" />
<Compiler>
<Add option="-w" />
<Add option="-O2" />
<Add option="-DNDEBUG" />
<Add option="-DASTYLE_LIB" />
</Compiler>
</Target>
</Build>
<VirtualTargets>
<Add alias="All" targets="AStyleL;" />
</VirtualTargets>
<Unit filename="../../../AStyle/src/ASBeautifier.cpp" />
<Unit filename="../../../AStyle/src/ASEnhancer.cpp" />
<Unit filename="../../../AStyle/src/ASFormatter.cpp" />
<Unit filename="../../../AStyle/src/ASResource.cpp" />
<Unit filename="../../../AStyle/src/astyle.h" />
<Unit filename="../../../AStyle/src/astyle_main.cpp" />
<Unit filename="../../../AStyle/src/astyle_main.h" />
<Extensions>
<code_completion />
<envvars />
<debugger />
</Extensions>
</Project>
</CodeBlocks_project_file>
-53
View File
@@ -1,53 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="Bcc AStyle" />
<Option pch_mode="0" />
<Option compiler="embarcadero_compiler_x86_bcc32c" />
<Build>
<Target title="AStyle">
<Option output="bin/AStyle" prefix_auto="0" extension_auto="1" />
<Option object_output="obj" />
<Option deps_output="dep" />
<Option type="1" />
<Option compiler="embarcadero_compiler_x86_bcc32c" />
<Option parameters="-A2tOP ..\..\test-data\*.cpp ..\..\test-data\*.h" />
<Option projectResourceIncludeDirsRelation="1" />
<Compiler>
<Add option="-w" />
<Add option="-tWM" />
<Add option="-tWC" />
<Add option="-DNDEBUG" />
</Compiler>
<Linker>
<Add option="-c" />
<Add option="-Gn" />
<Add option="-x" />
<Add library="cw32mt" />
<Add library="import32" />
</Linker>
<ExtraCommands>
<Add after="cmd /c copy /y bin\AStyle.exe ..\..\src-p\ &gt; NUL" />
<Mode after="always" />
</ExtraCommands>
</Target>
</Build>
<VirtualTargets>
<Add alias="All" targets="AStyle;" />
</VirtualTargets>
<Unit filename="../../../AStyle/src/ASBeautifier.cpp" />
<Unit filename="../../../AStyle/src/ASEnhancer.cpp" />
<Unit filename="../../../AStyle/src/ASFormatter.cpp" />
<Unit filename="../../../AStyle/src/ASLocalizer.cpp" />
<Unit filename="../../../AStyle/src/ASResource.cpp" />
<Unit filename="../../../AStyle/src/astyle.h" />
<Unit filename="../../../AStyle/src/astyle_main.cpp" />
<Unit filename="../../../AStyle/src/astyle_main.h" />
<Extensions>
<code_completion />
<envvars />
<debugger />
</Extensions>
</Project>
</CodeBlocks_project_file>
@@ -1,16 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_workspace_file>
<Workspace title="Bcc AStyleDev All">
<Project filename="Bcc AStyle.cbp" />
<Project filename="Bcc AStyle Dll.cbp" />
<Project filename="Bcc AStyle Java.cbp" />
<Project filename="Bcc AStyle Lib.cbp" />
<Project filename="Bcc ExampleDll.cbp">
<Depends filename="Bcc AStyle Dll.cbp" />
</Project>
<Project filename="Bcc ExampleLib.cbp">
<Depends filename="Bcc AStyle Lib.cbp" />
</Project>
<Project filename="Bcc ExampleObj.cbp" />
</Workspace>
</CodeBlocks_workspace_file>
@@ -1,49 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="Bcc ExampleDll" />
<Option pch_mode="0" />
<Option default_target="ExampleD" />
<Option compiler="embarcadero_compiler_x86_bcc32c" />
<Build>
<Target title="ExampleD">
<Option output="bin/ExampleD.exe" prefix_auto="0" extension_auto="0" />
<Option object_output="objDll" />
<Option deps_output="dep" />
<Option type="1" />
<Option compiler="embarcadero_compiler_x86_bcc32c" />
<Option projectCompilerOptionsRelation="1" />
<Option projectLinkerOptionsRelation="1" />
<Option projectIncludeDirsRelation="1" />
<Option projectResourceIncludeDirsRelation="1" />
<Option projectLibDirsRelation="1" />
<Compiler>
<Add option="-w" />
<Add option="-tWD" />
<Add option="-v-" />
<Add option="-O2" />
<Add option="-DNDEBUG" />
</Compiler>
<Linker>
<Add option="-c" />
<Add option="-Gn" />
<Add option="-x" />
<Add library="cw32mt" />
<Add library="import32" />
<Add library="bin/AStyle32.lib" />
<Add directory="bin" />
</Linker>
</Target>
</Build>
<VirtualTargets>
<Add alias="All" targets="ExampleD;" />
</VirtualTargets>
<Unit filename="../../src-c/Example.cpp" />
<Extensions>
<code_completion />
<envvars />
<debugger />
</Extensions>
</Project>
</CodeBlocks_project_file>
@@ -1,47 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="Bcc ExampleLib" />
<Option pch_mode="0" />
<Option default_target="ExampleL" />
<Option compiler="embarcadero_compiler_x86_bcc32c" />
<Build>
<Target title="ExampleL">
<Option output="bin/ExampleL.exe" prefix_auto="0" extension_auto="0" />
<Option object_output="objlib" />
<Option type="1" />
<Option compiler="embarcadero_compiler_x86_bcc32c" />
<Option projectCompilerOptionsRelation="1" />
<Option projectLinkerOptionsRelation="1" />
<Option projectIncludeDirsRelation="1" />
<Compiler>
<Add option="-w" />
<Add option="-tWM" />
<Add option="-tWC" />
<Add option="-v-" />
<Add option="-O2" />
<Add option="-DNDEBUG" />
</Compiler>
<Linker>
<Add option="-c" />
<Add option="-Gn" />
<Add option="-x" />
<Add library="cw32mt" />
<Add library="import32" />
<Add library="astyle" />
<Add directory="bin" />
</Linker>
</Target>
</Build>
<VirtualTargets>
<Add alias="All" targets="ExampleL;" />
</VirtualTargets>
<Unit filename="../../src-c/Example.cpp" />
<Extensions>
<code_completion />
<envvars />
<debugger />
</Extensions>
</Project>
</CodeBlocks_project_file>
@@ -1,55 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="Bcc ExampleObj" />
<Option pch_mode="0" />
<Option compiler="embarcadero_compiler_x86_bcc32c" />
<Build>
<Target title="ExampleO">
<Option output="bin/ExampleO.exe" prefix_auto="0" extension_auto="0" />
<Option object_output="objObj" />
<Option deps_output="dep" />
<Option type="1" />
<Option compiler="embarcadero_compiler_x86_bcc32c" />
<Option projectCompilerOptionsRelation="1" />
<Option projectLinkerOptionsRelation="1" />
<Option projectIncludeDirsRelation="1" />
<Option projectResourceIncludeDirsRelation="1" />
<Option projectLibDirsRelation="1" />
<Compiler>
<Add option="-w" />
<Add option="-tWM" />
<Add option="-tWC" />
<Add option="-v-" />
<Add option="-O2" />
<Add option="-DASTYLE_LIB" />
<Add option="-DNDEBUG" />
</Compiler>
<Linker>
<Add option="-c" />
<Add option="-Gn" />
<Add option="-x" />
<Add library="cw32mt" />
<Add library="import32" />
</Linker>
</Target>
</Build>
<VirtualTargets>
<Add alias="All" targets="ExampleO;" />
</VirtualTargets>
<Unit filename="../../../AStyle/src/ASBeautifier.cpp" />
<Unit filename="../../../AStyle/src/ASEnhancer.cpp" />
<Unit filename="../../../AStyle/src/ASFormatter.cpp" />
<Unit filename="../../../AStyle/src/ASResource.cpp" />
<Unit filename="../../../AStyle/src/astyle.h" />
<Unit filename="../../../AStyle/src/astyle_main.cpp" />
<Unit filename="../../../AStyle/src/astyle_main.h" />
<Unit filename="../../src-c/Example.cpp" />
<Extensions>
<code_completion />
<envvars />
<debugger />
</Extensions>
</Project>
</CodeBlocks_project_file>
Loaded 100 of 1401 files, more files were not shown because too many files have changed in this diff. Show more