Compare commits

..
993 Commits
Author SHA1 Message Date
André Simon 21f0cf129e fixed C++17 standard for VS2022 static x64 target
removed VS2017 and VS2019 projects
2026-02-23 22:05:55 +01:00
Andre Simon aeeee01bd0 added nodiscard attributes for public const getters 2026-02-17 22:34:47 +01:00
Andre Simon 6aa257d0cc https://sourceforge.net/p/astyle/bugs/596/ fix indent of code after raw string end delimiter at beginning of a line 2026-02-11 22:48:30 +01:00
Andre Simon 3305a69619 https://sourceforge.net/p/astyle/bugs/596/ fix indent of concatenated raw strings 2026-01-30 23:03:18 +01:00
Andre Simon d01215ec5d https://gitlab.com/saalen/astyle/-/issues/102 fixed padding of C# template delimiters with --pad-oper 2026-01-28 22:59:29 +01:00
Andre Simon e1cc28c966 updated changelog
Signed-off-by: Andre Simon <as@andre-simon.de>
2026-01-26 21:34:43 +01:00
Andre Simon 11ae71ff8a updated docs and copyright
Signed-off-by: Andre Simon <as@andre-simon.de>
2026-01-14 22:57:29 +01:00
Andre Simon f731a65998 https://sourceforge.net/p/astyle/bugs/605/ fix indent after comma with align type option
Signed-off-by: Andre Simon <as@andre-simon.de>
2026-01-08 23:38:47 +01:00
Andre Simon 262f849922 https://sourceforge.net/p/astyle/bugs/604/ fix preprocessor indent with align-pointer option
Signed-off-by: Andre Simon <as@andre-simon.de>
2026-01-08 23:06:32 +01:00
Andre Simon 1d12ef81c2 updated version and docs 2025-10-26 22:30:09 +01:00
Andre Simon d8542df073 https://gitlab.com/saalen/astyle/-/issues/85 fixed regression related to template delimiters 2025-10-26 22:12:50 +01:00
Andre Simon 7460935160 revert --diff merge request changes 2025-10-26 22:02:45 +01:00
André Simon 5b4a4f9948 Merge branch 'master' into 'master'
Add --diff option to astyle to process only changed lines

See merge request saalen/astyle!18
2025-10-21 22:21:06 +02:00
Artem Blagodarenko c5474ea775 Add --diff option to astyle to process only changed lines
- Add --diff command-line option to process git diff input from stdin
- Implement git diff parser to extract changed line ranges
- Add selective formatting that only processes modified line ranges
- Preserve unchanged parts of files, even if they have formatting issues
- Support all existing astyle formatting options (--style, --indent, etc.)
- Add C++17 filesystem support to Makefile for file operations
- Enable usage: git diff --cached | astyle --diff $ASTYLE_OPTS

This allows astyle to be used in git pre-commit hooks to automatically
format only the lines that are being committed, similar to how
checkpatch works in the Lustre FS project.
2025-10-07 19:48:27 -04:00
André Simon 2cdcebc75f Merge branch 'add_default_issue_template' into 'master'
Add default issue template

See merge request saalen/astyle!17
2025-09-03 22:54:26 +02:00
Andre Simon 07978c6052 https://gitlab.com/saalen/astyle/-/issues/99 fix indent of continued string literal as argument 2025-09-01 23:29:28 +02:00
André Simon 7ba7e8f3ce Merge branch 'fix_header_function_pointer' into 'master'
Fix passing copy of pointer in handle functions

Closes #97

See merge request saalen/astyle!16
2025-09-01 23:13:28 +02:00
Clarence "Sparr" Risher a1166dee85 Add default issue template 2025-08-28 09:22:23 -04:00
Clarence "Sparr" Risher ba317781d8 Fix passing copy of pointer in handle functions 2025-08-27 22:17:45 -04:00
Andre Simon 007a4c7426 https://gitlab.com/saalen/astyle/-/issues/96 improve block indent with --indent-preproc-define 2025-08-25 23:07:37 +02:00
Andre Simon 8330606557 https://gitlab.com/saalen/astyle/-/issues/95 increase version number in makefiles 2025-08-21 00:09:44 +02:00
Andre Simon b045f89f3e updated version 2025-07-30 21:40:55 +02:00
Andre Simon 7b4eba89c5 improved lambda indentation for contained if-else 2025-07-30 21:39:22 +02:00
Andre Simon 042b7fd88c improved lambda indentation for more cases 2025-07-29 23:11:54 +02:00
Andre Simon 89c3567b44 https://gitlab.com/saalen/astyle/-/issues/92 fix regression related to diff markers 2025-07-23 21:41:51 +02:00
Andre Simon 1b7ea43b84 updated docs and version 2025-07-21 21:39:10 +02:00
Andre Simon 0e8a3a6038 https://sourceforge.net/p/astyle/bugs/600/ fixed comment recognition after macro definition 2025-07-21 21:32:56 +02:00
Andre Simon 326cc8cb79 Merge branch 'master' of https://gitlab.com/saalen/astyle 2025-07-10 23:54:16 +02:00
Andre Simon 0cdbff7b45 https://gitlab.com/saalen/astyle/-/issues/91 fix indent of switch statements within structs 2025-07-10 23:53:38 +02:00
Andre Simon b4d68172c7 fixed memory loss 2025-07-10 23:20:49 +02:00
Andre Simon bc6eb5c045 improved lambda indentation 2025-07-10 01:15:00 +02:00
André Simon 67f1694009 fixed Win32 build 2025-06-16 23:38:57 +02:00
Andre Simon 0da97a5952 https://gitlab.com/saalen/astyle/-/issues/88 ignore lines with git conflict markers 2025-06-07 00:08:03 +02:00
Andre Simon 80847bfe03 https://gitlab.com/saalen/astyle/-/issues/89 fix formatting issue with sizeof followed by pointer with --pad-oper 2025-06-06 22:05:57 +02:00
Andre Simon 63791ecf68 replaced platform file functions by C++ filesystem library 2025-04-23 22:57:09 +02:00
Andre Simon b3026a1dd6 updated version and docs 2025-04-22 21:08:21 +02:00
André Simon 4057477fd2 Merge branch 'fix-mode-param-in-completions' into 'master'
sh-completion: Fix --mode parameter in generation script

See merge request saalen/astyle!15
2025-04-15 22:56:50 +02:00
Andre Simon 1e0ecbd44d Merge branch 'master' of https://gitlab.com/saalen/astyle 2025-04-14 21:24:13 +02:00
Andre Simon 78c12ef696 https://gitlab.com/saalen/astyle/-/issues/85 disable old isInTemplate flag only within structs 2025-04-14 21:23:36 +02:00
Heiko Becker 36b573db17 Re-generate completions after the previous commit 2025-04-07 21:59:49 +02:00
Heiko Becker aa507b5cb1 sh-completion: Fix --mode parameter in generation script
Noticed this when trying to do

❯  astyle -<TAB>

and getting

_arguments:comparguments:327: invalid argument: mode[Set input syntax mode]: :(c java cs objc js
2025-04-07 21:57:21 +02:00
Andre Simon 072b54d904 updated docs layout 2025-04-01 22:15:53 +02:00
André Simon 06fcee74b8 update compiler settings for VS2022 2025-03-26 20:51:33 +01:00
Andre Simon 0a1f58f69b updated version and docs 2025-03-25 23:10:22 +01:00
Andre Simon 0708e3e0d0 https://gitlab.com/saalen/astyle/-/issues/83 adjust --break-blocks to break structs and functions only with all option 2025-03-25 21:34:42 +01:00
Andre Simon 7c1575c947 https://sourceforge.net/p/astyle/bugs/594/ fix space between pointer references with --align-pointer=type 2025-03-23 22:59:20 +01:00
Andre Simon fe49f0e7fb https://sourceforge.net/p/astyle/bugs/595/ define <<< and >>> operators for Java only 2025-03-21 21:57:57 +01:00
Andre Simon 4baf2a6961 https://sourceforge.net/p/astyle/bugs/585/ disable old isInTemplate flag to fix indentation of class modifiers within structs 2025-03-20 00:44:03 +01:00
Andre Simon 045692988a https://sourceforge.net/p/astyle/bugs/585/ another approach to fix indentation of class modifiers within structs 2025-03-16 23:39:52 +01:00
Andre Simon 3aaca754c4 https://sourceforge.net/p/astyle/bugs/585/ fixed indentation of class modifiers within structs 2025-03-13 23:15:07 +01:00
Andre Simon 861293c462 https://sourceforge.net/p/astyle/bugs/586/ fixed parsing of nested structs 2025-03-13 22:43:03 +01:00
Andre Simon 44dc956fa8 https://gitlab.com/saalen/astyle/-/issues/69 yet another approach to fix interpretation of closing nested templates as operator 2025-03-12 23:03:48 +01:00
Andre Simon 41d1323acb https://gitlab.com/saalen/astyle/-/issues/82 fixed indent of multiline strings with macros 2025-03-11 23:58:14 +01:00
Andre Simon eda0df3d02 updated version and docs 2025-02-26 22:33:08 +01:00
Andre Simon 0728a211bf reformatted code 2025-02-26 22:24:07 +01:00
Andre Simon 6901dea663 https://gitlab.com/saalen/astyle/-/issues/81 fix issue with --pad-oper and *= operand 2025-02-26 22:09:34 +01:00
Andre Simon aef1e81aed https://sourceforge.net/p/astyle/bugs/584 do not remove space after opening parens and align-pointer=type 2025-02-26 00:16:03 +01:00
Andre Simon da99d1aed2 https://gitlab.com/saalen/astyle/-/issues/80 disable --unpad-paren in structs for leading whitespace 2025-02-23 22:51:17 +01:00
Andre Simon ca832e1f73 https://gitlab.com/saalen/astyle/-/issues/80 disable --unpad-paren in structs 2025-02-20 22:55:32 +01:00
Andre Simon a0e1fe837b https://gitlab.com/saalen/astyle/-/issues/72 added operator --preserve-ws 2025-02-19 22:43:14 +01:00
André Simon 4f15a66797 https://gitlab.com/saalen/astyle/-/issues/79 fix compilation in VS2022 2025-02-18 23:58:54 +01:00
Andre Simon a189ef0c71 https://gitlab.com/saalen/astyle/-/issues/79 used standard filesystem API to retrieve absolute file paths 2025-02-12 22:24:12 +01:00
Andre Simon ab052780eb https://gitlab.com/saalen/astyle/-/issues/69 another approach to fix interpretation of closing nested templates as operator 2025-02-10 23:04:50 +01:00
Andre Simon 32eaa9372d https://gitlab.com/saalen/astyle/-/issues/69 more generic approach to fix interpretation of closing nested templates as operator 2025-02-07 23:40:09 +01:00
Andre Simon 6792a229b5 https://gitlab.com/saalen/astyle/-/issues/69 fix interpretation of closing nested templates as operator 2025-02-05 22:51:11 +01:00
Andre Simon 785429ed1a https://gitlab.com/saalen/astyle/-/issues/78 adjust pad-include section in the docs 2025-02-05 21:58:40 +01:00
Andre Simon 1f0696aea8 https://gitlab.com/saalen/astyle/-/issues/73 adjust --pad-include to ignore macros in include directives 2025-01-30 20:41:02 +01:00
Andre Simon fd1b70e792 https://gitlab.com/saalen/astyle/-/issues/74 prevent --squeeze-ws of removing whitespace before comments 2025-01-30 20:20:00 +01:00
André Simon cb7f842436 updated year of copyright 2025-01-28 23:36:20 +01:00
André Simon eeb458ac04 avoid VS2022 compilation warnings 2025-01-28 23:31:25 +01:00
André Simon d75b8728d2 Merge branch 'master' of https://gitlab.com/saalen/astyle 2025-01-27 21:23:18 +01:00
André Simon 13c695fd0e added c++17 flags in VS2022 project files 2025-01-27 21:21:14 +01:00
Andre Simon 881d98ac3d https://gitlab.com/saalen/astyle/-/issues/68 add --error-on-changes option 2025-01-13 22:54:27 +01:00
Andre Simon af57722432 Merge branch 'master' of https://gitlab.com/saalen/astyle 2024-12-16 07:03:08 +01:00
saalen 64a13d8517 updated version and docs 2024-12-13 16:49:48 +01:00
saalen 9e97f4ae64 https://sourceforge.net/p/astyle/bugs/517/ adjust delete-empty-lines feature description 2024-12-13 14:57:56 +01:00
saalen 8834b95683 #61 fixed indent after assignment operators (correct cause) 2024-12-12 16:39:18 +01:00
saalen 3d062c52d1 https://gitlab.com/saalen/astyle/-/merge_requests/14/ fixed merge conflict 2024-12-12 15:29:09 +01:00
André Simon 7cbe721d0d Merge branch 'feature/add-charset-as-utf-8' into 'master'
add /utf-8 option to compile on non-English version of VS2022

See merge request saalen/astyle!13
2024-12-10 08:47:36 +00:00
Masaru Tsuchiyama 3873b436e8 add /utf-8 option to compile on non-English version of VS2022
I confirmed it on Japansese version of VS2022.
2024-12-08 20:21:06 +09:00
Andre Simon 98f907e9f6 Merge branch 'master' of https://gitlab.com/saalen/astyle 2024-12-05 19:47:23 +01:00
saalen 59d0f99032 https://gitlab.com/saalen/astyle/-/issues/51 adjust cmake c++17 standard flags 2024-11-29 11:18:30 +01:00
saalen a800d64ca3 https://gitlab.com/saalen/astyle/-/issues/65 fixed indent of multi line strings after preprocessor or comment sections 2024-11-29 10:23:44 +01:00
saalen 35a19724ff https://sourceforge.net/p/astyle/tickets/124/ Fix --align-pointer=middle with existing whitespace 2024-11-28 16:06:07 +01:00
saalen 58890f2b05 updated version and docs 2024-11-28 14:50:14 +01:00
saalen 85e0e8ad3b https://sourceforge.net/p/astyle/tickets/70/ added option --accept-empty-list 2024-11-28 14:44:12 +01:00
saalen d0b3a7e6db https://gitlab.com/saalen/astyle/-/issues/63 fixed indent regression due to method extraction 2024-11-27 14:35:13 +01:00
saalen 62e192de61 #62 fixed indent in blocks after assignment operators 2024-11-25 13:39:49 +01:00
saalen 155c74be1b #61 fixed indent after assignment operators 2024-11-19 16:45:30 +01:00
Andre Simon 5f7ed88b69 updated notes
Signed-off-by: Andre Simon <as@andre-simon.de>
2024-11-01 12:04:19 +01:00
saalen 7beaf8b557 updated docs layout 2024-10-25 17:20:45 +02:00
saalen ff51bbecdf updated install docs 2024-10-25 13:11:17 +02:00
saalen 32f77e11bf deleted old IDE project files 2024-10-23 14:21:24 +02:00
saalen a36e55507d moved cmake scripts content into CMakeLists.txt 2024-10-23 13:07:03 +02:00
Andre Simon 7988205df1 updated c++17 compiler flags
Signed-off-by: Andre Simon <as@andre-simon.de>
2024-10-19 21:50:35 +02:00
Andre Simon 68e98ac4a0 converted readme files to unix line endings
Signed-off-by: Andre Simon <as@andre-simon.de>
2024-10-19 21:40:08 +02:00
saalen da35d0cbe6 updated docs 2024-10-18 15:15:30 +02:00
saalen 60b0658389 https://sourceforge.net/p/astyle/bugs/467/ fixed indent of brace initializers within constructor init list 2024-10-18 15:00:19 +02:00
saalen feffdd9f31 https://sourceforge.net/p/astyle/bugs/172/ improved indent of continued string literals 2024-10-17 16:48:46 +02:00
saalen d91def3d53 https://gitlab.com/saalen/astyle/-/issues/55 fixed space after opening paren for GSC 2024-10-17 13:50:54 +02:00
saalen e3de780332 updated astyle manual layout 2024-10-11 16:51:32 +02:00
saalen a96c3b959d added depraecation hint for --html 2024-10-11 16:51:12 +02:00
saalen 90d67d2d4e updated notes 2024-09-30 21:19:23 +02:00
saalen a69ed9af10 https://gitlab.com/saalen/astyle/-/issues/45 fix indent after single open parenthse 2024-09-29 16:14:00 +02:00
saalen eef8d891c5 https://sourceforge.net/p/astyle/bugs/273/ do not pad operator char * methods 2024-09-20 13:04:21 +02:00
saalen 9deaee74e5 https://sourceforge.net/p/astyle/bugs/250/ do not pad user defined type cast 2024-09-20 12:49:37 +02:00
saalen 5cde788686 https://sourceforge.net/p/astyle/bugs/148/ reformat 2024-09-19 17:49:13 +02:00
saalen a058fc310d https://sourceforge.net/p/astyle/bugs/148/ fixed bitfield line break with macros 2024-09-19 17:23:36 +02:00
saalen 80d1e38f82 fixed CI pipeline 2024-09-18 22:53:53 +02:00
saalen ed6f58014b extracted code of long methods in ASBeautifier 2024-09-17 15:35:33 +02:00
saalen 324fb75fc6 extracted code of long methods 2024-09-16 13:28:13 +02:00
saalen 446b5d02d6 https://gitlab.com/saalen/astyle/-/issues/27 removed flawed option --add-braces=nested 2024-09-13 16:50:49 +02:00
saalen ef760f1f26 refactored pad operand condition 2024-09-13 16:42:59 +02:00
saalen d8cf255be6 https://gitlab.com/saalen/astyle/-/issues/55 fixed GSC modulo padding 2024-09-13 16:03:48 +02:00
saalen 2d7211aa6c removed ASBase inheritance from ASResource 2024-09-10 22:34:31 +02:00
saalen 96d2c94500 updated copyright notes 2024-09-10 21:57:42 +02:00
saalen 723c3d9d67 apply clang-tidy readability-container-size-empty option 2024-09-10 21:51:26 +02:00
saalen 436c1a9abc apply clang-tidy modernize and performance options 2024-09-10 21:29:17 +02:00
saalen 91402fea65 Merge branch 'master' of gitlab.com:saalen/astyle 2024-09-10 16:47:23 +02:00
saalen 91acbad5d8 updated version 2024-09-10 16:46:43 +02:00
saalen f1424af25b https://gitlab.com/saalen/astyle/-/issues/35 reverted - too many regressions 2024-09-10 15:28:00 +02:00
saalen 84ae8ff727 https://gitlab.com/saalen/astyle/-/issues/53 fix padding of multiplier before fct calls 2024-09-09 16:06:45 +02:00
Andre Simon 38c12d4e2f Merge branch 'master' of https://gitlab.com/saalen/astyle 2024-09-05 21:24:34 +02:00
saalen 258aa4fc93 https://sourceforge.net/p/astyle/bugs/580/ fix pad-include with UTF-8 BOM 2024-09-04 15:46:00 +02:00
saalen b75b162f07 updated changes 2024-09-04 14:34:43 +02:00
saalen 55e03f5b74 https://sourceforge.net/p/astyle/bugs/580/ fix pad-include and pad-negation setters 2024-09-04 14:33:08 +02:00
saalen e34c3c3962 fix CI pipeline 2024-09-01 13:43:02 +02:00
saalen b7ddacb2bf updated JNI interface to offer old API and Arduino IDE interface 2024-08-31 16:19:29 +02:00
saalen b3f6f32474 updated docs 2024-08-30 16:10:42 +02:00
saalen ec5e6033ca https://sourceforge.net/p/astyle/tickets/578/ improve --align-pointer=type after parens and brackets 2024-08-30 15:55:27 +02:00
saalen 5c25e14984 updated JNI interface to use Arduino IDE conventions 2024-08-29 15:05:43 +02:00
saalen 7ed1905602 removed VMS compilation options 2024-08-29 14:01:12 +02:00
saalen 859e318894 https://sourceforge.net/p/astyle/bugs/572/ disabled alignment of multiplication operands 2024-08-29 13:59:38 +02:00
Andre Simon 3fab90db91 Merge branch 'master' of https://gitlab.com/saalen/astyle 2024-08-20 20:05:34 +02:00
saalen 1563bf4e80 apply clang-tidy modernize-use-emplace 2024-08-20 12:16:26 +02:00
saalen df35491d3b apply clang-tidy modernize-use-auto 2024-08-20 12:11:54 +02:00
saalen 913f24c3ef https://sourceforge.net/p/astyle/bugs/563 fix indent of member function call parameters 2024-08-20 10:58:48 +02:00
Andre Simon 6ea6067349 Merge branch 'master' of https://gitlab.com/saalen/astyle 2024-08-09 23:19:54 +02:00
saalen b6342ef6a3 updated docs 2024-08-09 16:06:27 +02:00
saalen b83740a620 updated version 2024-08-09 16:06:16 +02:00
saalen b714d5e4e4 combined GHC and GSC style options 2024-08-09 15:44:07 +02:00
saalen c4365b0cb3 https://sourceforge.net/p/astyle/tickets/578/ improve combination of --align-pointer=type and --pad-oper 2024-08-09 13:42:38 +02:00
saalen 6eb1268718 https://sourceforge.net/p/astyle/tickets/572/ improve multiplication recognition with --align-pointer=type 2024-08-06 15:31:53 +02:00
saalen 200d373cb7 update compiler options in build files 2024-08-02 13:56:08 +02:00
André Simon f05cf51b77 Merge branch 'gcc_build_fix' into 'master'
build/gcc: Fix Makefile to use c++17

See merge request saalen/astyle!12
2024-07-29 19:44:51 +00:00
Lars Wendler e1024fd185 build/gcc: Fix Makefile to use c++17
or else build breaks like this:

  astyle.h:332:44: error: ‘std::string_view’ has not been declared
    332 |         const std::string* findHeader(std::string_view line, int i,
        |                                            ^~~~~~~~~~~
2024-07-29 14:13:58 +02:00
Andre Simon 5a79a97e5c https://sourceforge.net/p/astyle/bugs/576/ fix some typos
Signed-off-by: Andre Simon <as@andre-simon.de>
2024-07-24 21:39:57 +02:00
André Simon e3910ee5f9 Merge branch 'cwhii-master-patch-22673' into 'master'
Add link to source code on gitlab #49

See merge request saalen/astyle!11
2024-07-11 07:34:06 +00:00
CW Holeman II 7ed82c2a70 Add link to source code on gitlab 2024-07-08 20:44:57 +00:00
saalen 7899f6637d https://gitlab.com/saalen/astyle/-/issues/47 fix indent of assignments within macros 2024-07-08 16:09:51 +02:00
Andre Simon a3c26f4a3e https://sourceforge.net/p/astyle/tickets/117/ adjust pad-include to adhere to indent-preproc-block
Signed-off-by: Andre Simon <as@andre-simon.de>
2024-07-06 16:53:30 +02:00
André Simon ea6b45b5df Merge branch 'bai/3.5.1-fixes' into 'master'
#48 fix(astyle_main.cpp): fix build against recent changes

See merge request saalen/astyle!10
2024-07-05 05:40:17 +00:00
Mingcong Bai 2c9258da22 fix(astyle_main.cpp): fix parseOption() usage against a recent change
This method used to take two parameters, now it only takes one.

Fixes: 5146121caa
2024-07-04 23:01:07 +08:00
Mingcong Bai 7e0e06dca5 fix(astyle_main.cpp): fix build against a recent change
Fixes: 8aeea822b9
2024-07-04 22:58:36 +08:00
Andre Simon 16fd02b032 update docs
Signed-off-by: Andre Simon <as@andre-simon.de>
2024-06-30 15:02:46 +02:00
Andre Simon 178d5286da #46 added gsc mode
Signed-off-by: Andre Simon <as@andre-simon.de>
2024-06-30 14:57:36 +02:00
Andre Simon 5146121caa https://sourceforge.net/p/astyle/bugs/575 fix VS19 compiler warnings 2024-06-30 11:22:57 +02:00
saalen 614e75d706 https://sourceforge.net/p/astyle/tickets/117/ added pad-include options 2024-06-24 14:26:43 +02:00
saalen cbac1114a4 updated docs 2024-06-20 15:59:15 +02:00
saalen 8aeea822b9 https://gitlab.com/saalen/astyle/-/issues/43 keep initial EOL for file name input 2024-06-19 15:31:24 +02:00
André Simon 5d96c868ac fix binary mode of stdin/stdout in Windows builds 2024-06-18 22:11:30 +02:00
saalen 96b8fde1d8 https://gitlab.com/saalen/astyle/-/issues/43 improve EOL handling, keep initial EOL 2024-06-18 15:54:29 +02:00
saalen 85b24a1e01 https://gitlab.com/saalen/astyle/-/issues/43 improve EOL handling 2024-06-18 15:38:20 +02:00
saalen bfa423b949 https://sourceforge.net/p/astyle/bugs/574/ update docs 2024-06-18 15:36:49 +02:00
saalen 893a433aa7 https://sourceforge.net/p/astyle/bugs/574/ fix crash 2024-06-17 17:01:32 +02:00
saalen 3524d66639 #42 fix recognition of Java/C# multi line strings 2024-06-05 14:42:43 +02:00
saalen 3f3f90b577 updated version number 2024-06-04 16:27:41 +02:00
saalen af17f3b833 https://sourceforge.net/p/astyle/bugs/571 add option --pad-negation=before 2024-06-04 16:16:23 +02:00
saalen 88a2903caf https://sourceforge.net/p/astyle/bugs/571 add option --pad-negation in bash completion 2024-06-03 16:22:35 +02:00
saalen 4154588caf https://sourceforge.net/p/astyle/bugs/571 add option --pad-negation in help messages 2024-06-03 16:18:34 +02:00
saalen 9369c8455f https://sourceforge.net/p/astyle/bugs/571 add option --pad-negation 2024-06-03 15:27:10 +02:00
saalen aa7e2febec https://sourceforge.net/p/astyle/bugs/573/ apply align-pointer=type only if type is present 2024-06-03 14:51:15 +02:00
saalen 4e72cf7e15 updated docs 2024-06-03 14:51:15 +02:00
saalen 683a618343 https://sourceforge.net/p/astyle/bugs/574/ avoid deletion of empty lines after continuation 2024-06-03 14:51:01 +02:00
saalen 422985f01b https://sourceforge.net/p/astyle/bugs/572/ fix alignment of logical and operators 2024-06-03 12:52:57 +02:00
saalen 9fd80e1abe updated docs and version 2024-05-16 11:15:42 +02:00
saalen 485382e2aa https://gitlab.com/saalen/astyle/-/issues/35 fix of reference args alignment 2024-05-16 11:13:13 +02:00
saalen b27cccdb9d https://sourceforge.net/p/astyle/bugs/570/ fix padding of scientific notation literals 2024-05-14 23:09:36 +02:00
saalen 8c69e067ec fix padding of lambda capture with align-pointer option 2024-05-07 13:04:16 +02:00
saalen b09b2355e0 https://sourceforge.net/p/astyle/bugs/560/ exclude files ending with backup suffix from input file names list 2024-05-03 15:59:06 +02:00
saalen 86532b948f https://gitlab.com/saalen/astyle/-/issues/35 fix of --align-pointer=type option for all types in lambda parameter lists 2024-05-03 13:14:17 +02:00
saalen 3623229876 https://sourceforge.net/p/astyle/bugs/569/ fix --break-block handling of class and function blocks 2024-05-03 09:37:56 +02:00
saalen bac6279b26 https://sourceforge.net/p/astyle/bugs/566/ fix parsing of floating point literals 2024-05-02 17:09:29 +02:00
Andre Simon 050c108c28 updated astyle readme 2024-04-28 18:01:57 +02:00
saalen bcf5bb4a5e removed getIndentedLineReturn method 2024-04-17 17:16:27 +02:00
saalen 9a77b83a8b enabled C++17 compiler switch 2024-04-09 17:38:46 +02:00
saalen fd449b0e5e replaced const string refs by string_view parameters 2024-04-09 17:27:18 +02:00
saalen 803ba0955a https://gitlab.com/saalen/astyle/-/issues/24 add cmake option to disable documentation installation 2024-04-05 16:05:06 +02:00
saalen 086ed3a3d3 https://gitlab.com/saalen/astyle/-/issues/29 fix of --indent-after-parens indent count 2024-04-04 17:00:44 +02:00
saalen 9af46ccc6c https://gitlab.com/saalen/astyle/-/issues/35 fix of --align-pointer=type option for fundamental types in lambda parameter lists 2024-04-04 16:21:55 +02:00
saalen 04aabdd005 https://sourceforge.net/p/astyle/bugs/565/ fixed split references with -k1 option 2024-03-28 13:27:32 +01:00
saalen 15cf1e018b Merge branch 'master' of gitlab.com:saalen/astyle 2024-03-06 13:01:51 +01:00
saalen f32c555bc1 https://sourceforge.net/p/astyle/bugs/564/ fixed documentation 2024-03-06 12:16:10 +01:00
saalen 7e97becbcf update documentation and notes 2024-03-06 12:07:16 +01:00
saalen 21b58e214e #39 fix comment indent after string macro with R suffix 2024-03-06 12:00:40 +01:00
saalen 16c4a56aa4 #38 do not break single line block after enum in mozilla mode 2024-03-06 10:52:33 +01:00
saalen aa58fe1aa4 #40 adjust cmake policy for new versions only 2024-03-05 15:59:52 +01:00
André Simon 87e0136e5f Merge branch 'master' into 'master'
News page: Fix typo, add last release dates

See merge request saalen/astyle!9
2024-02-24 06:39:44 +00:00
Peu 3bdf5fb041 News page: Fix typo, add last release dates 2024-02-24 06:39:43 +00:00
André Simon b66f3cb173 Merge branch 'master' into 'master'
support scikit-build-core

See merge request saalen/astyle!8
2024-02-12 15:21:55 +00:00
Wu Zhenyu 055c06d4c5 support scikit-build-core
refer https://github.com/scikit-build/scikit-build-core/issues/632#issuecomment-1936946228
we must patch code to avoid more issues down the line
2024-02-10 17:12:38 +08:00
Wu Zhenyu 93605a0147 change /usr/man to /usr/share/man to respect standard 2024-02-10 17:12:12 +08:00
saalen 1c27f34918 https://gitlab.com/saalen/astyle/-/issues/36 fixed addition of closing brace within statement blocks 2024-02-02 17:19:14 +01:00
saalen 96bd14dee1 https://gitlab.com/saalen/astyle/-/issues/36 fixed addition of closing brace after multi line statements 2024-02-01 16:49:20 +01:00
saalen 90499c92cf https://gitlab.com/saalen/astyle/-/issues/36 fixed crash with opening block in next line 2024-01-30 21:21:51 +01:00
saalen cf95606462 updated docs 2024-01-30 16:32:30 +01:00
saalen 05502078e1 https://gitlab.com/saalen/astyle/-/issues/36 fixed crash with --add-braces=nested applied to if-else blocks 2024-01-26 16:22:59 +01:00
saalen 95c9e4f6db https://gitlab.com/saalen/astyle/-/issues/33 added --pad-brackets-in and --pad-brackets-out options 2024-01-19 16:40:02 +01:00
saalen 619081a737 https://gitlab.com/saalen/astyle/-/issues/28 fixed indentation of initializer lists 2024-01-16 10:37:57 +01:00
saalen 3f2b5c92a0 https://gitlab.com/saalen/astyle/-/issues/27 updated notes.html 2024-01-05 17:28:54 +01:00
saalen 99ceeb79b4 https://gitlab.com/saalen/astyle/-/issues/27 avoid assertion error if brace already exists 2024-01-05 17:26:21 +01:00
saalen bbf726c605 https://gitlab.com/saalen/astyle/-/issues/27 add new option --add-braces=nested to add braces around nested one line stmts 2024-01-05 16:59:46 +01:00
saalen 2987c9b361 https://gitlab.com/saalen/astyle/-/issues/28 fix indent of struct members with dot prefix 2024-01-03 16:19:54 +01:00
saalen 48b574fccf updated notes.html 2024-01-02 17:27:41 +01:00
saalen 15ae8d6bdb https://gitlab.com/saalen/astyle/-/issues/28 fix indent after double template brackets 2024-01-02 17:18:19 +01:00
saalen 58710b4b86 https://gitlab.com/saalen/astyle/-/issues/28 fix indent after dot 2024-01-02 15:10:36 +01:00
Andre Simon d31b289c0d https://sourceforge.net/p/astyle/bugs/559/ fix CI pipeline 2024-01-01 21:35:36 +01:00
Andre Simon 9c6e9f942a https://sourceforge.net/p/astyle/bugs/559/ change squeeze line counter int type 2024-01-01 21:24:26 +01:00
André Simon 8218a855f7 https://sourceforge.net/p/astyle/bugs/559/ initialize squeeze line counter 2024-01-01 20:58:57 +01:00
saalen 9a26f1e6d4 https://gitlab.com/saalen/astyle/-/issues/31 add experimental GHC mode 2023-12-29 16:53:22 +01:00
saalen 6f8e619193 https://gitlab.com/saalen/astyle/-/issues/32 fix indent after raw string 2023-12-29 16:01:41 +01:00
saalen a2056ddf70 https://gitlab.com/saalen/astyle/-/issues/26 disable for another approach 2023-11-30 16:52:39 +01:00
saalen c988613837 https://gitlab.com/saalen/astyle/-/issues/26 apply only to C syntax 2023-11-28 15:33:59 +01:00
saalen cea7932ed4 https://gitlab.com/saalen/astyle/-/issues/26 fix indent of switch blocks 2023-11-27 16:38:56 +01:00
saalen 05a5acaf64 https://gitlab.com/saalen/astyle/-/issues/26 fix indent of labels within functions returning a struct 2023-11-27 14:25:06 +01:00
saalen 774bf30237 https://sourceforge.net/p/astyle/bugs/558/ fixed some typos 2023-11-10 16:28:09 +01:00
saalen 824d4b7991 https://gitlab.com/saalen/astyle/-/issues/16 fixed missing indent in function parameter list 2023-10-19 18:17:11 +02:00
saalen 3818cc1def fixed CI script 2023-10-16 17:20:16 +02:00
saalen 3905a70a59 updated astyle paths in CI test scripts 2023-10-16 17:17:23 +02:00
saalen e2870b5171 https://sourceforge.net/p/astyle/bugs/557 fixed inserting space with combined --pad-oper and --align-pointer=type option 2023-10-16 13:27:30 +02:00
saalen 859f868f26 https://sourceforge.net/p/astyle/bugs/557 fixed inserting space with combined --pad-oper and --align-pointer options 2023-10-16 13:20:24 +02:00
André Simon 5b302bf3fa Merge branch 'master' into 'master'
Master

See merge request saalen/astyle!7
2023-10-13 14:37:25 +00:00
CW Holeman II 86f28be2b8 Merge branch astyle:master into master 2023-10-12 17:57:44 +00:00
cwhii 2eb37a49f6 #21 backed out style as not for HTML comments. 2023-10-12 10:56:11 -07:00
André Simon 797da683e5 Merge branch 'master' into 'master'
Master

See merge request saalen/astyle!6
2023-10-10 13:49:03 +00:00
CW Holeman II da93cd3051 Merge branch astyle:master into master 2023-10-09 14:29:45 +00:00
cwhii b0c8794ad0 #21 Use CSS white-space/nowrap rather than special dash charcter in HTML files. 2023-10-09 07:25:28 -07:00
André Simon 025ad91b75 Merge branch 'master' into 'master'
Master

See merge request saalen/astyle!5
2023-10-05 16:10:22 +00:00
saalen 45833e5e1b https://sourceforge.net/p/astyle/bugs/97/ fixed multi line assignment indentation 2023-10-04 16:30:01 +02:00
saalen 51bb19097d simplified code 2023-10-04 16:29:15 +02:00
cwhii 2cee63dd71 #21 Spell Objective-C consistently. 2023-10-03 14:54:05 -07:00
cwhii c00b836e3c Spell Objective-C consistently. 2023-10-03 14:42:43 -07:00
CW Holeman II d83f96a5b4 Merge branch astyle:master into master 2023-10-02 17:58:31 +00:00
cwhii 9db81c02ce Typo. 2023-10-02 10:15:44 -07:00
saalen 1084cdaf92 updated version 2023-09-29 16:13:29 +02:00
saalen ae991ee51c https://gitlab.com/saalen/astyle/-/issues/16 fix line break with several array initializers in a single line block 2023-09-29 16:09:55 +02:00
saalen 1e727f453d Merge branch 'master' of gitlab.com:saalen/astyle 2023-09-28 16:52:35 +02:00
saalen 77ff0d844f https://gitlab.com/saalen/astyle/-/issues/16 fix line break after casting within an if block 2023-09-28 16:52:21 +02:00
André Simon 1b2631e578 Merge branch 'master' into 'master'
Force ASCIIdoc to passthru C++ w/o formatting.

See merge request saalen/astyle!4
2023-09-27 21:04:51 +00:00
cwhii 2f60ecae3b Forse ASCIIdoc to passthru C++ w/o formatting. 2023-09-27 13:59:26 -07:00
saalen 44da67c6fb https://gitlab.com/saalen/astyle/-/issues/19 improved expressions in docs 2023-09-22 09:34:37 +02:00
saalen 7cf2c8e678 updated version 2023-09-21 17:13:07 +02:00
saalen 9ab14f1f50 https://gitlab.com/saalen/astyle/-/issues/19 added new option --pad-empty-paren 2023-09-21 17:11:37 +02:00
saalen 3368b0bc16 updated version and notes 2023-09-21 16:39:38 +02:00
saalen 80070921d5 https://gitlab.com/saalen/astyle/-/issues/16 fix line break after set variable name 2023-09-21 16:25:53 +02:00
saalen 223a8a765c https://gitlab.com/saalen/astyle/-/issues/16 adjusted indent count 2023-09-18 22:30:39 +02:00
saalen 3ed3247931 https://gitlab.com/saalen/astyle/-/issues/18 fixed empty line after switch block 2023-09-15 14:18:32 +02:00
saalen 537c3d10d3 https://gitlab.com/saalen/astyle/-/issues/19 added outer padding for emtpy parens pairs 2023-09-14 20:33:04 +02:00
saalen 55ff6e9425 https://sourceforge.net/p/astyle/bugs/556 fixed astyle docs 2023-09-13 16:10:54 +02:00
saalen 52f0e25f7f https://gitlab.com/saalen/astyle/-/issues/18 fixed empty line after closing while block - new approach 2023-09-13 16:09:02 +02:00
saalen 061c17f5e8 updated version and notes 2023-09-08 16:38:36 +02:00
saalen e1fc3515a5 https://sourceforge.net/p/astyle/bugs/434/ fixed indentation of method calls - avoid more regressions 2023-09-08 14:25:44 +02:00
saalen 664168e298 https://sourceforge.net/p/astyle/bugs/434/ fixed indentation of method calls - avoid regression 2023-09-08 13:41:19 +02:00
saalen 2d1a88565e https://sourceforge.net/p/astyle/bugs/434/ fixed indentation of method calls 2023-09-07 16:48:07 +02:00
saalen c8a2db74c9 https://gitlab.com/saalen/astyle/-/issues/18 fixed empty line after closing while block 2023-09-04 16:34:25 +02:00
saalen c7b4dbcea1 https://sourceforge.net/p/astyle/bugs/554 fixed lambda broken brace after auto keyword 2023-09-01 16:04:28 +02:00
saalen ca002bd04d https://sourceforge.net/p/astyle/bugs/226 fixed line break after comment in asm block 2023-09-01 15:18:58 +02:00
saalen 5e6a58a962 https://sourceforge.net/p/astyle/bugs/126 fixed padding of multiply operator 2023-08-31 16:14:02 +02:00
saalen ebbd504e0f fix CS padding in array method invocation 2023-08-24 14:49:50 +02:00
saalen 4bdeb795e7 https://gitlab.com/saalen/astyle/-/issues/16 updated version 2023-08-24 14:17:02 +02:00
saalen 3e849512f2 https://gitlab.com/saalen/astyle/-/issues/16 fixed line break in value list 2023-08-23 17:13:05 +02:00
saalen 09f0e26cd5 https://gitlab.com/saalen/astyle/-/issues/16 delete unused variable 2023-08-22 14:19:56 +02:00
saalen 62e13df4f2 https://gitlab.com/saalen/astyle/-/issues/16 fixed CS indent of array init lists within parentheses 2023-08-22 14:15:49 +02:00
saalen 75500584dd https://gitlab.com/saalen/astyle/-/issues/16 reverted some changes to avoid regressions 2023-08-21 16:43:15 +02:00
saalen 37e62ef92e https://gitlab.com/saalen/astyle/-/issues/16 fixed CS indent after new keyword in using clause 2023-08-18 14:33:42 +02:00
saalen ff64d03617 https://sourceforge.net/p/astyle/bugs/553/ fixed block breaks in lambda blocks 2023-08-18 13:50:56 +02:00
saalen 8c4c45aa5e #8 fixed formatting of CS interpolation literals - testing for escaped quote 2023-08-17 18:07:43 +02:00
saalen 803e9aa64e https://gitlab.com/saalen/astyle/-/issues/16 fixed CS indent after new keyword in if clause 2023-08-17 17:13:34 +02:00
saalen 2843dfde8f https://gitlab.com/saalen/astyle/-/issues/16 fixed CS indent after new keyword checking for header types 2023-08-16 14:44:28 +02:00
saalen fad44e2ee7 https://gitlab.com/saalen/astyle/-/issues/16 fixed CS indent after new keyword 2023-08-15 15:36:45 +02:00
saalen 3067304024 https://gitlab.com/saalen/astyle/-/issues/17 added C# coalesce operator #2 2023-08-11 16:27:08 +02:00
saalen 91d458cc25 updated version and notes 2023-08-11 16:17:04 +02:00
saalen 4b25cf7cea https://gitlab.com/saalen/astyle/-/issues/17 added C# coalesce operator 2023-08-11 15:48:02 +02:00
saalen 6152d3d67c https://gitlab.com/saalen/astyle/-/issues/16 new approach 2023-08-11 15:36:37 +02:00
Andre Simon 59ea063e6e fix typos of codespell report 2023-08-03 18:14:46 +02:00
saalen da71161dda updated version and notes 2023-08-02 09:24:41 +02:00
André Simon 6f12728575 Merge branch 'master' into 'master'
Moved squeeze-lines option and added VS2022

See merge request saalen/astyle!3
2023-08-02 07:18:57 +00:00
saalen 41da8a746b https://gitlab.com/saalen/astyle/-/issues/16 updated notes 2023-08-01 17:57:01 +02:00
saalen 32fba0e9b5 https://gitlab.com/saalen/astyle/-/issues/16 C# fixed indentation of comments after interpolation quotes 2023-08-01 17:53:37 +02:00
saalen 9a0ff6b2a1 https://gitlab.com/saalen/astyle/-/issues/14 added TODO hints 2023-08-01 17:26:08 +02:00
elverimu 8a1f941db1 moved squeeze-lines option, so it can be used in library 2023-08-01 15:52:52 +02:00
elverimu 688d706f3e added VS2022 solutions 2023-08-01 15:52:35 +02:00
saalen 19850fcdb6 https://sourceforge.net/p/astyle/bugs/464/ fixed indent of C# allocation blocks 2023-07-05 16:20:02 +02:00
saalen d93540a274 https://sourceforge.net/p/astyle/bugs/504/ fixed indent of function declarations following access modifiers 2023-06-26 12:11:44 +02:00
saalen 30cf6f3baa code reformatting 2023-06-23 14:20:08 +02:00
saalen 75d3e4ed62 https://sourceforge.net/p/astyle/bugs/552/ fixed padding of & following a comma 2023-06-23 14:10:27 +02:00
Andre Simon 82fd2d21c7 updated notes 2023-06-16 21:42:37 +02:00
saalen 3675f954b6 https://sourceforge.net/p/astyle/bugs/353/ fix indent after new in previous line #2 2023-06-15 17:02:25 +02:00
saalen 5551b2b25b https://sourceforge.net/p/astyle/bugs/353/ fix indent after new in previous line 2023-06-14 16:14:35 +02:00
saalen 221457c348 updated astyle docs and shell completion 2023-06-14 10:31:25 +02:00
saalen 21a892b5b5 updated notes 2023-06-14 10:08:56 +02:00
saalen a372130733 #6 updated docs 2023-06-14 10:01:48 +02:00
saalen 69c8c34f43 https://gitlab.com/saalen/astyle/-/issues/12 fixed indentation of struct assignments 2023-06-14 10:01:14 +02:00
saalen 8e66ef8de3 #10 fixed indentation of member declarations 2023-06-12 13:57:20 +02:00
saalen e0963a5233 #11 fixed false lambda recognition 2023-06-12 11:44:57 +02:00
saalen 8f421ab582 #7 added new option --indent-lambda to to enable new lambda recognition 2023-06-12 11:44:21 +02:00
saalen 28f2c87919 #8 fixed formatting of CS interpolation literals 2023-06-06 13:37:05 +02:00
André Simon 90232de96e Merge branch 'std_namespace' into 'master'
Add missing std namespace

See merge request saalen/astyle!2
2023-05-24 12:31:51 +00:00
Antoine Belvire c03fe1133f Add missing std namespace
Fixes build on Linux.
2023-05-24 10:38:10 +00:00
saalen 0ffb5e4426 updated version string 2023-05-17 11:10:34 +02:00
saalen aa9a8beafa https://sourceforge.net/p/astyle/bugs/487/ fixed indent of brace initializer with new 2023-05-15 16:46:49 +02:00
saalen 56ddd730d9 updated release notes 2023-05-11 16:00:03 +02:00
André Simon 2ad0c5176a Merge branch 'meson_compat' into 'master'
Small CMake changes to make compatible with meson

See merge request saalen/astyle!1
2023-05-07 12:01:11 +00:00
Jacob Alexander c3383ee125 Small CMake changes to make compatible with meson
- Meson requires all subprojects to have a top-level build file
  (meson.build or CMakeLists.txt) to use them as a dependency.
- Also added a CMP0112 policy to disable warning in newer versions of CMake
2023-05-05 12:02:44 -07:00
saalen 204cf3d702 updated release notes 2023-05-05 16:51:22 +02:00
saalen 9bcfd5174e added new --pad-brackets and --unpad-brackets options 2023-05-05 16:17:57 +02:00
saalen 297825af4a https://sourceforge.net/p/astyle/bugs/537/ fixed padding of pointers separated by comma, checking for open parens 2023-05-02 14:19:18 +02:00
saalen c246d5ae46 updated help message 2023-04-24 16:41:04 +02:00
saalen 5e85ad4283 https://sourceforge.net/p/astyle/tickets/84/ added new --squeeze-lines option 2023-04-20 17:57:39 +02:00
saalen 631e24f690 https://gitlab.com/saalen/astyle/-/issues/4 fixed a regression related to #534 2023-04-20 16:46:27 +02:00
saalen df1613046f https://gitlab.com/saalen/astyle/-/issues/3 fixed a regression related to #534 2023-04-19 16:44:43 +02:00
saalen af89dfd3cb added new --squeeze-ws option 2023-04-18 17:11:35 +02:00
saalen 62713fe165 updated notes.html 2023-04-15 14:53:14 +02:00
saalen 0add646b21 refactored namespace std usage 2023-04-14 16:26:59 +02:00
saalen bb885d22ba https://sourceforge.net/p/astyle/bugs/516/ fixed indent of C++11 initializer lists 2023-04-14 14:54:24 +02:00
saalen 3f467c58de https://sourceforge.net/p/astyle/tickets/121/ fixed indent of lambda bodies in fct calls - new approach 2023-04-12 16:29:51 +02:00
saalen 8edb11ab09 version set to 3.3 beta 2023-04-06 16:52:58 +02:00
saalen 7171c3a9ec https://sourceforge.net/p/astyle/tickets/121/ fixed indent of lambda bodies in fct calls 2023-04-04 17:14:30 +02:00
saalen 62ed88a770 https://sourceforge.net/p/astyle/bugs/526/ fixed struct name indent 2023-04-04 15:24:19 +02:00
saalen 2e9fe14947 https://sourceforge.net/p/astyle/bugs/534/ fixed indent of struct initializer lists 2023-03-31 15:58:26 +02:00
saalen a865024320 Merge branch 'master' of gitlab.com:saalen/astyle 2023-03-31 14:21:10 +02:00
saalen 0c3eb8ec46 updated notes.html 2023-03-31 14:15:54 +02:00
saalen 785d52fa55 updated version number 2023-03-31 14:15:29 +02:00
saalen b637cbb6d2 #2 https://sourceforge.net/p/astyle/bugs/534/ fixed yet another regression 2023-03-31 14:03:32 +02:00
Andre Simon 9ae2751ce4 fixed merge conflict 2023-03-29 20:14:48 +02:00
saalen 3cf316a785 added local development.html 2023-03-29 15:13:25 +02:00
saalen a5b17494e3 added check for undefined HOME env var 2023-03-29 15:13:04 +02:00
saalen 6c530550af updated docs; version string 2023-03-28 17:12:39 +02:00
saalen fdbae61b21 updated astyle.html 2023-03-27 17:30:02 +02:00
saalen fd13fe36d5 updated news and notes 2023-03-27 16:02:08 +02:00
saalen a62e84df90 https://sourceforge.net/p/astyle/bugs/518/ fixed break-blocks format after struct 2023-03-24 16:26:43 +01:00
saalen 06ab3e60a1 added Objective C to conditions 2023-03-24 15:47:31 +01:00
Andre Simon 555b106346 Merge branch 'master' of https://gitlab.com/saalen/astyle 2023-03-15 20:30:52 +01:00
saalen 0d3113cfbb https://sourceforge.net/p/astyle/bugs/525/ avoid regression of align-method-colon 2023-03-15 17:27:06 +01:00
saalen 63973c381d fix pad-method-colon options in ObjectiveC mode 2023-03-15 14:07:05 +01:00
Andre Simon 9d566d77d4 Merge branch 'master' of https://gitlab.com/saalen/astyle 2023-03-14 17:48:34 +01:00
saalen f5c48f89e2 updated css definitions 2023-03-14 16:31:18 +01:00
Andre Simon 34a2afaa7e added undefined home env var check 2023-03-05 18:01:39 +01:00
saalen 26d2c5e1d6 https://sourceforge.net/p/astyle/bugs/525/ fix indent of ObjectiveC statements 2023-03-02 16:07:33 +01:00
saalen 61621517fc https://sourceforge.net/p/astyle/bugs/483/ fix parsing of C# interpolation strings 2023-03-01 16:00:08 +01:00
saalen 010c88cbee added INVALID_TYPE constant 2023-03-01 14:04:28 +01:00
Andre Simon 66796b7075 added man page to file install list 2023-02-27 21:25:43 +01:00
Andre Simon ff3cf03bb3 https://sourceforge.net/p/astyle/bugs/541/ fixed project file search on Linux 2023-02-27 20:40:39 +01:00
Andre Simon 529b93f073 fixed help messages of pad-param-type options 2023-02-23 21:32:15 +01:00
Andre Simon caafa42ade added shell completion scripts 2023-02-23 21:24:14 +01:00
saalen 378dda7c97 added --mode=objc option 2023-02-16 18:11:25 +01:00
saalen ceed0550ed updated libs-base test case 2023-02-16 18:11:15 +01:00
Andre Simon 85b22457a2 fixed project file search on Linux (https://sourceforge.net/p/astyle/bugs/541/) 2023-02-12 18:11:41 +01:00
André Simon b439d89c9d fixed project file search on windows (https://sourceforge.net/p/astyle/bugs/541/) 2023-02-12 17:35:39 +01:00
Andre Simon b6d95cc2b1 updated notes 2023-02-11 17:36:50 +01:00
Andre Simon 0a5c3c303e resolved merge conflict 2023-02-11 17:29:47 +01:00
Andre Simon 36c986f08c updated docs 2023-02-11 17:24:58 +01:00
saalen d2ea1dc7e8 reformatted code 2023-02-10 21:29:47 +01:00
saalen 51989e0120 #1 fixed project file search with wildcard input paths 2023-02-10 21:24:23 +01:00
saalen 91b0bcf74e https://sourceforge.net/p/astyle/bugs/546/ removed debug line 2023-02-10 15:55:27 +01:00
saalen 873d7a662e https://sourceforge.net/p/astyle/bugs/546/ fixed regression #2 2023-02-10 15:54:43 +01:00
saalen a2135227e5 https://sourceforge.net/p/astyle/bugs/546/ fixed regression 2023-02-09 12:36:03 +01:00
saalen 4c39b21a70 https://sourceforge.net/p/astyle/bugs/521 revert to avoid indent regression of code lines in #ifdef stmts 2023-02-08 16:50:29 +01:00
saalen fc011d3cc4 https://sourceforge.net/p/astyle/bugs/534/ fixed another regression 2023-02-06 19:23:27 +01:00
saalen 6740158058 https://sourceforge.net/p/astyle/bugs/485 fixed negative integer literal breaks initializer list 2023-02-06 18:45:16 +01:00
saalen 369d247f73 https://sourceforge.net/p/astyle/bugs/508 fixed documentation of --delete-empty-lines short option 2023-02-06 18:19:44 +01:00
saalen 946cc2d878 https://sourceforge.net/p/astyle/bugs/521 fixed preprocessor indentation 2023-02-06 17:58:49 +01:00
saalen 92bdbe869e https://sourceforge.net/p/astyle/bugs/534/ fixed regression 2023-02-06 17:54:31 +01:00
saalen 83b32c8ea9 https://sourceforge.net/p/astyle/bugs/521/ applied patch to fix preprocessor indentation 2023-02-05 20:14:16 +01:00
saalen 76431ab6db https://sourceforge.net/p/astyle/bugs/541/ fixed project file search 2023-02-05 19:44:37 +01:00
saalen 74bdc62e4b updated notes.html 2023-02-05 19:10:48 +01:00
saalen 44d857e88b https://sourceforge.net/p/astyle/tickets/130/ better description for stat errors 2023-02-05 17:28:38 +01:00
saalen c413186c0d https://sourceforge.net/p/astyle/bugs/533/ fixed break of continued preprocessor strings with colon 2023-02-05 17:13:50 +01:00
saalen a7304fb036 Merge branch 'master' of gitlab.com:saalen/astyle 2023-02-04 19:46:23 +01:00
saalen cb6953049f https://sourceforge.net/p/astyle/bugs/534/ fixed struct bitfield indentation 2023-02-04 19:43:31 +01:00
saalen 9816287f87 added man page to cmake install list 2023-02-04 19:42:04 +01:00
Andre Simon 903b1b0b9a added README.adoc in project root 2023-01-30 18:50:27 +01:00
saalen f286a31f6f https://sourceforge.net/p/astyle/bugs/549/ replace PATH_MAX by realpath 2023-01-23 15:54:06 +01:00
saalen 08ab63b302 updated maintainer list 2023-01-17 17:09:50 +01:00
saalen a9a3dc865d updated links in the documentation 2023-01-17 17:07:13 +01:00
saalen d858c87d6d updated Copyright notes 2023-01-17 16:55:48 +01:00
saalen 6c5dded993 created man page 2023-01-16 17:21:39 +01:00
saalen f4f13b2c5d removed deprecated options 2023-01-13 16:17:02 +01:00
saalen 4e7345da2c added --mode=js option 2023-01-13 16:07:58 +01:00
saalen 9bc3133ce9 removed upper limit of max-continuation-indent 2023-01-12 16:55:20 +01:00
saalen 43cd3ed7a4 revert change for #537 2023-01-12 16:39:56 +01:00
saalen cfc58a5347 adjusted regression test scripts 2023-01-09 10:24:10 +01:00
saalen 120623cbea https://sourceforge.net/p/astyle/bugs/535/ fix raw string parsing 2022-12-09 15:28:18 +01:00
saalen c35cfef8dd https://sourceforge.net/p/astyle/bugs/543/ fix recognition of rvalue operator as reference 2022-12-09 11:56:40 +01:00
saalen 82643c958e https://sourceforge.net/p/astyle/bugs/527/ fix reverting effect of AttachReturnType option 2022-12-08 17:52:35 +01:00
saalen 9d3b1eef71 https://sourceforge.net/p/astyle/bugs/537/ fixed padding of pointers separated by comma 2022-12-07 16:46:38 +01:00
saalen cdcb92ddd7 https://sourceforge.net/p/astyle/bugs/544/ fixed padding of dereference operator 2022-12-02 15:18:47 +01:00
saalen 0a9036ff50 added gitignore file 2022-12-02 14:33:50 +01:00
saalen fcf13cd9b9 adopted regression test script 2022-12-02 14:29:42 +01:00
saalen db8cd9a5dc https://sourceforge.net/p/astyle/bugs/545/ fix reverting effect of maxCodeLength and AttachReturnType options 2022-12-02 14:26:32 +01:00
saalen 4074d30680 https://sourceforge.net/p/astyle/bugs/546/ fixed space deletion when aligning ref value name 2022-11-25 16:33:44 +01:00
saalen fca9d2915a https://sourceforge.net/p/astyle/bugs/550/ fixed case indent after enum return value 2022-11-25 15:20:00 +01:00
saalen b760fe0bcc https://sourceforge.net/p/astyle/bugs/538/ added spaceship operator 2022-11-25 13:10:17 +01:00
Andre Simon f84264c4c5 improved DE localization 2022-11-23 21:51:21 +01:00
Andre Simon 3d2cb8f2e5 https://sourceforge.net/p/astyle/tickets/129/ applied IT localization patch 2022-11-23 21:39:16 +01:00
Andre Simon a6f646b71f converted source files to UNIX format 2022-11-20 21:02:12 +01:00
jimp03 bed87f8206 Modernize CMake files.
Tests for astyle commit 671.
2019-04-06 00:55:55 +00:00
jimp03 0234a68fed Modernize CMake files. 2019-04-06 00:52:43 +00:00
jimp03 e9c55cc528 Update SciTE properties files. 2019-04-06 00:44:45 +00:00
jimp03 ad2712b2c5 Modernize CMake files.
Standardize method names.
2019-04-06 00:42:57 +00:00
jimp03 9099fd6418 Modernize CMake files.
Standardize method names.
2019-04-06 00:41:34 +00:00
jimp03 0c4733a838 Modernize CMake files.
Standardize method names.
2019-04-06 00:37:38 +00:00
jimp03 4f73ff73c2 Change to Linux line ends. 2019-03-14 15:37:28 +00:00
jimp03 ed0dc98503 Change to Linux line ends. 2019-03-14 15:26:35 +00:00
jimp03 050c4ca3e1 Changes to IDE project files.
Changes from clang-tidy.
Various bug fixes.
2019-03-13 21:28:36 +00:00
jimp03 206afd8891 Changes to IDE project files.
Scripts for running Valgrind on Linux.
Add tests for AStyle changes, revision 660.
2019-03-13 21:24:32 +00:00
jimp03 8d30c1b270 Changes to IDE project files.
Documentation changes.
2019-03-13 21:20:00 +00:00
jimp03 8ea4dcfda5 Changes to IDE project files.
Add documentation files.
Update CMake to use wxWidgets instructions.
Changes from clang-tidy.
2019-03-13 21:17:36 +00:00
jimp03 d2d180f475 Changes to IDE project files.
Add tests for AStyle changes.
2019-03-13 20:58:13 +00:00
jimp03 d16bd861d0 Changes for AStyle revision 654. 2018-04-05 22:36:21 +00:00
jimp03 9cb2a21349 Add new option "style=webkit" for the WebKit brace style.
Extract new method for options in ASOptions class to avoid compiler limits.
2018-04-05 22:34:08 +00:00
jimp03 2678dc44ca Changes for AStyleWx revision 652. 2018-04-05 22:29:12 +00:00
jimp03 71e421cf88 Add new style option "webkit" for the WebKit bracket style.
Improve the dialog box displays, especially for those using gtk3.
Improve the AStyleDlg preview for brace style options and other options.
Change classes to C++11 default and delete.
Add multi-distribution processing to builds.
2018-04-05 22:26:20 +00:00
jimp03 3fae2a9b12 Changes for AStyleWx revision 648
Add tests for load session option
2018-02-26 18:20:42 +00:00
jimp03 a184c97449 Remove vs2010, vs2012 2018-02-26 18:19:03 +00:00
jimp03 4286d89645 Remove vs2010, vs2012 2018-02-26 18:17:51 +00:00
jimp03 790733100d Update to c++11 code
Static and shared versions use the same options fles
Retain current session files
Add editor options to context menu
Update wxWidgets macros
Add cmake compile
2018-02-26 18:15:58 +00:00
jimp03 388dacd7cb Remove anotherdark.css 2018-02-26 18:12:44 +00:00
jimp03 7ba7a3d03c Remove vs2010 2018-02-26 18:08:33 +00:00
jimp03 2cc651448d Remove vs2010 2018-02-26 18:07:35 +00:00
jimp03 b33ef646b8 Revove vs2010, vs2012 directories 2018-02-26 18:06:08 +00:00
jimp03 3848092f7a Change version number 2018-02-26 18:03:45 +00:00
jimp03 f6bf4ca9ba Remove vs2012 2018-02-26 18:01:26 +00:00
jimp03 26d943bc67 Changes for AStyle revision 639
Update to Python 3.6
2018-02-26 18:00:16 +00:00
jimp03 faae0e3424 Remove vs2012 directory 2018-02-26 17:56:18 +00:00
jimp03 9c2efabdaf Update to C++11 code.
Change version number.
2018-02-26 17:53:00 +00:00
jimp03 c85c974665 Final changes for release 3.1, astyle revision 632 2018-01-11 21:38:23 +00:00
jimp03 d9d4c874c0 Final changes for release 3.1. 2018-01-11 21:36:54 +00:00
jimp03 608634af5a Final changes for release 3.1. 2018-01-11 21:32:23 +00:00
jimp03 870608d56c Copyright date to 2018. 2018-01-02 15:59:58 +00:00
jimp03 24690a5646 Copyright date to 2018. 2018-01-02 15:59:14 +00:00
jimp03 b20cf8d4a1 Copyright date to 2018. 2018-01-02 15:58:36 +00:00
jimp03 81ff8f0a88 Copyright date to 2018. 2018-01-02 15:56:37 +00:00
jimp03 6c3e1303cf Add tests for astyle version revision 625.
Add utf-8 and permissive- to all compile options.
Use GTEST instead of GMock.
2018-01-02 01:21:44 +00:00
jimp03 0b2d891c21 Add options break and attach return type.
Add utf-8 and permissive- to all compile options.
Add getPeekStart to ASSourceIterator.
Add break-return-type to mozilla.ini.
2018-01-02 01:20:11 +00:00
jimp03 a940216f6c Add tests for astylewx revision 623.
Add uft-8 and permissive- to all compile options.
2018-01-02 01:18:57 +00:00
jimp03 1dbc77d5c5 Add options break and attach return type.
Add utf-8 and permissive- to all compile options.
2018-01-02 01:17:43 +00:00
jimp03 528bbf27da Remove GMock library from AStyleTest projects
Changes for AStyle revision 621
2017-11-07 15:49:19 +00:00
jimp03 9f2bfc7c6a Fix argument list
Fix trailing return type
2017-11-07 15:47:48 +00:00
jimp03 04e3838c01 Change wxFormBuilder version 2017-11-07 15:46:43 +00:00
jimp03 e66fe6cd32 Remove warning message disable 2017-11-07 15:45:21 +00:00
jimp03 2c8e583362 Changes for AStyle revision 617. 2017-10-18 21:55:59 +00:00
jimp03 d38d6ae50d Add multiple extensions to the command line file paths option.
Fix Objective-C formatting of line-end comments with unpad-return-type.
Fix Objective-C align-method-colon to ignore ternary (?) operators.
Fix C# base class constructor indentation (#459).
Fix to check for AStyleWx line tags after C style comments.
2017-10-18 21:54:55 +00:00
jimp03 f68aa4d0b2 Tests for AStyleWx revision 615. 2017-10-18 21:53:52 +00:00
jimp03 fb47e145a6 Add Ratliff brace style. 2017-10-18 21:50:43 +00:00
jimp03 d2234f7e81 Changes for astyle revision 613 2017-10-01 14:52:29 +00:00
jimp03 ebe2beadc5 Add project option file
Add new option style=ratliff
Change release to 3.1
2017-10-01 14:49:59 +00:00
jimp03 9def2d870b Change release to 3.1 2017-10-01 14:48:56 +00:00
jimp03 66c4c4aade Change release to 3.1 2017-10-01 14:47:48 +00:00
jimp03 e85d264504 Change release to 3.1 2017-10-01 14:47:02 +00:00
jimp03 178c5d6238 Add CMakeLists.txt 2017-09-19 14:40:09 +00:00
jimp03 f1d38aef10 Changes for AStyle revision 607 2017-09-17 01:37:02 +00:00
jimp03 23268498ce Add CMakeLists.txt file
Add "Top" button for astyle.html
Improve recognition of unary + and - when using pad-oper
Fix Java build from including ASLocalizer in the shared library
Extract method isNumericVariable() in ASFormatter
2017-09-17 01:36:05 +00:00
jimp03 8b8471220d Minor changes to source files 2017-09-17 01:35:00 +00:00
jimp03 7fcacf9e2a Changes for AStyle revision 604
Change python files to run on 32-bit
2017-08-08 14:24:21 +00:00
jimp03 224d42d682 Changes from AFL fuzz testing
Fix indentation of "volatile" keyword not used in a method definition
Fix indentation of "final" keyword not used in a method definition
2017-08-08 14:23:13 +00:00
jimp03 63d2f405c7 remove BOM from C# files 2017-08-08 14:18:12 +00:00
jimp03 839dc9566c Add indent guide highlight to selected braces
Fix double-click selection of a block
2017-08-08 14:17:30 +00:00
jimp03 c4ddbd82b2 Fix terse printer display 2017-08-08 14:16:23 +00:00
jimp03 755007e19f Tests for AStyle revision 599. 2017-07-11 17:41:18 +00:00
jimp03 c6726cb4d8 Changes due to afl fuzzing.
Fix line ends initialization.
2017-07-11 17:39:34 +00:00
jimp03 2a1fa999d8 Changes for AStyle revision 597. 2017-07-06 01:03:56 +00:00
jimp03 bd8f275e66 Change options file location to APPDATA.
Options file input to accept UTF-16, or UTF-8.
Fix to allow for 'Extern C' statements.
Fix method definitions with multiple param types.
2017-07-06 01:00:35 +00:00
jimp03 844965509a Changes for AStyle commit 575. 2017-06-27 16:36:15 +00:00
jimp03 be6257f393 Fix UTF-8 length calcualtions.
Changes for afl fuzzing.
Misc fixes.
2017-06-27 16:30:41 +00:00
jimp03 96212d6505 Add wxWidgets version 3.0.3. 2017-06-27 16:25:58 +00:00
jimp03 0dad84dbcb Fix "Find" methods to recognize UTF-8 characters.
Fix file open filter to display files that do not have an extension.
Add wxWidgets version 3.0.3.
2017-06-27 16:24:44 +00:00
jimp03 42216c1414 Changes for release 3.0.1. 2017-05-31 00:17:35 +00:00
jimp03 b6c9a030f6 Correction to release 3.0.1. 2017-05-30 23:59:30 +00:00
jimp03 4b66fcab06 Changes for release 3.0.1. 2017-05-30 13:10:55 +00:00
jimp03 f2c2677b49 Changes for release 3.0.1. 2017-05-30 13:06:08 +00:00
jimp03 c272a2bd42 Changes for release 3.0.1. 2017-05-30 13:03:53 +00:00
jimp03 340ab07364 Changes for release 3.0.1. 2017-05-30 13:01:11 +00:00
jimp03 bcc1370643 Changes for release 3.0.1. 2017-05-30 12:57:00 +00:00
jimp03 3c18a94c3f Final changes for version 3.0. 2017-04-02 18:54:40 +00:00
jimp03 6ed7e6208e Final changes for version 3.0. 2017-04-02 18:53:31 +00:00
jimp03 76303d4166 Final changes for version 3.0. 2017-04-02 18:52:44 +00:00
jimp03 0afdfc222c Final changes for version 3.0. 2017-04-02 18:51:15 +00:00
jimp03 61b24973b9 Changes for AStyle revision 567.
Final changes for version 3.0.
2017-04-01 21:59:42 +00:00
jimp03 8da3f1dd28 Final changes for version 3.0.
Changes for new shared object versioning.
Final changes to build files.
2017-04-01 21:57:21 +00:00
jimp03 2f26d7e073 Final changes for version 3.0.
Changes for new shared object versioning.
Final changes to build files.
2017-04-01 21:48:37 +00:00
jimp03 60de74b83e Changes for AStyleWx revision 564. 2017-04-01 21:44:30 +00:00
jimp03 145547555a Final changes for version 3.0.
Changes for new shared object versioning.
Final changes to build files.
2017-04-01 21:41:59 +00:00
jimp03 6d412d4ab2 Tests for AStyle version 562.
Update project files.
2017-02-21 19:49:36 +00:00
jimp03 3eee2dd301 Update project files.
New option "indent-after-parens".
Rename Utf8_16 class to ASEncoding.
Change version to 3.0.
2017-02-21 19:46:23 +00:00
jimp03 d13c99eee5 Tests for AStyleWx version 560.
Update project files.
2017-02-21 19:43:59 +00:00
jimp03 27f4712531 Update project files.
New option "indent-after-parens".
2017-02-21 19:42:33 +00:00
jimp03 1105271c51 Update project files. 2017-02-21 19:40:06 +00:00
jimp03 6be153eb05 Remove Digital Mars files. 2017-02-12 01:01:34 +00:00
jimp03 caba84e59f Changes for AStyleWx version 556.
Add VS 2017 project files.
Update Python files.
2017-02-12 00:58:52 +00:00
jimp03 288163ddee Change file open procedure. 2017-02-12 00:55:25 +00:00
jimp03 ce512093e3 Changes for AStyle release 540.
Remove console error stream from global.
2017-02-12 00:50:02 +00:00
jimp03 ae8d6d1315 New class peekStream.
Change vector push_back() to emplace_back().
Fix in-statement-indent brace check.
Move console error stream (cerr) to ASConsole class.
Move ASConsole pointer to a class member.
Move findHeader and findOperator to ASBase.
Remove Digital Mars support.
2017-02-12 00:42:21 +00:00
jimp03 ff796b9ac9 Changes for AStyle revision 551.
Change bracket names to braces.
2017-01-21 16:37:42 +00:00
jimp03 397998a640 Changes for AStyle revision 551.
Add new file for C++0x tests.
Change bracket names to braces.
2017-01-21 16:35:37 +00:00
jimp03 b907bd447e Change bracket names to braces. 2017-01-21 16:31:19 +00:00
jimp03 729f3ba754 Update to support AStyleWx revision 549. 2017-01-19 21:48:08 +00:00
jimp03 22646870b6 AStyleWx
Update to support AStyle revision 547.
2017-01-19 21:47:16 +00:00
jimp03 c49d106ba2 Add tests to support AStyle revision 547.
Change "Brackets" in File names to "Braces".
Add new file for C++0x changes.
Change "brackets" to "braces" in some of the files.
Change "horstmann" to "run-in in some of the files.
2017-01-19 21:45:13 +00:00
jimp03 00729fdb93 Add new option "attach-closing-while".
Add style=run-in as an alternative for style=horstmann.
Add formatting for C++11 trailing return type methods.
Fix boundary conditions discovered by american fuzzy lop fuzzer.
Change horstmann variable names to run-in.
2017-01-19 21:43:31 +00:00
jimp03 107695d0b1 Changes for AStyle commit 544. 2017-01-10 23:04:23 +00:00
jimp03 852af28070 Change variable names to new AStyle terminology.
Fix memory leak when using "indent-preproc-define".
Replace NULL with C++11 nullptr.
Add C++11 to compile options.
Move ASConsole constructor and destructor from inline to non-inline.
Changes from clang-tidy.
Change release number.
2017-01-10 23:00:16 +00:00
jimp03 331216b071 Update to AStyle version 2.7. 2017-01-10 22:33:22 +00:00
jimp03 41c7c3a749 Changes for AStyleWx release 541. 2017-01-10 21:23:06 +00:00
jimp03 2ab36f361f Change variable names to new AStyle terminology.
Change NULL to C++11 nullptr.
Add C++11 to compile options.
Changes from clang-tidy.
Remove FileManager friend class from ASEditor.
Change encoding display on the GUI.
Fix CountLineEnds for UTF8 files.
Change statusbar context menus to left click.
Change release number.
2017-01-10 21:21:00 +00:00
jimp03 abc470f68d Initial commit - version 2.06. 2016-12-28 18:48:05 +00:00
jimp03 09f9505faa Initial commit - version 2.06. 2016-12-28 18:41:33 +00:00
jimp03 7aa77d31f6 Final changes for version 2.06.
Supports astyle revision 530.
2016-12-27 20:59:18 +00:00
jimp03 6091e56482 Final changes for version 2.06. 2016-12-27 20:56:17 +00:00
jimp03 a07a0fe52d Format changes for Visual Studio compatibility. 2016-12-18 16:31:19 +00:00
jimp03 42976f50fe Changes to support astyle revision 527. 2016-12-18 01:55:07 +00:00
jimp03 b033a9527d Add option break-one-line-headers.
Changes to add-brackets.
Fix style=pico problems.
Add keyword module.
Format with break-one-line-headers.
Add file directory.
Add CB project for new bcc compiler.
Add VS2017 project.
2016-12-18 01:51:37 +00:00
jimp03 28f0692b0a Use new astyle options file. 2016-12-18 01:38:10 +00:00
jimp03 aea5dcff6f Updates for AStyle revision 523.
Update Visual Studio build files.
2016-11-17 16:57:19 +00:00
jimp03 093e9024f3 Add colon alignment to Objc Method calls.
Update Visual Studio build files.
Updates to documentation.
2016-11-17 16:49:05 +00:00
jimp03 16495a8f3a Reformat ObjC Example.m.
Update Visual Studio build files.
Updates to documentation.
2016-11-17 16:44:20 +00:00
jimp03 d7c72fb55a Tests for pad-param-type.
Changes to project files.
2016-10-18 00:16:01 +00:00
jimp03 6a81a712ff New option pad-param-type.
Changes from clang-tidy.
Changes to project files.
2016-10-18 00:12:38 +00:00
jimp03 26dfb17974 Changes to project files. 2016-10-18 00:03:48 +00:00
jimp03 aed1dfff02 Remove outdated scripts and project files.
Changes to TersePrinter.
Changes for AStyle revision 513.
2016-09-26 16:26:32 +00:00
jimp03 0e46c0c3cf Remove changed directory names. 2016-09-26 16:20:47 +00:00
jimp03 f665dc6101 Add new bracket style option "style=mozilla".
Add new option indent-continuation.
Remove BracketMode STROUSTRUP_MODE.
2016-09-26 16:17:09 +00:00
jimp03 507a882a82 Changes to Python examples.
Cosmetic changes to Java and c# examples.
2016-09-26 16:08:53 +00:00
jimp03 b49ff7c83a Fix a display in AStyleTestCon_Print.cpp.
Changes to project build files.
2016-08-14 20:16:13 +00:00
jimp03 65d70ce50e Changes to project build files. 2016-08-14 15:10:45 +00:00
jimp03 7a333a9a0c Add GMock files to Borland tests.
Changes to project build files.
2016-08-14 15:00:38 +00:00
jimp03 c58cb35ce3 Changes to project build files. 2016-08-14 14:53:31 +00:00
jimp03 2d9021f8c5 Modified HTML and SciTE.properties. 2016-07-28 15:37:00 +00:00
jimp03 63ecac94da Tests for AStyle commit 505. 2016-07-28 15:34:39 +00:00
jimp03 2ec477e24c Remove lineend option from formatCinToCout function.
Fix not recognizing an escaped space character within a quote (#403).
Fix not recognizing an rvalue reference in a template (#404).
2016-07-28 15:26:07 +00:00
jimp03 1d9903ef14 Fix AStyleInterface.java. 2016-05-10 01:31:50 +00:00
jimp03 429d084d1a Add export statements to project files.
Add Clang project files.
Format changes to html files.
2016-05-10 01:21:27 +00:00
jimp03 e68672cf53 Add export statements to project files.
Add Clang project files.
Format changes to html files.
2016-05-10 01:18:27 +00:00
jimp03 d2dd3b9aad Change location of googlemock and googletest.
Add MIT licensing information.
2016-05-10 01:14:54 +00:00
jimp03 9580317176 Add C# example2 project.
Update example source files.
Add export statements to project files.
Format changes to html files.
2016-05-10 01:01:31 +00:00
jimp03 63215ca50f Add C# example2 project.
Update example source files.
Add export statements to project files.
Format changes to html files.
2016-05-10 00:56:53 +00:00
jimp03 ae12992a83 Add tests for AStyle commit 495.
Add Utf-8 to AStyle.
Add memory leak tests.
Add 64 bit BCC tests.
Add new localizer test program.
2016-03-13 21:39:21 +00:00
jimp03 5df69aa3fd Add new project files. 2016-03-13 21:27:14 +00:00
jimp03 50d4283381 Add Utf-8 file handling.
Add new translations.
Add C++14 digit separator.
Improve recognition of header guards.
Move date display position.
2016-03-13 21:25:39 +00:00
jimp03 faf623c2f0 Add Utf-8 to AStyle.
Minor format changes to python examples.
2016-03-13 21:11:57 +00:00
jimp03 ffef81af6b Tests for AStyle SVN revision 492. 2016-01-07 23:19:52 +00:00
jimp03 bdea317829 Add formatting of C++14 single-quote digit separators (#337).
Improve recognition of C++11 uniform initializer brackets (#381).
Remove ASBase methods from being inlined as class definitions.
2016-01-07 23:14:09 +00:00
jimp03 0bdb29d93f Changes to C# Example source. 2016-01-07 22:52:49 +00:00
jimp03 9501e72acf Project file changes. 2015-11-27 22:28:11 +00:00
jimp03 7aecc3fbcf Changes for AStyle commit 488.
Add License info.
Project file changes.
2015-11-27 22:25:26 +00:00
jimp03 a64fee5c5e Project file changes. 2015-11-27 22:22:52 +00:00
jimp03 dc340c837e Project file changes. 2015-11-27 22:20:53 +00:00
jimp03 79361a2c5f Changes for AStyle revision 479.
Remove warning messages from Intel project files.
Add JAVA_HOME environment variable to project files.
Create separate test for ASLocalizer.cpp.
2015-10-04 18:28:17 +00:00
jimp03 94642597f7 Remove exception handling from Visual Studio project files.
Remove warning messages from Intel project files.
Add JAVA_HOME environment variable to project files.
2015-10-04 18:25:48 +00:00
jimp03 f75b8d1d49 Remove warning messages from Intel project files.
Add JAVA_HOME environment variable to project files.
Update Visual Studio project files to 2015 format.
2015-10-04 18:24:00 +00:00
jimp03 a174c17297 Tests for AStyle revision 481. 2015-09-17 20:41:43 +00:00
jimp03 eed5e15570 Fix attaching "if" statements to a #else preprocessor (#356).
Fix not clearing global variables for a new file (#364).
Portability changes for additional compiler support (#352).
2015-09-17 20:28:28 +00:00
jimp03 88f9ade5d6 Add build vs-python directory. 2015-09-04 00:42:03 +00:00
jimp03 c856df8f6c Add src directories. 2015-09-04 00:38:36 +00:00
jimp03 6753679b06 Add build vs-doc directory. 2015-09-04 00:31:15 +00:00
jimp03 2c70b074c1 Delete unused files. 2015-09-03 23:48:39 +00:00
jimp03 6196b32709 Update vs2015 project files. 2015-09-03 23:30:45 +00:00
jimp03 e42996c444 Update project files. 2015-09-03 23:27:58 +00:00
jimp03 bd4ee4089f Update vs2015 project files.
Remove leak tests.
Change python indents to spaces.
2015-09-03 23:23:11 +00:00
jimp03 4a7aa91917 Changes to source code format. 2015-04-01 14:15:06 +00:00
jimp03 ad93c6005d Changes to source code format. 2015-04-01 14:14:28 +00:00
jimp03 6eba048daf Additional tests for PadMethodPrefix and PadReturnType.
Tests for Astyle revision 468.
2015-04-01 00:12:29 +00:00
jimp03 339b259013 Create a :padParenObjC method for PadMethodPrefix and PadReturnType.
Changes to padObjCMethodColon method.
2015-04-01 00:09:46 +00:00
jimp03 f98f883a0b Test changes for AStyle commit 465. 2015-03-22 21:33:14 +00:00
jimp03 c8a2a4fcc2 Minor C# changes from stylecop. 2015-03-22 21:32:06 +00:00
jimp03 229b5727ab Add new option pad-comma.
Add removing spaces before a comma.
Add new  Objective-C options "pad-return-type" (-xq) and "unpad-return-type" (-xr).
Fix C# to recognize "using" as a header.
Fix end of line comments for "pad-method-prefix" and "unpad-method-prefix".
Fix end of line comments for "pad-method-colon".
2015-03-22 21:31:21 +00:00
jimp03 d3d128c9af Test files for astyle revision 460.
Final updates for release 2.05.1.
Add clang-format test scripts.
2014-12-11 15:44:20 +00:00
jimp03 c1ff1252a4 Final updates for release 2.05.1. 2014-12-11 15:43:03 +00:00
jimp03 06f126c5b2 Tests for AStyle SVN version 458. 2014-12-09 18:20:30 +00:00
jimp03 00739e066b Change version number to 2.05.1.
Fix incorrectly reporting files containing disabled formatting as being formatted.
Fix error in identifying an enum argument as an enumeration.
Fix recognition of Qt keywords when used as variables in C++.
2014-12-09 18:19:32 +00:00
jimp03 51df462422 Add favicon to html files. 2014-11-30 23:07:17 +00:00
jimp03 8041361844 Tests for AStyle update #454.
Update Leak Detector configurations.
2014-11-30 23:03:28 +00:00
jimp03 384301408c Fix recognition of a pointer in a C++ cast (#316).
Add favicon to html files.
2014-11-30 22:55:40 +00:00
jimp03 1a111476da Tests for astyle release 451.
Change to shared library version 2.06.
Change visual studio to dynamically loaded library.
Fixes for intel compiler.
2014-11-27 14:48:00 +00:00
jimp03 252fb4e72b Change shared library version to 2.06. 2014-11-27 14:29:18 +00:00
jimp03 ce7b952741 Change shared libraries and documentation to version 2.06.
Fix incorrect handling of quoted arguments in the options file (#321).
Fix error in identifying an enum return type as an enumeration (#322, 323).
Fix removing trailing whitespace after a changed pointer or reference cast.
2014-11-27 14:25:20 +00:00
jimp03 459839dc3a Final changes for release 2.05.
For AStyle update 446.
2014-11-17 19:25:29 +00:00
jimp03 d47c83acd4 Final changes for release 2.05.
Project files, documentation, and one ASFormatter change.
2014-11-17 19:18:29 +00:00
jimp03 78dde89f37 More final changes for release 2.05. 2014-11-17 19:11:27 +00:00
jimp03 ab8f107b4d Final changes for release 2.05.
Mostly documentation changes.
2014-11-17 19:09:20 +00:00
jimp03 e8373a1b29 Tests for AStyle revision 442.
Changes to system-test.py for multiple runs.
2014-11-06 22:05:33 +00:00
jimp03 9894899035 Add tags to disable formatting of source code blocks.
Add tag to disable selected formatting on a single line.
Formatting fixes for operators, pointers, and references.
2014-11-06 22:04:33 +00:00
jimp03 8d766bf282 Tests for AStyle version 440. 2014-10-27 13:34:15 +00:00
jimp03 f776e76c1b Fix formating of c++11 uniform initializer brackets.
Fix formatting of enums with leading commas.
Fix minor fromatting problems with rvalue references.
Refactoring in ASBeautifier for C++11 changes.
2014-10-27 13:32:18 +00:00
jimp03 fcb2442f5b Fixes for new Iron Python rerease. 2014-10-27 13:30:28 +00:00
jimp03 a52e6b7f75 Preprocessor format changes. 2014-10-15 19:39:05 +00:00
jimp03 6efd2d015b Preprocessor format changes. 2014-10-15 19:38:40 +00:00
jimp03 1706848d22 Fix C++11 uniform initializers. 2014-10-15 19:02:48 +00:00
jimp03 c9a0489cb8 Changes to project files. 2014-10-15 19:02:29 +00:00
jimp03 f0866b8541 Add tests.
Changes to TersePrinter.
2014-10-15 19:01:53 +00:00
jimp03 53b494a9d8 Refactor ASBeautifier to create separate variables for a "class"
statement and a class constructor initializer.
Add ENUM_TYPE to BracketType.
Fix to not space pad C++11 uniform initializer brackets.
Fix flagging a 'cons' variable as a 'const' method.
Fix to recognize C++11 'enum class' as an enum.
Fix concateneing multiplication with a pointer dereference.
Fix indent of C++11 'noexecp' statements within a class.
Fix extra space after a trailing reference type.
Fix indentation of line comments before a 'class' opening bracket.
Fix indentation of line comments before a 'namespace' opening bracket.
Fix indentation of C# &quot;let&quot; statements.</li>
2014-10-06 14:19:34 +00:00
jimp03 fca43b2d7c Change test to use DLL build of AStyle for speed in linking.
Add tests.
2014-10-06 14:16:42 +00:00
jimp03 53f5715fc0 Add option indent-preproc-block.
Add option dry-run.
Add version number to shared libraries.
Bug fixes.
2014-09-14 00:17:26 +00:00
jimp03 af24ec4bfe Update and improve build project files. 2014-09-14 00:14:00 +00:00
jimp03 ebb20e22cc Update and improve build project files.
Add tests for astyle updates.
2014-09-14 00:12:02 +00:00
jimp03 6a426ce803 Add Iron Python capability to Python programs.
Changes for pylint.
Format HTML with VS 2013.
2014-04-27 14:33:13 +00:00
jimp03 916084fef3 Add new Qt headers.
Fix padding of raw string literals.
Format HTML with VS 2013.
2014-04-27 14:32:25 +00:00
jimp03 bffd5cbe45 Add new Qt headers.
Fix padding of raw string literals.
Changes for pylint.
2014-04-27 14:31:23 +00:00
jimp03 9bb39e0ae4 Add style=vtk.
Add visibility attribute for Linx.
Add project files for Mac.
2014-03-31 19:52:41 +00:00
jimp03 85fe319d9d Add style=vtk.
Add visibility attribute for Linx.
Add project files for Mac.
Always use TersePrinter.
2014-03-31 19:50:50 +00:00
jimp03 38b2c74506 Add CodeBlocks project files for Mac. 2014-03-31 19:44:05 +00:00
jimp03 06ab007da0 Change to gmock 1.7.0. 2014-02-13 19:55:35 +00:00
jimp03 613c829bbd Add project filters. 2014-02-12 19:39:31 +00:00
jimp03 4e876951cb Add and delete project files. 2014-02-12 19:36:07 +00:00
jimp03 d60e69cb51 Delete vs2013 user files. 2014-02-12 19:30:22 +00:00
jimp03 b53e798d11 Delete unused programs. 2014-02-12 19:26:10 +00:00
jimp03 997395ca42 Delete project files. 2014-02-12 19:24:39 +00:00
jimp03 7fde93aab8 Add CodeBlocks project files.
Add vs2013 project files.
New "html" option.
Use custom UTF-8 conversion and remove iconv dependency.
Update Mac Makefile to use Clang.
Add Xcode project files.
Add visibility attribute to Linux shared obfects.
2014-02-12 16:26:36 +00:00
jimp03 ffd42b8d1e Bugfixes.
Update project files.
Add Mac project files.
Add Clang project files.
Remove vs2008 project files.
2014-02-12 16:07:16 +00:00
jimp03 f226703c42 Bugfixes.
Update project files.
Add Mac project files.
Add Clang project files.
Remove vs2008 project files.
2014-02-12 15:42:54 +00:00
jimp03 8a1e1e57e4 Add html option.
Utf8/16 to a separate class.
Add Clang Format and Analysis.
Change help to stdout.
2013-11-25 22:14:11 +00:00
jimp03 2a459f4e28 Add Clang compiler. 2013-11-25 22:13:20 +00:00
jimp03 641c6ebefb Add html option.
Utf8/16 to a separate class.
Add Clang Format and Analysis.
Change help to stdout.
2013-11-25 22:11:15 +00:00
jimp03 9f5bcb66b8 Fix memory leak.
Fix preprocessor and template problems.
Update console "help" display.
Documentation updates.
Final changes for release 2.04.
2013-11-01 21:09:09 +00:00
jimp03 63a60b4aff Final changes for release 2.04. 2013-11-01 21:08:31 +00:00
jimp03 f6e63e5859 Final changes for release 2.04. 2013-11-01 21:07:59 +00:00
jimp03 d59886609c Add style=google option.
Add indent-modifiers option.
Fix template problems.
2013-10-28 15:27:53 +00:00
jimp03 9e4ca31d62 Add style=google option.
Add indent-modifiers option.
Fix template problems.
2013-10-28 15:26:57 +00:00
jimp03 d4a1f28660 Script and documentation changes. 2013-10-28 15:24:24 +00:00
jimp03 eb8cdecfcb Various fixes. 2013-10-12 19:03:41 +00:00
jimp03 f899ff724e Various fixes. 2013-10-12 19:02:02 +00:00
jimp03 ab26b14c91 Indent continuation line beginning with a dot.
Various fixes.
2013-10-09 18:34:34 +00:00
jimp03 13954aacbc Tests for:
Indent continuation line beginning with a dot.
Various fixes.
2013-10-09 18:33:59 +00:00
jimp03 a1b0e512af Add option style=knf.
Add option attach-extern-c.
Add option indent-preproc-cond.
Add option remove-comment-prefix.
Change option indent-preprocessor to indent-preproc-define.
Add processing of C++11 raw string literals.
Remove depreciated "bracket=" options.
2013-09-23 19:33:26 +00:00
jimp03 35c37f46d6 Change test programs for the following:
Add option style=knf.
Add option attach-extern-c.
Add option indent-preproc-cond.
Add option remove-comment-prefix.
Change option indent-preprocessor to indent-preproc-define.
Add processing of C++11 raw string literals.
Remove depreciated "bracket=" options.
Update Python scripts.
2013-09-23 19:32:10 +00:00
jimp03 c76f47170c Update Python scripts. 2013-09-23 19:17:24 +00:00
jimp03 9f27e65229 Reformat with pad-oper. 2013-08-05 19:21:23 +00:00
jimp03 79cfe7ee7a Objective-C final? changes. 2013-08-05 19:07:41 +00:00
jimp03 90b59c2b18 Add Objective-C tests. 2013-08-05 19:06:12 +00:00
jimp03 2144e8f14f Various changes. 2013-08-05 19:03:28 +00:00
jimp03 d6b4e1c035 Objective-C changes.
Improve pointer and reference formatting.
2013-07-08 19:53:27 +00:00
jimp03 5014e4147e Documentation update. 2013-07-08 19:48:42 +00:00
jimp03 432b6a9031 Add objective-C tests. 2013-07-08 19:47:27 +00:00
jimp03 a78351d07d Fix switch statement comment indentation.
Fix enum tabbed indentation.
Objective-C changes, part 2.
2013-07-02 16:39:02 +00:00
jimp03 0fe49268a0 Update example programs. 2013-07-02 16:32:07 +00:00
jimp03 32aa2cc352 Add test data. 2013-07-02 16:29:38 +00:00
jimp03 b44863c76f Delete Example2 data #2. 2013-06-14 19:36:52 +00:00
jimp03 a14cc1f54a Delete Example2 data. 2013-06-14 19:32:19 +00:00
jimp03 225ed83dcc Add Objective-C example.
Update documentation.
2013-06-14 19:07:22 +00:00
jimp03 faf978b6b9 Update subversion.html. 2013-06-04 16:13:00 +00:00
jimp03 4be866e571 Add ASLibrary class for processing utf-16 files.
Add remove-brackets option.
2013-06-03 21:18:14 +00:00
jimp03 4730d0d84e Add new ASLibrary tests.
Add remove-brackets tests.
2013-06-03 21:16:40 +00:00
jimp03 1175cbdfb9 Change C# examples to new utf-16 entry in astyle. 2013-06-03 21:06:21 +00:00
jimp03 c1486eae8d Fix piping problem.
Fix html background problem.
2013-05-06 17:47:23 +00:00
jimp03 b96be93de1 Fix piping test.
Add wide example.
2013-05-06 17:45:59 +00:00
jimp03 879a5e2615 Script changes. 2013-05-06 17:43:21 +00:00
jimp03 4b1663f19f Add new bracket modifier options.
Fix linux bracket styles to break the opening bracket in inline function definitions (3571898). 
Fix to delete the ASBeautifier objects before deleting the pointers. 
Remove unused functions getFilesUnchanged, getOptionsFileRequired, and setOptionsFileRequired.
2013-04-24 21:55:25 +00:00
jimp03 8cc0924c86 Add new bracket modifier options.
Fix linux bracket styles to break the opening bracket in inline function definitions (3571898). 
Fix to delete the ASBeautifier objects before deleting the pointers. 
Remove unused functions getFilesUnchanged, getOptionsFileRequired, and setOptionsFileRequired.
2013-04-24 21:53:08 +00:00
jimp03 466d26e661 Final commits for release 2.03. 2013-04-13 17:37:54 +00:00
jimp03 1cd2c8afc4 Final commits for release 2.03. 2013-04-13 17:37:06 +00:00
jimp03 c273523d13 Final commits for release 2.03. 2013-04-13 17:36:22 +00:00
jimp03 fe4e8aa711 2013-04-09 19:22:07 +00:00
jimp03 ee86ea564f Various chages. 2013-04-09 19:20:50 +00:00
jimp03 aca9897ef6 Various changes. 2013-04-09 19:15:16 +00:00
jimp03 acc0cfab82 Rename vs11 to vs 2012. 2012-06-04 14:24:06 +00:00
jimp03 138be67982 Rename vs11 to vs2012. 2012-06-04 13:56:01 +00:00
jimp03 9c9a2bb42b Add Clang makefile.
Rename vs11 to vs2012.
2012-06-04 13:25:21 +00:00
jimp03 231d1ef128 Delete VS11 python project. 2012-04-24 04:21:07 +00:00
jimp03 0411577438 Update build files. 2012-04-09 00:20:16 +00:00
jimp03 58dc8e1ee7 Update build files. 2012-04-08 23:39:18 +00:00
jimp03 ee621ad525 Update build files. 2012-04-08 23:37:48 +00:00
jimp03 0cd534aaf5 Fix redirection problems. 2012-04-07 16:34:59 +00:00
jimp03 b626ec2517 Fix "pad-heade" not padding "return" and "throw" statements.
Changes to Intel compiler makefile.
2012-03-30 17:03:49 +00:00
jimp03 9230400ad4 Tests for pad-headers 'return' and 'throw' padding. 2012-03-30 16:59:47 +00:00
jimp03 62097b1845 Add Visual Studio solutions for Python scripts.
Update Python scripts to work with VS solutions.
2012-03-19 23:58:50 +00:00
jimp03 332412ed27 Changes to close-templates option.
Fix trim continuation line.
Fix break in comments preceeding a statement.
Cppcheck changes.
2012-03-18 20:07:54 +00:00
jimp03 ef9abd6793 Changes to close-templates option.
Fix trim continuation line.
2012-03-18 20:03:55 +00:00
jimp03 13202ae753 Add ASTYLE_STATIC option to source and update build files. 2012-03-18 20:00:44 +00:00
jimp03 03993fa6f7 New format for source files. 2012-03-15 15:15:32 +00:00
jimp03 e4b334e8c0 Add AStyleDll and AStyleLib folders for vs2010. 2012-03-15 15:14:39 +00:00
jimp03 f8c2c91b29 Add vs11 build files.
Add close-templates option.
Add C++/CLI pointers to align pointers.
Add ASTYLE_STATIC to compile options.
Changes for vs11 dynamic analysis.
Remove BOM from ASLocalizer.cpp.
2012-03-15 01:25:45 +00:00
jimp03 378b972728 Add vs11 build files.
Move vs2008 and 2010 AStyle build files to a separate directory.
Add tests for close-templates option.
Rename "win" python files to "locale".
2012-03-15 01:13:07 +00:00
jimp03 7219715440 Add vs11 build files.
Add project files for AStyleLib and AStyleDll.
Delete batch build files for  AStyleLib and AStyleDll.
2012-03-15 01:00:23 +00:00
jimp03 a27d91ce38 Add option for pad-first-paren-out.
Change short option for delete-empty-lines.
2012-02-26 18:40:18 +00:00
jimp03 2c2d47b339 Add tests for pad-first-paren-out.
Change short option for delete-empty-lines.
2012-02-26 18:36:44 +00:00
jimp03 ed3c61a537 Update Development files for 2.03.
Add VS2010 build files for Python examples.
2012-02-26 18:31:26 +00:00
jimp03 b1412cc3a9 Fix Java formatting of generics with wildcards (3428140).
Fix quote continuation sometimes being processed as a preprocessor directive (3445475).
Fix recognition of a macro multi-line comment (3414970).
2012-02-18 15:37:40 +00:00
jimp03 fccdf05337 Add tests for the following:
Fix Java formatting of generics with wildcards (3428140).
Fix quote continuation sometimes being processed as a preprocessor directive (3445475).
Fix recognition of a macro multi-line comment (3414970).
2012-02-18 15:35:45 +00:00
jimp03 348d06da88 Remove dist-copy.bat. 2012-02-06 00:45:54 +00:00
jimp03 86e55c2313 Fix C/C++ keyword 'extern "C"' in a preprocessor causing an extra indent.
Fix C++11 standard for  range-based "for" statements. 
Fix C++11 standard for "enum" with a base type. 
Fix 'struct' return type being mistaken for a struct. 
Fix non-portable return value on locale name. 
Fix spelling of "depreciated" in help message. 
Add static build to all Visual Studioconfigurations.
Update Java build to new JDK version.
2012-02-05 22:39:07 +00:00
jimp03 138dc8704e Add tests for AStyle changes. 2012-02-05 22:29:51 +00:00
jimp03 3bf6fa6b7e Add Visual Studio project files for C# examples.
Update Python examples.
Documentation updates.
2012-02-05 22:27:43 +00:00
jimp03 6274261f0f Add Python example scripts. 2011-12-29 23:57:23 +00:00
jimp03 db43d5c72b Add option indent=force-tab-x.
Create archive files for news.html and notes.html.
2011-11-27 15:49:34 +00:00
jimp03 05211845c9 Addtests for indent=force-tab-x. 2011-11-27 15:46:37 +00:00
jimp03 7631f3ed2e Update for version 2.02.1 fixes. 2011-11-21 17:20:46 +00:00
jimp03 16214b4416 Update for version 2.02.1 fixes. 2011-11-21 17:10:32 +00:00
jimp03 e91ebd494e Update for version 2.02.1 fixes. 2011-11-21 17:09:59 +00:00
jimp03 9e533d2079 Tests for new language translations.
Tests for max-code-length.
2011-11-07 02:28:46 +00:00
jimp03 771d3f6e61 New language translations.
More changes for max-xode-length.
2011-11-07 02:26:15 +00:00
jimp03 1a7dfb03b0 Update Max Code Length option. 2011-10-25 03:02:07 +00:00
jimp03 68193ca14b Update Max Code Length option.
Update python files.
2011-10-25 02:54:50 +00:00
jimp03 258d0cd30e Add Max Code Length and Break After Conditional options.
Changes to remove cppcheck options.
Add Piwik statements to html files.
2011-07-28 01:22:39 +00:00
jimp03 22ee1b3d1c Add Max Code Length and Break After Conditional tests.
Move AlignPointer and AlignReference tests from "Format" to "Pad" module.
Add "noclose" option to AStyleTest "main" modules.
Update Python scripts to version 3.2.
Update Python i18n tests.
2011-07-28 01:11:50 +00:00
jimp03 3c25c25a7a Final changes for release 2.02. 2011-05-16 16:54:30 +00:00
jimp03 0fdcad36f7 Final changes for release 2.02. 2011-05-16 16:53:50 +00:00
jimp03 288717802c Update script to release 2.02. 2011-05-16 16:52:57 +00:00
jimp03 2b52f42ff5 Documentation updates. 2011-05-16 01:31:41 +00:00
jimp03 7d7f57ea5f Documentation updates.
New download examples.
2011-05-16 01:29:54 +00:00
jimp03 5fad704d6c Increase max-instatement-indent to 120.
Update "help" display.
Update copyright notice.
2011-05-12 14:15:24 +00:00
jimp03 ba7fd1dd13 Add Lisp style. 2011-05-12 14:10:49 +00:00
jimp03 5e0a3e9224 Increase max-instatement-indent to 120.
Script updates.
2011-05-12 14:05:31 +00:00
jimp03 f8c188fe69 Add patch for break before assignment operator (3,292,880).
Fix align-pointer=middle sometines adding an extra space.
2011-05-09 22:07:48 +00:00
jimp03 e9278b596a Add test for break before assignment operator (3,292,880).
Changes for new astyle print format.
2011-05-09 22:04:00 +00:00
jimp03 3778f80ac4 Add Lisp bracket style.
Add "x" prefix to short options.
Add ignore exclude options (3,259,910).
Change to new print format.
Change locale error messages to cerr.
Update Intel Makefile.
2011-05-01 02:24:52 +00:00
jimp03 095fded81c Update localizer tests.
Change tests to new print format.
Add tests for ignore exclude options.
Split styles tests into two modules.
Change gmock to version 1.6.0.
2011-05-01 02:14:37 +00:00
jimp03 643cfb9560 Fix C++ example program aborts.
Redo Gcc and Intel project files.
2011-05-01 02:05:45 +00:00
jimp03 ff42b5089c Change C enumerations to allow in-statement indents (3,280,454). 2011-04-20 19:54:14 +00:00
jimp03 5198c87100 Change C enumerations to allow in-statement indents (3,280,454). 2011-04-20 19:53:49 +00:00
jimp03 48b23ed735 Add "x" prefix for short options.
Changes to add-brackets.
2011-04-20 01:24:21 +00:00
jimp03 414bcae3b8 Add "x" prefix for short options.
Changes to add-brackets.
2011-04-20 01:17:20 +00:00
jimp03 15edbc5552 Change ASLocale error procedure.
Fix add-brackets to not bracket an empty statement.
Change indentation of C++ "#pragma region" statements.
2011-04-19 02:43:32 +00:00
jimp03 45a88e73e7 Add tests. 2011-04-19 02:38:57 +00:00
jimp03 65501cbf77 Add "case" and "default" to ASFormatter headers (327621).
Fix "case" and "default" break-block procedures.
Add "volatile" to pre-command headers (3279856).
Fix xor (^) padding (3285639).
New print format.
2011-04-17 14:49:11 +00:00
jimp03 713c76b52d Changes to break-blocks, pad-headers, new print format.
New option ascii.
Add volitile to pre-command headers.
New i18n scripts.
2011-04-17 14:36:46 +00:00
jimp03 c9c890bf88 Add translating strings for "const" methods.
Add translation strings.
2011-04-13 02:57:13 +00:00
jimp03 579fb3cc61 Add translation strings.
New python test program.
2011-04-13 02:54:10 +00:00
jimp03 395a534e39 Add ASLocalizer class with language translations.
Add new "ascii" option.
Add fix for bug report 3259713.
Update scripts and project files.
2011-04-11 20:37:51 +00:00
jimp03 fcc5da57b6 Add tests for ASLocalizer class.
Add tests for new "ascii" option.
Add test for bug report 3259713.
Fix Utf16 death tests.
Fix TersePrinter abort.
Update scripts and project files.
2011-04-11 20:33:35 +00:00
jimp03 9675da97f3 Update script and project files. 2011-04-11 20:25:41 +00:00
jimp03 780826bd4d Add align-reference option.
Add volitile and override to pre-command headers.
Change pre-command headers processing in ASBeautifier.
Add keywords --try, --finally, and --except.
2011-03-28 16:36:44 +00:00
jimp03 680b09de6d Add tests for align-reference.
Add tests for pre-command headers.
Add tests for --try, --finally, --except.
2011-03-28 16:27:53 +00:00
jimp03 88b73b0d8a Change "Cannot set native locale" error message from cout to cerr (3,139,873).
Fix breaking a preprocessor define that has code after a comment end (3,132,531).
2011-03-22 16:51:55 +00:00
jimp03 e5736de31d Add test. 2011-03-22 16:46:13 +00:00
jimp03 bcca8b6ad5 Change Pico style to attach closing namespace and class brackets.
Add style=break and style=attach options.
Fix problem with “const” variable processing.
Fix problem with class indentation of run-in brackets.
2011-03-21 19:09:17 +00:00
jimp03 dbab76a20b Add Pico style tests.
Fix problem with "const" variable processing.
Fix problem with class indentation for run-in brackets.
2011-03-21 19:00:36 +00:00
jimp03 870921bf8b Change predefinedStyle to bracketStyle.
Remove default indent lengths.
Remove bracketFormatMode, bracketIndent, and blockIndent options.
2011-03-21 18:49:28 +00:00
jimp03 a86e727eca Add style=pico.
Remove style tab settings.
Remove indent-brackets and indent-blocks options.
Add "style=break" and "style=attach" options.
2011-02-21 22:21:31 +00:00
jimp03 5f284c5a2b Add tests for bracket chnages. 2011-02-21 22:13:39 +00:00
jimp03 1ac0017e7f Change static vectors to member vectors to allow multiple ASFormatter objects.
Change detect encoding function.
2011-02-08 16:07:32 +00:00
jimp03 cd9dcba7e6 Add language vector tests.
Change detect file encoding tests.
2011-02-08 15:59:08 +00:00
jimp03 061d5a536f Add UTF-16 processing.
Changes for MinGW lint check.
2011-02-04 18:40:34 +00:00
jimp03 1f24609b86 Add UTF-16 conversion to the testing. 2011-02-04 18:37:09 +00:00
jimp03 2e67bb3a0b Refactor ASBeautifire toshorten beatuofy() method.
Fix Linux infinite loop when a directory name is entered instead of a file name.
2010-12-13 15:22:58 +00:00
jimp03 95db46d348 Changes to python test scripts. 2010-12-13 15:12:10 +00:00
jimp03 ac55a329a0 Makefile and documentation updates.
Final update for release 2.01
2010-11-29 20:59:18 +00:00
jimp03 c36449c955 Update CodeBlocks project files.
Script updates.
Final update for release 2.01
2010-11-29 20:57:49 +00:00
jimp03 8506891d0f Update scripts.
Final update for release 2.01.
2010-11-29 20:55:58 +00:00
jimp03 023d38f622 Documentation updates. 2010-11-24 22:18:16 +00:00
jimp03 d68323536f Updates for release 1.5. 2010-11-24 22:16:28 +00:00
jimp03 16956c6b6a Add release 2.01 example downloads.
Update build files for current Java release.
2010-11-20 20:59:50 +00:00
jimp03 3dde0a8962 Minor fixes. 2010-11-20 20:55:43 +00:00
jimp03 01b7314ef6 Add tests.
Update batch and Python scripts.
2010-11-20 20:53:56 +00:00
jimp03 4cc9ecefed Remove make.sh. 2010-11-13 20:11:18 +00:00
jimp03 debce23f07 Indent OpenMP pragmas with the code.
Changes to Linux makefiles.
2010-11-07 14:30:27 +00:00
jimp03 97e061a997 Add tests. 2010-11-07 14:25:16 +00:00
jimp03 11b26f7c04 Format source using k1. 2010-11-01 15:13:48 +00:00
jimp03 436d8cbf38 Format source using k1. 2010-11-01 15:12:19 +00:00
jimp03 fe7d335c7f Fix preprocessor indentation problem. 2010-10-25 01:15:38 +00:00
jimp03 3c489aa9c9 Add tests. 2010-10-25 01:14:43 +00:00
jimp03 b40c9af03b Add operator padding to block parens.
Fix pad-paren problem.
Fix initializer formatting problem.
Fix problem with computing comma in-statement indent.
2010-10-20 15:12:14 +00:00
jimp03 b44beb33f4 Add tests. 2010-10-20 15:11:28 +00:00
jimp03 e5c3d5de65 Non in-statement indent fixes for C#. 2010-10-15 15:36:01 +00:00
jimp03 a6ec867b85 Add tests for non in-statement fixes. 2010-10-15 15:32:25 +00:00
jimp03 a0660bf7b9 Abort program if a pipe is used.
Improve recognition of templates.
Fix formatting when "volatile" modifier is used.
Fix add-brackets when a header is followed by only a semi-colon.
2010-09-27 14:43:35 +00:00
jimp03 5b50eb38fa Add tests. 2010-09-27 14:31:48 +00:00
jimp03 ec224317cb Fixes from new application tests. 2010-09-22 13:53:33 +00:00
jimp03 e6848a8a2e Add tests from new application testing. 2010-09-22 13:49:51 +00:00
jimp03 308e1d3d55 Changes from alternate regression and system testing. 2010-09-08 13:56:24 +00:00
jimp03 2834c2c43e Add Python alternate regression and ysytem tests.
Add tests.
2010-09-08 13:49:17 +00:00
jimp03 078327b680 Fix MinGW -Wshadow warnings.
Fix deleting the previous line when a closing bracket follows a comment close.
Add private (unusable) copy constructors for classes with dynamic allocation.
Change all destructors to virtual.
2010-08-25 19:45:00 +00:00
jimp03 887361fbb0 Add "Lint" configuration to MinGW, GCC, and Intel compiles. 2010-08-25 19:44:08 +00:00
jimp03 5454e284cd Add tests.
Fix Python test programs for locale changes.
2010-08-25 19:42:43 +00:00
jimp03 80169efeaf Change version to 2.01.
Documentation update.
2010-08-21 14:40:29 +00:00
jimp03 345e6531ea Add tests.
Add scripts.
2010-08-21 14:38:58 +00:00
jimp03 0822dbf765 Format a number according to the current locale.
Add displayLastError function to Windows error messages.
2010-08-12 15:32:00 +00:00
jimp03 46b649e135 Add i18n test module.
Change Windows file handling functions to unicode.
Add convertToMultiByte and convertToWideChar functions.
Add displayLastError function to Windows error messages.
2010-08-12 15:23:10 +00:00
jimp03 7e51d3ab56 Fix to setlocale. 2010-07-19 16:31:17 +00:00
jimp03 0685fdd57b Add remove retry to Windows clean function.
Change setting of test directory.
Add tests.
2010-07-18 18:14:41 +00:00
jimp03 e54a30b927 Update project files.
Minor source code changes.
2010-07-18 18:07:14 +00:00
jimp03 4ce1678e41 Set native locale for processing files and directories in various languages.
Fix VS2010 "string subscript out of range" warning.
Add formatting of MFC macros "BEGIN_DISPATCH_MAP, BEGIN_EVENT_MAP, and BEGIN_PROPPAGEIDS.
Minor changes to error and warning messages.
2010-07-18 18:03:06 +00:00
jimp03 d558c9c362 Bypass death tests for memory leak check.
Improve print tests.
Add anonymous namespaces.
2010-04-24 16:24:34 +00:00
jimp03 0e8145aac8 Update for new VS 2010 release.
Change in formatting options.
2010-04-24 16:19:13 +00:00
jimp03 c3ed867108 New modlue for print tests.
Add file name and line number to abort messages.
Improvements to python scripts.
2010-04-16 15:00:00 +00:00
jimp03 e88de63a6b Remove argc and argv from processOptions function. 2010-04-16 14:47:39 +00:00
jimp03 d58ed83430 Changes for min-conditional-indent. 2010-04-04 19:21:09 +00:00
jimp03 f499b2607f Add scripts 2010-04-04 18:54:11 +00:00
jimp03 9bb0ad20ee Update project files for Google unit test. 2010-04-04 18:45:07 +00:00
jimp03 98a7fb509b Delete old gtest project files. 2010-04-04 18:19:31 +00:00
jimp03 ef1dbee7eb Convert files to Google Test. 2010-03-31 23:08:27 +00:00
jimp03 844160dcc9 Changes for new min-conditional-indent option.
Change Linux style to always use one-half indent for min-conditional.
Remove depreciated options.
2010-03-16 16:20:15 +00:00
jimp03 1b802d2609 Changes for new min-conditional-indent option.
Minor changes to function names.
2010-03-16 16:14:22 +00:00
jimp03 07da758af0 Add ASOptions class. 2010-03-11 00:32:53 +00:00
jimp03 587c10f156 Change tests for addition of ASOptions class. 2010-03-11 00:28:43 +00:00
jimp03 d77dc6a650 Add checksum for debugging. 2010-03-08 17:32:57 +00:00
jimp03 1f6cf7cd3e Add tests.
Update scripts.
2010-03-08 17:28:47 +00:00
jimp03 fae620173c Fix formatting problems with pointers and references.
Fix formatting problem with templates.
Fix problem with comment combinations in peekNextText.
Remove unused code from gcov tests.
2010-03-01 18:06:09 +00:00
jimp03 7478098149 Add tests.
Update scripts.
2010-03-01 17:55:08 +00:00
jimp03 1df702d2c3 Refactor for gcov testing. 2010-02-13 18:22:01 +00:00
jimp03 6805e60219 Add tests. 2010-02-13 18:17:21 +00:00
jimp03 9825653fac Minor changes to examples. 2010-02-13 18:13:30 +00:00
jimp03 0fbd07d5b5 Minor changes to multi-line comments, SQL, and pointer processing. 2010-02-06 19:39:08 +00:00
jimp03 8991362e40 Add tests. 2010-02-06 19:36:37 +00:00
jimp03 9cf1c9ffe0 Change examples from relative files to absolute fles.
Update build files and html.
2010-02-06 19:34:57 +00:00
jimp03 861fcd8f59 Update SourceForge graphic. 2010-02-01 19:43:52 +00:00
jimp03 7224964ec1 Update scripts. 2010-02-01 19:27:06 +00:00
jimp03 ec5b337982 Update scripts. 2010-02-01 19:25:23 +00:00
jimp03 f2a3b7ccde Minor changes for release 1.24. 2010-02-01 19:15:48 +00:00
jimp03 c5585b8c1a Update distribution script. 2010-01-29 21:18:04 +00:00
jimp03 0c5026ec4d Update scripts. 2010-01-29 21:16:08 +00:00
jimp03 04f08fd05a Release 1.24 documentation update. 2010-01-29 21:11:51 +00:00
jimp03 8424f279e1 Documentation updates for release 1.24. 2010-01-28 18:54:25 +00:00
jimp03 bc5d320d16 Update scripts. 2010-01-28 18:44:15 +00:00
jimp03 521daa2690 Various updates for version 1.24. 2010-01-28 18:41:23 +00:00
jimp03 b113ec2240 Update to release 1.24. 2010-01-20 20:35:40 +00:00
jimp03 8073253f05 Update scripts. 2010-01-20 20:22:51 +00:00
jimp03 b09ae21c26 Delete VS AStyleStatic project.
Fix OpenVMS errno problem.
2010-01-13 22:38:29 +00:00
jimp03 2c2cfe6cd2 Update scripts. 2010-01-13 22:31:46 +00:00
jimp03 5f14351ec9 Add C++ class initialization indent.
Various fixes from system tests.
2009-12-30 22:39:40 +00:00
jimp03 db4bb692a5 Add system test scripts.
Add tests.
2009-12-30 22:37:06 +00:00
jimp03 f6ab4b1385 Add build/vs2010 directory. 2009-12-21 20:27:54 +00:00
jimp03 491ceee53f Add build/vs2010 directory. 2009-12-21 20:25:36 +00:00
jimp03 99f6d30e11 Add build/vs2010 files. 2009-12-21 20:17:27 +00:00
jimp03 574fa9470d Add tests for console "lineend" option.
Changes to enable ASConsole class to have private variables.
Use getters and setters from ASConsole class.
2009-12-21 19:09:40 +00:00
jimp03 b92faf0cb3 Documentation update.
Move "debug" compiles to a separate directory.
2009-12-21 19:06:12 +00:00
jimp03 2ef17be69b Change static vectors to static vector pointers to remove reported memory leaks.
Change "lineend" option to console only.
Add getters and setters for unit testing.
2009-12-21 19:01:12 +00:00
jimp03 8317fc2b3f Delete zips. 2009-12-10 00:39:29 +00:00
jimp03 c13834d1b6 Update Visual Studio Project files. 2009-12-09 23:31:09 +00:00
jimp03 d113a32fca Add C# projects. 2009-12-09 23:19:10 +00:00
jimp03 d2de30f94d Update Visual Studio Solutions. 2009-12-09 23:05:47 +00:00
jimp03 4c173d31e9 Update project and solution files. 2009-12-09 22:44:37 +00:00
jimp03 dfe005eec1 Documentation update. 2009-12-05 21:21:46 +00:00
jimp03 746d5b674b Update scripts. 2009-12-05 21:16:17 +00:00
jimp03 ef956d59c0 Fix memory leaks. 2009-12-05 20:58:17 +00:00
jimp03 2c7faeab3a Update python scripts. 2009-11-30 19:50:10 +00:00
jimp03 3401b9d2c5 Update documentation links. 2009-11-30 19:49:13 +00:00
jimp03 c63ea4909f Update scripts. 2009-11-30 19:45:59 +00:00
jimp03 7401e29c56 Add downloads folder. 2009-11-24 19:18:37 +00:00
jimp03 0d7b5b0367 Import Downloads. 2009-11-24 16:49:32 +00:00
jimp03 9287d1450e Changes for python file checking. 2009-11-23 18:09:41 +00:00
jimp03 fbf612f03b Add scripts. 2009-11-23 18:07:13 +00:00
jimp03 f8d4c462bd Add lineend option. 2009-11-21 23:03:59 +00:00
jimp03 a6e32260f6 Add tests.
Add new python scripts.
2009-11-21 22:59:51 +00:00
jimp03 7a6ca8f56c Reinstate preserve-date.
Refactor ASConsole class for unit testing.
2009-11-18 22:37:59 +00:00
jimp03 5de58e26f5 Update project files. 2009-11-18 22:29:19 +00:00
jimp03 d418ae7365 Add tests to AStyleTestCon. 2009-11-18 22:25:51 +00:00
jimp03 4dc8c004cf Indent structs that contain access modifiers.
Fix update to activeBeautifierStack.
New method copyTempStacks.
Remove commented-out code.
2009-11-09 19:31:22 +00:00
jimp03 071857ee3c Update python scripts. 2009-11-09 19:15:54 +00:00
jimp03 c1d3c49421 Update python files. 2009-11-05 00:44:47 +00:00
jimp03 3f7627aebe Fix struct indentation for --indent-classes.
Fix operator << and >> formatting.
2009-11-05 00:24:09 +00:00
jimp03 41a644c477 Add tests.
Update batch files.
2009-11-05 00:17:18 +00:00
jimp03 e196c03373 Remove warnings from PrintDirTest.cpp.
Update project fies.
2009-11-05 00:15:00 +00:00
jimp03 9a34f64b93 Fix multiple assignments.
Fix to << and >> operator formatting.
2009-10-31 21:45:50 +00:00
jimp03 6fb16bc728 Add tests.
Update project files.
2009-10-31 21:42:49 +00:00
jimp03 a49418c300 Update project files. 2009-10-31 21:41:39 +00:00
jimp03 ccf2f10392 Add assembler formatting.
Fix to --align-pointer option.
2009-10-26 19:28:11 +00:00
jimp03 eb4b65068d Add tests. 2009-10-26 19:27:02 +00:00
jimp03 37c0b46950 Add indentation for << and >> operators. 2009-10-22 21:35:00 +00:00
jimp03 a62cfabc76 Add tests. 2009-10-22 21:33:08 +00:00
jimp03 8a1153c83b New script. 2009-10-19 18:20:10 +00:00
jimp03 cd40f06f51 Fix file encoding procedure. 2009-10-19 17:41:00 +00:00
jimp03 3b3b20a352 Add tests. 2009-10-19 17:40:19 +00:00
jimp03 70d3712038 Update scripts and console tests. 2009-10-17 21:09:49 +00:00
jimp03 fe4e580250 Add new option --indent-col1-comments (-Y) to indent C++ comments beginning in column one.
Add rejecting 16 or 32 bit file encoding and displaying a warning message.
Fix in-statement indent of "enum class".
Fix 'if' statement following an 'else' sometimes attaching to a comment.
2009-10-16 21:59:22 +00:00
jimp03 5375203fc2 Add tests. 2009-10-16 21:53:14 +00:00
jimp03 5968e5e2bf Add build for codelite. 2009-10-16 21:40:45 +00:00
jimp03 320ec6f5c1 Update project files. 2009-10-16 21:40:14 +00:00
jimp03 6f7fd2a11d Add cast formatting to --align-pointer.
Improve --align-pointer formatting.
Changes for compiler compatability.
Add make.sh script for Linux Intel compiler.
2009-09-29 21:46:59 +00:00
jimp03 a6780f25d2 Add CodeBlocks Embarcadero compiler. 2009-09-29 21:43:50 +00:00
jimp03 fd81da3752 Update CodeBlocks workspaces. 2009-09-29 21:34:16 +00:00
jimp03 25e4cb1d45 Add tests. 2009-09-29 21:30:57 +00:00
jimp03 622d30c28c Update scripts. 2009-09-29 21:30:13 +00:00
jimp03 94cb67e7ce Add embedded SQL formatting. 2009-09-18 21:38:46 +00:00
jimp03 2205b24e52 Update scripts. 2009-09-18 21:37:31 +00:00
jimp03 bd55459e42 Add tests. 2009-09-18 21:36:46 +00:00
jimp03 433fe1aacf Fix recognition of non-indent line comments in the first two ines of a source file.
Fix indenting non-indent line comments in an event table or message map.
Refactor ASEnhancer.
2009-09-10 00:01:06 +00:00
jimp03 e513eb6b1a Add tests. 2009-09-09 23:54:50 +00:00
jimp03 825e9b479f New predefined style 1tbs.
new options add-brackets and add-one-line-brackets.
Move manually set flags to ASBeautifier.
2009-09-02 22:10:57 +00:00
jimp03 3f8b8fd67b Add tests. 2009-09-02 22:04:57 +00:00
jimp03 b3591cf0e4 Update scripts. 2009-09-02 22:04:33 +00:00
jimp03 4adb2be6a2 Update to add-brackets option.
Add 1TBS predefined style.
Recompile conditionals with isOkToBreakBlocks() function.
2009-08-26 22:51:24 +00:00
jimp03 604dde1df0 Add tests. 2009-08-26 22:49:44 +00:00
jimp03 ee69b83db3 Fix line break after comments when a bracket is attached to the previous line.
Change class continuation line to one indent.
Fix formatting of "extern" statement with Horstmann brackets.
Start add-brackets coding.
2009-08-24 19:19:05 +00:00
jimp03 7788128724 Update scripts. 2009-08-24 19:11:43 +00:00
jimp03 2c66cf588f Add tests. 2009-08-24 19:10:51 +00:00
jimp03 5d986061d9 Change .tmp file to ostringstream.
Remove preserve-date option.
Change pointer-align option from 'center' to 'middle'.
Extract function formatCinToCout.
2009-08-10 16:42:31 +00:00
jimp03 1a67a6bfa3 Minor changes. 2009-08-10 16:36:52 +00:00
jimp03 a5fb346777 Add algn-pointer=center option.
Improve pointer and reference identification.
Add identification of dereferences and address-of.
Fix template identification.
Encapsulate ASFormatter public variables.
2009-08-08 16:58:55 +00:00
jimp03 571f15c5fc Add tests.
Update scripts.
2009-08-08 16:54:36 +00:00
jimp03 c619714316 Changes for unit testing of ASConsole class. 2009-07-27 16:33:26 +00:00
jimp03 62722a527b New AStyleTestCon project to test ASConsole class.
New Leakfinder program module.
2009-07-27 16:30:41 +00:00
jimp03 af7d7ed4aa Add pointer operator alignment from J P Nurmi. 2009-07-15 22:19:42 +00:00
jimp03 60613875b5 Update project files. 2009-07-15 22:12:09 +00:00
jimp03 89a64e72f7 Add tests. 2009-07-15 22:10:30 +00:00
jimp03 341b340c88 Final changes to Horstmann brackets.
Fix C# 'delegate' statements.
2009-06-29 19:17:22 +00:00
jimp03 ef1c70f252 Update project files. 2009-06-29 19:10:46 +00:00
jimp03 c785d98c00 Update scripts. 2009-06-29 19:09:04 +00:00
jimp03 366718fbcb Add tests. 2009-06-29 19:07:48 +00:00
jimp03 1ac9644a9d Add Horstmann style.
Fixes to Horstmann brackets.
Improve array formatting.
Changes to in-statement indent.
Refactor quotes and comments.
2009-06-17 23:23:48 +00:00
jimp03 0f5c89020b Add tests. 2009-06-17 23:21:36 +00:00
jimp03 e81a2411dd Changes for Horstmann array brackets. 2009-06-11 01:09:56 +00:00
jimp03 af7d0b2f8d Add tests. 2009-06-11 01:07:47 +00:00
jimp03 93169001be Move comment alignment from ASBeautifier to ASFormatter.
Fix class header formatting.
Fix 'extern' formatting.
Separate functions for comment formatting.
Separate functions for opening and closing brackets.
2009-05-29 16:02:06 +00:00
jimp03 735335aea8 Add scripts. 2009-05-29 15:59:20 +00:00
jimp03 6724d49545 Update scripts. 2009-05-29 15:57:55 +00:00
jimp03 d72062c4c8 Add tests. 2009-05-29 15:54:23 +00:00
jimp03 f81bf48746 Fixes for Horstmann brackets. 2009-05-20 23:18:57 +00:00
jimp03 149ea86d66 Add tests. 2009-05-20 23:18:09 +00:00
jimp03 1e69b1bf8f Update notes. 2009-05-13 23:26:52 +00:00
jimp03 ea6d2a205c Fixes to brackets=horstmann and brackets=attach. 2009-05-13 23:26:01 +00:00
jimp03 068270c2ea Add tests. 2009-05-13 23:21:48 +00:00
jimp03 91565eb811 Update build files. 2009-05-09 18:55:42 +00:00
jimp03 63eda30e7e Update scripts. 2009-05-09 18:54:40 +00:00
jimp03 c2f836f07f Change allow-runins to brackets=horstmann.
Allow for tab characters in continuation lines.
Replace lineBeginsWith() function with a variable.
2009-05-09 18:53:58 +00:00
jimp03 4512e83692 Update makefiles. 2009-05-09 18:47:11 +00:00
jimp03 e5e0f72391 Update docs. 2009-05-09 18:44:56 +00:00
jimp03 ef7423b015 Update build files. 2009-05-09 18:32:01 +00:00
jimp03 cacbf2151d Update scripts. 2009-05-09 18:28:02 +00:00
jimp03 12e335d410 Update scripts. 2009-05-09 17:24:59 +00:00
jimp03 21868eefd4 Update scripts. 2009-05-09 17:09:50 +00:00
jimp03 411f897353 Update scripts. 2009-05-09 17:03:45 +00:00
jimp03 8992f31db5 Add tests. 2009-05-09 17:01:53 +00:00
jimp03 94ae7e1baf Add allow-runins option - phase 1.
Change to output an entire comment instead of single chars.
Change to output an entire quote instead of single chars.
Break comments from opening broken brackets.
Fix break-blocks for consecutive comments.
Refactor STL "find" statements into isEmptyLine function.
Add new "Pading Options" section to help display.
Fix to always use peekNexChar funcion from ASBase
2009-04-15 21:45:32 +00:00
jimp03 13ebc822e4 Add tests. 2009-04-15 21:23:43 +00:00
jimp03 4d0d98688b Restore file. 2009-04-15 21:19:34 +00:00
jimp03 379b72dedf Add pad-header option.
Change unpad-paren option.
2009-03-30 15:47:21 +00:00
jimp03 9f71f25a9c Add pad-header tests.
Change unpad-paren tests.
2009-03-30 15:17:42 +00:00
jimp03 50325acc96 Change properties. 2009-03-30 15:12:08 +00:00
jimp03 e4f15fb4e7 Add AStyleTest.h header file.
Change compile options.
2009-03-28 18:17:56 +00:00
jimp03 245db76f3c Add AStyleTest.h header file.
Change errorHandler function.
Add tests.
2009-03-28 18:16:07 +00:00
jimp03 793163b70e Remove trace file from ASFormatter and use 'cout' instead.
Changes from Ettl Martin for cppcheck compilance.
2009-03-28 18:09:12 +00:00
jimp03 381ca9ca5e Add tests. 2009-03-25 22:48:36 +00:00
jimp03 889e2e0e04 Fix ‑‑fill‑empty‑lines when ‑‑indent=force‑tab is also used. 2009-03-25 22:45:34 +00:00
jimp03 b4c25ab4c9 Add "formatted" option to index. 2009-03-25 22:44:45 +00:00
jimp03 7f5c7ea32f Format with Artistic Style. 2009-03-21 20:52:49 +00:00
jimp03 11cb9d96c7 Add scripts. 2009-03-21 20:51:41 +00:00
jimp03 0e026744c4 Fix MinGW file globbing.
Format with Artistic Style.
2009-03-21 20:49:09 +00:00
jimp03 6b973117df Change to distro of UnitTest++. 2009-03-20 15:55:43 +00:00
jimp03 ed1870dfd4 Add TEXT_FIXTURE macro. 2009-03-20 15:53:36 +00:00
jimp03 fd5c53c6a8 Add notes. 2009-03-20 15:51:19 +00:00
jimp03 bbb6d03f91 Change release to 1.24. 2009-03-20 15:50:30 +00:00
jimp03 e9577cc88c Fix MinGW file globbing. 2009-03-20 15:48:20 +00:00
jimp03 db48f8900f Fix Borland abort on string compares.
Fix memory leak due to static member variables.
2009-03-18 21:27:33 +00:00
jimp03 eb48ce4bc2 New release 1.24 pending sections.
New install instructions.
New SorceForge logos.
2009-03-18 21:23:54 +00:00
jimp03 831744958b Update svn batch files. 2009-03-18 21:20:26 +00:00
jimp03 41c5c05869 Initial import. 2009-03-14 17:34:37 +00:00
jimp03 2a851a54d5 Initial import. 2009-03-14 17:34:31 +00:00
jimp03 9e7be0fb28 Initial import. 2009-03-14 17:34:26 +00:00
jimp03 5e5c48ad42 Initial import. 2009-03-14 17:34:20 +00:00
jimp03 1708bc9ce5 Initial import. 2009-03-14 17:34:12 +00:00
jimp03 f3d31d31d0 Initial import. 2009-03-14 17:34:04 +00:00
jimp03 378c482f61 Initial import. 2009-03-14 17:33:50 +00:00
jimp03 ea4f7d64e3 Initial import. 2009-03-14 17:33:43 +00:00
jimp03 3af03ff6a0 Initial import. 2009-03-14 17:30:01 +00:00
jimp03 405e81fca3 Initial import. 2009-03-14 17:29:55 +00:00
jimp03 b40ddb717f Initial import. 2009-03-14 17:29:49 +00:00
jimp03 8476973721 Initial import. 2009-03-14 17:29:43 +00:00
jimp03 628a265615 Initial import. 2009-03-14 17:29:36 +00:00
jimp03 ec2f635f74 Initial import. 2009-03-14 17:29:29 +00:00
jimp03 24b76e979e Initial import. 2009-03-14 17:29:23 +00:00
jimp03 11c16f9946 Initial import. 2009-03-14 17:29:17 +00:00
jimp03 4c62b89ce9 Initial import. 2009-03-14 17:29:11 +00:00
jimp03 dde7875600 Initial import. 2009-03-14 17:29:05 +00:00
jimp03 14b761a006 Initial import. 2009-03-14 17:28:59 +00:00
jimp03 d2871711eb Initial import. 2009-03-14 17:28:53 +00:00
jimp03 95e106718e Initial import. 2009-03-14 17:28:48 +00:00
jimp03 b1515fea8c Initial import. 2009-03-14 17:28:40 +00:00
jimp03 c4c8b8d3b6 Initial import. 2009-03-14 17:28:31 +00:00
jimp03 269d155364 Initial import. 2009-03-14 17:28:21 +00:00
jimp03 c8ca9e3a24 Initial import. 2009-03-14 17:28:13 +00:00
jimp03 1713bb9f44 Initial import. 2009-03-14 17:28:03 +00:00
jimp03 88190bef0b Initial import. 2009-03-14 17:27:57 +00:00
jimp03 bead93b65a Initial import. 2009-03-14 17:27:50 +00:00
jimp03 5ff943a706 Initial import. 2009-03-14 17:27:43 +00:00
jimp03 accaf44ca1 Initial import. 2009-03-14 17:27:37 +00:00
jimp03 99915ea2c9 Initial import. 2009-03-14 17:27:31 +00:00
jimp03 262f4a4c25 Initial import. 2009-03-14 17:27:24 +00:00
jimp03 68b0418675 Initial import. 2009-03-14 17:27:17 +00:00
jimp03 67da960f73 Initial import. 2009-03-14 17:27:10 +00:00
jimp03 d11a7e3444 Initial import. 2009-03-14 17:27:04 +00:00
jimp03 7d356cfa16 Initial import. 2009-03-14 17:26:58 +00:00
jimp03 7407a3df75 Initial import. 2009-03-14 17:26:51 +00:00
jimp03 228e6a076a Initial import. 2009-03-14 17:26:45 +00:00
jimp03 c01c41bf66 Initial import. 2009-03-14 17:26:31 +00:00
jimp03 bd5174f097 Release 1.23. 2009-03-14 17:21:51 +00:00
jimp03 097ffad3a1 Release 1.23. 2009-03-14 17:21:44 +00:00
jimp03 3bc39d0df8 Release 1.23. 2009-03-14 17:21:38 +00:00
jimp03 29999563c0 Release 1.23. 2009-03-14 17:21:31 +00:00
jimp03 b702c95fcd Release 1.23. 2009-03-14 17:21:24 +00:00
jimp03 fcfbd89fc0 Release 1.23. 2009-03-14 17:21:18 +00:00
jimp03 fde31cab2a Release 1.23. 2009-03-14 17:21:13 +00:00
jimp03 c7f1f5b86d Release 1.23. 2009-03-14 17:21:05 +00:00
jimp03 8f0b352b0a Release 1.23. 2009-03-14 17:20:56 +00:00
1393 changed files with 259366 additions and 50346 deletions
-303
View File
@@ -1,303 +0,0 @@
# 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
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
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
@@ -1,56 +0,0 @@
# 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
+12 -24
View File
@@ -1,25 +1,13 @@
# 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
.DS_Store?
.vscode
CMakeLists.txt.user
/.vs
/CMakeSettings.json
/CMakeUserPresets.json
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/
+17
View File
@@ -0,0 +1,17 @@
# 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
@@ -0,0 +1,45 @@
## 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. -->
-309
View File
@@ -1,309 +0,0 @@
[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 = master
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 "linenoise/linenoise"]
path = linenoise/linenoise
url = https://github.com/BRL-CAD/linenoise
branch = RELEASE
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
+222
View File
@@ -0,0 +1,222 @@
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
@@ -0,0 +1,21 @@
### 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
@@ -0,0 +1,9 @@
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
@@ -0,0 +1,257 @@
# 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
@@ -0,0 +1,254 @@
# 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
@@ -0,0 +1,268 @@
# 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
@@ -0,0 +1,222 @@
# 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
@@ -0,0 +1,31 @@
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
@@ -0,0 +1,143 @@
<?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>
@@ -0,0 +1,49 @@
<?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
@@ -0,0 +1,37 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.28516.95
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AStyle", "AStyle\AStyle.vcxproj", "{24189F85-8CB6-4993-8530-855BD6C8B70A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
Static|x64 = Static|x64
Static|x86 = Static|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Debug|x64.ActiveCfg = Debug|x64
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Debug|x64.Build.0 = Debug|x64
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Debug|x86.ActiveCfg = Debug|Win32
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Debug|x86.Build.0 = Debug|Win32
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Release|x64.ActiveCfg = Release|x64
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Release|x64.Build.0 = Release|x64
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Release|x86.ActiveCfg = Release|Win32
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Release|x86.Build.0 = Release|Win32
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Static|x64.ActiveCfg = Static|x64
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Static|x64.Build.0 = Static|x64
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Static|x86.ActiveCfg = Static|Win32
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Static|x86.Build.0 = Static|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {C49A012F-6AB6-4660-B927-2AAF54D082AA}
EndGlobalSection
EndGlobal
+37
View File
@@ -0,0 +1,37 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.28516.95
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AStyle Dll", "AStyle Dll\AStyle Dll.vcxproj", "{07229666-1841-4021-B206-1A8917985A66}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
Static|x64 = Static|x64
Static|x86 = Static|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{07229666-1841-4021-B206-1A8917985A66}.Debug|x64.ActiveCfg = Debug|x64
{07229666-1841-4021-B206-1A8917985A66}.Debug|x64.Build.0 = Debug|x64
{07229666-1841-4021-B206-1A8917985A66}.Debug|x86.ActiveCfg = Debug|Win32
{07229666-1841-4021-B206-1A8917985A66}.Debug|x86.Build.0 = Debug|Win32
{07229666-1841-4021-B206-1A8917985A66}.Release|x64.ActiveCfg = Release|x64
{07229666-1841-4021-B206-1A8917985A66}.Release|x64.Build.0 = Release|x64
{07229666-1841-4021-B206-1A8917985A66}.Release|x86.ActiveCfg = Release|Win32
{07229666-1841-4021-B206-1A8917985A66}.Release|x86.Build.0 = Release|Win32
{07229666-1841-4021-B206-1A8917985A66}.Static|x64.ActiveCfg = Static|x64
{07229666-1841-4021-B206-1A8917985A66}.Static|x64.Build.0 = Static|x64
{07229666-1841-4021-B206-1A8917985A66}.Static|x86.ActiveCfg = Static|Win32
{07229666-1841-4021-B206-1A8917985A66}.Static|x86.Build.0 = Static|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {71D57643-84DD-4750-89C3-6369BEA22324}
EndGlobalSection
EndGlobal
@@ -0,0 +1,282 @@
<?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>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<AdditionalOptions>/EXPORT:AStyleMain=_AStyleMain@16
/EXPORT:AStyleMainUtf16=_AStyleMainUtf16@16
/EXPORT:AStyleGetVersion=_AStyleGetVersion@0</AdditionalOptions>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<WarningLevel>Level4</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_DEBUG;ASTYLE_LIB</PreprocessorDefinitions>
<RuntimeTypeInfo>false</RuntimeTypeInfo>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<MinimalRebuild>false</MinimalRebuild>
<AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level4</WarningLevel>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>NDEBUG;_HAS_EXCEPTIONS=0;ASTYLE_LIB</PreprocessorDefinitions>
<RuntimeTypeInfo>false</RuntimeTypeInfo>
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
<OmitFramePointers>true</OmitFramePointers>
<ExceptionHandling>false</ExceptionHandling>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
<ConformanceMode>true</ConformanceMode>
<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>
</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>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>No</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\..\src\ASBeautifier.cpp" />
<ClCompile Include="..\..\..\src\ASEnhancer.cpp" />
<ClCompile Include="..\..\..\src\ASFormatter.cpp" />
<ClCompile Include="..\..\..\src\ASResource.cpp" />
<ClCompile Include="..\..\..\src\astyle_main.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\src\astyle.h" />
<ClInclude Include="..\..\..\src\astyle_main.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hh;hpp;hxx;hm;inl;inc;ipp;xsd</Extensions>
</Filter>
<Filter Include="Resource Files">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\src\astyle.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\src\astyle_main.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\..\src\ASBeautifier.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\src\ASEnhancer.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\src\ASFormatter.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\src\ASResource.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\src\astyle_main.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
</Project>
+37
View File
@@ -0,0 +1,37 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.28516.95
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AStyle Java", "AStyle Java\AStyle Java.vcxproj", "{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
Static|x64 = Static|x64
Static|x86 = Static|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Debug|x64.ActiveCfg = Debug|x64
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Debug|x64.Build.0 = Debug|x64
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Debug|x86.ActiveCfg = Debug|Win32
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Debug|x86.Build.0 = Debug|Win32
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Release|x64.ActiveCfg = Release|x64
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Release|x64.Build.0 = Release|x64
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Release|x86.ActiveCfg = Release|Win32
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Release|x86.Build.0 = Release|Win32
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Static|x64.ActiveCfg = Static|x64
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Static|x64.Build.0 = Static|x64
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Static|x86.ActiveCfg = Static|Win32
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Static|x86.Build.0 = Static|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {A4619C60-3409-478F-B944-70443175BDEB}
EndGlobalSection
EndGlobal
@@ -0,0 +1,287 @@
<?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>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>No</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<AdditionalOptions>/EXPORT:AStyleMain=_AStyleMain@16
/EXPORT:AStyleMainUtf16=_AStyleMainUtf16@16
/EXPORT:AStyleGetVersion=_AStyleGetVersion@0 %(AdditionalOptions)</AdditionalOptions>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level4</WarningLevel>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>NDEBUG;_HAS_EXCEPTIONS=0;ASTYLE_JNI</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(JAVA_HOME)\include;$(JAVA_HOME)\include\win32</AdditionalIncludeDirectories>
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
<OmitFramePointers>true</OmitFramePointers>
<RuntimeTypeInfo>false</RuntimeTypeInfo>
<ExceptionHandling>false</ExceptionHandling>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>No</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Static|x64'">
<ClCompile>
<WarningLevel>Level4</WarningLevel>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>NDEBUG;_HAS_EXCEPTIONS=0;ASTYLE_JNI</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(JAVA_HOME)\include;$(JAVA_HOME)\include\win32</AdditionalIncludeDirectories>
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
<OmitFramePointers>true</OmitFramePointers>
<RuntimeTypeInfo>false</RuntimeTypeInfo>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<ExceptionHandling>false</ExceptionHandling>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>No</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\..\src\ASBeautifier.cpp" />
<ClCompile Include="..\..\..\src\ASEnhancer.cpp" />
<ClCompile Include="..\..\..\src\ASFormatter.cpp" />
<ClCompile Include="..\..\..\src\ASResource.cpp" />
<ClCompile Include="..\..\..\src\astyle_main.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\src\astyle.h" />
<ClInclude Include="..\..\..\src\astyle_main.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hh;hpp;hxx;hm;inl;inc;ipp;xsd</Extensions>
</Filter>
<Filter Include="Resource Files">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\src\astyle.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\src\astyle_main.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\..\src\ASBeautifier.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\src\ASEnhancer.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\src\ASFormatter.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\src\ASResource.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\src\astyle_main.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
</Project>
+37
View File
@@ -0,0 +1,37 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.28516.95
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AStyle Lib", "AStyle Lib\AStyle Lib.vcxproj", "{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
Static|x64 = Static|x64
Static|x86 = Static|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Debug|x64.ActiveCfg = Debug|x64
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Debug|x64.Build.0 = Debug|x64
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Debug|x86.ActiveCfg = Debug|Win32
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Debug|x86.Build.0 = Debug|Win32
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Release|x64.ActiveCfg = Release|x64
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Release|x64.Build.0 = Release|x64
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Release|x86.ActiveCfg = Release|Win32
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Release|x86.Build.0 = Release|Win32
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Static|x64.ActiveCfg = Static|x64
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Static|x64.Build.0 = Static|x64
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Static|x86.ActiveCfg = Static|Win32
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Static|x86.Build.0 = Static|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {9A55493F-97EF-4723-B937-B41EBB84F52B}
EndGlobalSection
EndGlobal
@@ -0,0 +1,269 @@
<?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>
</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>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\..\src\ASBeautifier.cpp" />
<ClCompile Include="..\..\..\src\ASEnhancer.cpp" />
<ClCompile Include="..\..\..\src\ASFormatter.cpp" />
<ClCompile Include="..\..\..\src\ASResource.cpp" />
<ClCompile Include="..\..\..\src\astyle_main.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\src\astyle.h" />
<ClInclude Include="..\..\..\src\astyle_main.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hh;hpp;hxx;hm;inl;inc;ipp;xsd</Extensions>
</Filter>
<Filter Include="Resource Files">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\src\astyle.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\src\astyle_main.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\..\src\ASBeautifier.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\src\ASEnhancer.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\src\ASFormatter.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\src\ASResource.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\src\astyle_main.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
</Project>
+290
View File
@@ -0,0 +1,290 @@
<?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>
</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>
</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>
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hh;hpp;hxx;hm;inl;inc;ipp;xsd</Extensions>
</Filter>
<Filter Include="Resource Files">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\..\src\ASBeautifier.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\src\ASEnhancer.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\src\ASFormatter.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\src\ASLocalizer.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\src\ASResource.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\src\astyle_main.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\src\ASLocalizer.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\src\astyle.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\src\astyle_main.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
</Project>
+79
View File
@@ -0,0 +1,79 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.28516.95
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AStyle", "AStyle\AStyle.vcxproj", "{24189F85-8CB6-4993-8530-855BD6C8B70A}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AStyle Dll", "AStyle Dll\AStyle Dll.vcxproj", "{07229666-1841-4021-B206-1A8917985A66}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AStyle Java", "AStyle Java\AStyle Java.vcxproj", "{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AStyle Lib", "AStyle Lib\AStyle Lib.vcxproj", "{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
Static|x64 = Static|x64
Static|x86 = Static|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Debug|x64.ActiveCfg = Debug|x64
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Debug|x64.Build.0 = Debug|x64
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Debug|x86.ActiveCfg = Debug|Win32
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Debug|x86.Build.0 = Debug|Win32
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Release|x64.ActiveCfg = Release|x64
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Release|x64.Build.0 = Release|x64
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Release|x86.ActiveCfg = Release|Win32
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Release|x86.Build.0 = Release|Win32
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Static|x64.ActiveCfg = Static|x64
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Static|x64.Build.0 = Static|x64
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Static|x86.ActiveCfg = Static|Win32
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Static|x86.Build.0 = Static|Win32
{07229666-1841-4021-B206-1A8917985A66}.Debug|x64.ActiveCfg = Debug|x64
{07229666-1841-4021-B206-1A8917985A66}.Debug|x64.Build.0 = Debug|x64
{07229666-1841-4021-B206-1A8917985A66}.Debug|x86.ActiveCfg = Debug|Win32
{07229666-1841-4021-B206-1A8917985A66}.Debug|x86.Build.0 = Debug|Win32
{07229666-1841-4021-B206-1A8917985A66}.Release|x64.ActiveCfg = Release|x64
{07229666-1841-4021-B206-1A8917985A66}.Release|x64.Build.0 = Release|x64
{07229666-1841-4021-B206-1A8917985A66}.Release|x86.ActiveCfg = Release|Win32
{07229666-1841-4021-B206-1A8917985A66}.Release|x86.Build.0 = Release|Win32
{07229666-1841-4021-B206-1A8917985A66}.Static|x64.ActiveCfg = Static|x64
{07229666-1841-4021-B206-1A8917985A66}.Static|x64.Build.0 = Static|x64
{07229666-1841-4021-B206-1A8917985A66}.Static|x86.ActiveCfg = Static|Win32
{07229666-1841-4021-B206-1A8917985A66}.Static|x86.Build.0 = Static|Win32
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Debug|x64.ActiveCfg = Debug|x64
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Debug|x64.Build.0 = Debug|x64
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Debug|x86.ActiveCfg = Debug|Win32
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Debug|x86.Build.0 = Debug|Win32
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Release|x64.ActiveCfg = Release|x64
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Release|x64.Build.0 = Release|x64
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Release|x86.ActiveCfg = Release|Win32
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Release|x86.Build.0 = Release|Win32
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Static|x64.ActiveCfg = Static|x64
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Static|x64.Build.0 = Static|x64
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Static|x86.ActiveCfg = Static|Win32
{4EDD4F9E-2088-4FE1-BDED-9357F05305CB}.Static|x86.Build.0 = Static|Win32
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Debug|x64.ActiveCfg = Debug|x64
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Debug|x64.Build.0 = Debug|x64
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Debug|x86.ActiveCfg = Debug|Win32
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Debug|x86.Build.0 = Debug|Win32
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Release|x64.ActiveCfg = Release|x64
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Release|x64.Build.0 = Release|x64
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Release|x86.ActiveCfg = Release|Win32
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Release|x86.Build.0 = Release|Win32
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Static|x64.ActiveCfg = Static|x64
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Static|x64.Build.0 = Static|x64
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Static|x86.ActiveCfg = Static|Win32
{5CBCE435-6123-4FFA-A5C7-B91EA0FAE44E}.Static|x86.Build.0 = Static|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {33934F68-90BE-4D0F-B5D0-5EEF8F43412D}
EndGlobalSection
EndGlobal
@@ -0,0 +1,306 @@
// !$*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 */;
}
@@ -0,0 +1,16 @@
<?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>
@@ -0,0 +1,310 @@
// !$*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 */;
}
@@ -0,0 +1,316 @@
// !$*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 */;
}
@@ -0,0 +1,327 @@
// !$*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
@@ -0,0 +1,96 @@
#!/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
@@ -0,0 +1,79 @@
#!/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
@@ -0,0 +1,157 @@
<!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.

After

Width:  |  Height:  |  Size: 318 B

+260
View File
@@ -0,0 +1,260 @@
<!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
@@ -0,0 +1,632 @@
<!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
@@ -0,0 +1,228 @@
<!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
@@ -0,0 +1,607 @@
<!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
+510
View File
@@ -0,0 +1,510 @@
<!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.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
@@ -0,0 +1,82 @@
<!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
@@ -0,0 +1,460 @@
/* 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
@@ -0,0 +1,123 @@
<!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
@@ -0,0 +1,92 @@
<!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
@@ -0,0 +1,23 @@
### 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
@@ -0,0 +1,24 @@
# 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
@@ -0,0 +1,37 @@
# 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
@@ -0,0 +1,34 @@
# 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
@@ -0,0 +1,119 @@
---
# 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
@@ -0,0 +1,119 @@
---
# 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
@@ -0,0 +1,117 @@
---
# 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
@@ -0,0 +1,117 @@
---
# 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
@@ -0,0 +1,37 @@
---
# 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
@@ -0,0 +1,117 @@
---
# 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
@@ -0,0 +1,33 @@
# 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
@@ -0,0 +1,36 @@
# 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
@@ -0,0 +1,26 @@
# 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
@@ -0,0 +1,23 @@
# 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
@@ -0,0 +1,24 @@
# 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
@@ -0,0 +1,33 @@
# 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
@@ -0,0 +1,35 @@
# 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
@@ -0,0 +1,27 @@
# 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
@@ -0,0 +1,34 @@
# 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
@@ -0,0 +1,33 @@
# 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
+545
View File
@@ -0,0 +1,545 @@
.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.
.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.
.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"
Remove braces from a braced one line conditional statements.
.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/.
+93
View File
@@ -0,0 +1,93 @@
_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 --break-return-type --attach-return-type-decl --keep-one-line-blocks --keep-one-line-statements --convert-tabs --close-templates --remove-comment-prefix --max-code-length --break-after-logical --mode --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 --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" -- "$cur"))
return 0
;;
--indent)
COMPREPLY=($(compgen -W "spaces tab force-tab force-tab-x" -- "$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
;;
--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
;;
--mode)
COMPREPLY=($(compgen -W "c java cs objc js" -- "$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
+90
View File
@@ -0,0 +1,90 @@
complete -c astyle -l style -xa 'allman java kr stroustrup whitesmith vtk ratliff gnu linux horstmann 1tbs google mozilla webkit pico lisp' -d 'Set a formatting and indenting style'
complete -c astyle -l indent -xa 'spaces tab force-tab force-tab-x' -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 -d 'Insert space padding after negations'
complete -c astyle -l pad-include -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 -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 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 -d 'Remove braces from a braced one line conditional statements'
complete -c astyle -l break-return-type -d 'Break the return type from the function name definitions'
complete -c astyle -l attach-return-type-decl -d 'Break the return type from 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 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' -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 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'
+103
View File
@@ -0,0 +1,103 @@
#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)"
"--indent[Set indentation option]: :(spaces tab force-tab force-tab-x)"
"--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]"
"--pad-include[Insert space padding after include directives]"
"--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]"
"--break-one-line-headers[Break one line headers (e.g]"
"--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 a braced one line conditional statements]"
"--break-return-type[Break the return type from the function name definitions]"
"--attach-return-type-decl[Break the return type from 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"
"--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)"
"--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]"
"--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
+304
View File
@@ -0,0 +1,304 @@
#!/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:flag "--pad-negation"
:description "Insert space padding after negations"
parser:flag "--pad-include"
:description "Insert space padding after include directives"
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:flag "--break-elseifs"
:description "Break 'else if()' statements into two different lines"
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: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 "--attach-return-type-decl"
:description "Break the return type from 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: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"}
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: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"
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:flag "--html"
:description "Open the HTML help file astyle.html in the default browser"
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
+774
View File
@@ -0,0 +1,774 @@
// 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)
{
// 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;
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++;
// 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
@@ -0,0 +1,170 @@
// 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
@@ -0,0 +1,827 @@
// 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
+1171
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+442
View File
@@ -0,0 +1,442 @@
// 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> 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);
std::vector<std::string> getExcludeVector() const;
std::vector<bool> getExcludeHitsVector() const;
std::vector<std::string> getFileNameVector() 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
@@ -0,0 +1,52 @@
<?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>
@@ -0,0 +1,54 @@
<?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
@@ -0,0 +1,39 @@
<?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
@@ -0,0 +1,53 @@
<?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>
@@ -0,0 +1,16 @@
<?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
@@ -0,0 +1,49 @@
<?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
@@ -0,0 +1,47 @@
<?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
@@ -0,0 +1,55 @@
<?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>
@@ -0,0 +1,53 @@
<?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>
@@ -0,0 +1,54 @@
<?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>
@@ -0,0 +1,39 @@
<?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
@@ -0,0 +1,53 @@
<?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>
@@ -0,0 +1,16 @@
<?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>
@@ -0,0 +1,49 @@
<?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>
@@ -0,0 +1,47 @@
<?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>
@@ -0,0 +1,55 @@
<?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>

Some files were not shown because too many files have changed in this diff Show More