Compare commits
993
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
21f0cf129e | ||
|
|
aeeee01bd0 | ||
|
|
6aa257d0cc | ||
|
|
3305a69619 | ||
|
|
d01215ec5d | ||
|
|
e1cc28c966 | ||
|
|
11ae71ff8a | ||
|
|
f731a65998 | ||
|
|
262f849922 | ||
|
|
1d12ef81c2 | ||
|
|
d8542df073 | ||
|
|
7460935160 | ||
|
|
5b4a4f9948 | ||
|
|
c5474ea775 | ||
|
|
2cdcebc75f | ||
|
|
07978c6052 | ||
|
|
7ba7e8f3ce | ||
|
|
a1166dee85 | ||
|
|
ba317781d8 | ||
|
|
007a4c7426 | ||
|
|
8330606557 | ||
|
|
b045f89f3e | ||
|
|
7b4eba89c5 | ||
|
|
042b7fd88c | ||
|
|
89c3567b44 | ||
|
|
1b7ea43b84 | ||
|
|
0e8a3a6038 | ||
|
|
326cc8cb79 | ||
|
|
0cdbff7b45 | ||
|
|
b4d68172c7 | ||
|
|
bc6eb5c045 | ||
|
|
67f1694009 | ||
|
|
0da97a5952 | ||
|
|
80847bfe03 | ||
|
|
63791ecf68 | ||
|
|
b3026a1dd6 | ||
|
|
4057477fd2 | ||
|
|
1e0ecbd44d | ||
|
|
78c12ef696 | ||
|
|
36b573db17 | ||
|
|
aa507b5cb1 | ||
|
|
072b54d904 | ||
|
|
06fcee74b8 | ||
|
|
0a1f58f69b | ||
|
|
0708e3e0d0 | ||
|
|
7c1575c947 | ||
|
|
fe49f0e7fb | ||
|
|
4baf2a6961 | ||
|
|
045692988a | ||
|
|
3aaca754c4 | ||
|
|
861293c462 | ||
|
|
44dc956fa8 | ||
|
|
41d1323acb | ||
|
|
eda0df3d02 | ||
|
|
0728a211bf | ||
|
|
6901dea663 | ||
|
|
aef1e81aed | ||
|
|
da99d1aed2 | ||
|
|
ca832e1f73 | ||
|
|
a0e1fe837b | ||
|
|
4f15a66797 | ||
|
|
a189ef0c71 | ||
|
|
ab052780eb | ||
|
|
32eaa9372d | ||
|
|
6792a229b5 | ||
|
|
785429ed1a | ||
|
|
1f0696aea8 | ||
|
|
fd1b70e792 | ||
|
|
cb7f842436 | ||
|
|
eeb458ac04 | ||
|
|
d75b8728d2 | ||
|
|
13c695fd0e | ||
|
|
881d98ac3d | ||
|
|
af57722432 | ||
|
|
64a13d8517 | ||
|
|
9e97f4ae64 | ||
|
|
8834b95683 | ||
|
|
3d062c52d1 | ||
|
|
7cbe721d0d | ||
|
|
3873b436e8 | ||
|
|
98f907e9f6 | ||
|
|
59d0f99032 | ||
|
|
a800d64ca3 | ||
|
|
35a19724ff | ||
|
|
58890f2b05 | ||
|
|
85e0e8ad3b | ||
|
|
d0b3a7e6db | ||
|
|
62e192de61 | ||
|
|
155c74be1b | ||
|
|
5f7ed88b69 | ||
|
|
7beaf8b557 | ||
|
|
ff51bbecdf | ||
|
|
32f77e11bf | ||
|
|
a36e55507d | ||
|
|
7988205df1 | ||
|
|
68e98ac4a0 | ||
|
|
da35d0cbe6 | ||
|
|
60b0658389 | ||
|
|
feffdd9f31 | ||
|
|
d91def3d53 | ||
|
|
e3de780332 | ||
|
|
a96c3b959d | ||
|
|
90d67d2d4e | ||
|
|
a69ed9af10 | ||
|
|
eef8d891c5 | ||
|
|
9deaee74e5 | ||
|
|
5cde788686 | ||
|
|
a058fc310d | ||
|
|
80d1e38f82 | ||
|
|
ed6f58014b | ||
|
|
324fb75fc6 | ||
|
|
446b5d02d6 | ||
|
|
ef760f1f26 | ||
|
|
d8cf255be6 | ||
|
|
2d7211aa6c | ||
|
|
96d2c94500 | ||
|
|
723c3d9d67 | ||
|
|
436c1a9abc | ||
|
|
91402fea65 | ||
|
|
91acbad5d8 | ||
|
|
f1424af25b | ||
|
|
84ae8ff727 | ||
|
|
38c12d4e2f | ||
|
|
258aa4fc93 | ||
|
|
b75b162f07 | ||
|
|
55e03f5b74 | ||
|
|
e34c3c3962 | ||
|
|
b7ddacb2bf | ||
|
|
b3f6f32474 | ||
|
|
ec5e6033ca | ||
|
|
5c25e14984 | ||
|
|
7ed1905602 | ||
|
|
859e318894 | ||
|
|
3fab90db91 | ||
|
|
1563bf4e80 | ||
|
|
df35491d3b | ||
|
|
913f24c3ef | ||
|
|
6ea6067349 | ||
|
|
b6342ef6a3 | ||
|
|
b83740a620 | ||
|
|
b714d5e4e4 | ||
|
|
c4365b0cb3 | ||
|
|
6eb1268718 | ||
|
|
200d373cb7 | ||
|
|
f05cf51b77 | ||
|
|
e1024fd185 | ||
|
|
5a79a97e5c | ||
|
|
e3910ee5f9 | ||
|
|
7ed82c2a70 | ||
|
|
7899f6637d | ||
|
|
a3c26f4a3e | ||
|
|
ea6b45b5df | ||
|
|
2c9258da22 | ||
|
|
7e0e06dca5 | ||
|
|
16fd02b032 | ||
|
|
178d5286da | ||
|
|
5146121caa | ||
|
|
614e75d706 | ||
|
|
cbac1114a4 | ||
|
|
8aeea822b9 | ||
|
|
5d96c868ac | ||
|
|
96b8fde1d8 | ||
|
|
85b24a1e01 | ||
|
|
bfa423b949 | ||
|
|
893a433aa7 | ||
|
|
3524d66639 | ||
|
|
3f3f90b577 | ||
|
|
af17f3b833 | ||
|
|
88a2903caf | ||
|
|
4154588caf | ||
|
|
9369c8455f | ||
|
|
aa7e2febec | ||
|
|
4e72cf7e15 | ||
|
|
683a618343 | ||
|
|
422985f01b | ||
|
|
9fd80e1abe | ||
|
|
485382e2aa | ||
|
|
b27cccdb9d | ||
|
|
8c69e067ec | ||
|
|
b09b2355e0 | ||
|
|
86532b948f | ||
|
|
3623229876 | ||
|
|
bac6279b26 | ||
|
|
050c108c28 | ||
|
|
bcf5bb4a5e | ||
|
|
9a77b83a8b | ||
|
|
fd449b0e5e | ||
|
|
803ba0955a | ||
|
|
086ed3a3d3 | ||
|
|
9af46ccc6c | ||
|
|
04aabdd005 | ||
|
|
15cf1e018b | ||
|
|
f32c555bc1 | ||
|
|
7e97becbcf | ||
|
|
21b58e214e | ||
|
|
16c4a56aa4 | ||
|
|
aa58fe1aa4 | ||
|
|
87e0136e5f | ||
|
|
3bdf5fb041 | ||
|
|
b66f3cb173 | ||
|
|
055c06d4c5 | ||
|
|
93605a0147 | ||
|
|
1c27f34918 | ||
|
|
96bd14dee1 | ||
|
|
90499c92cf | ||
|
|
cf95606462 | ||
|
|
05502078e1 | ||
|
|
95c9e4f6db | ||
|
|
619081a737 | ||
|
|
3f2b5c92a0 | ||
|
|
99ceeb79b4 | ||
|
|
bbf726c605 | ||
|
|
2987c9b361 | ||
|
|
48b574fccf | ||
|
|
15ae8d6bdb | ||
|
|
58710b4b86 | ||
|
|
d31b289c0d | ||
|
|
9c6e9f942a | ||
|
|
8218a855f7 | ||
|
|
9a26f1e6d4 | ||
|
|
6f8e619193 | ||
|
|
a2056ddf70 | ||
|
|
c988613837 | ||
|
|
cea7932ed4 | ||
|
|
05a5acaf64 | ||
|
|
774bf30237 | ||
|
|
824d4b7991 | ||
|
|
3818cc1def | ||
|
|
3905a70a59 | ||
|
|
e2870b5171 | ||
|
|
859f868f26 | ||
|
|
5b302bf3fa | ||
|
|
86f28be2b8 | ||
|
|
2eb37a49f6 | ||
|
|
797da683e5 | ||
|
|
da93cd3051 | ||
|
|
b0c8794ad0 | ||
|
|
025ad91b75 | ||
|
|
45833e5e1b | ||
|
|
51bb19097d | ||
|
|
2cee63dd71 | ||
|
|
c00b836e3c | ||
|
|
d83f96a5b4 | ||
|
|
9db81c02ce | ||
|
|
1084cdaf92 | ||
|
|
ae991ee51c | ||
|
|
1e727f453d | ||
|
|
77ff0d844f | ||
|
|
1b2631e578 | ||
|
|
2f60ecae3b | ||
|
|
44da67c6fb | ||
|
|
7cf2c8e678 | ||
|
|
9ab14f1f50 | ||
|
|
3368b0bc16 | ||
|
|
80070921d5 | ||
|
|
223a8a765c | ||
|
|
3ed3247931 | ||
|
|
537c3d10d3 | ||
|
|
55ff6e9425 | ||
|
|
52f0e25f7f | ||
|
|
061c17f5e8 | ||
|
|
e1fc3515a5 | ||
|
|
664168e298 | ||
|
|
2d1a88565e | ||
|
|
c8a2db74c9 | ||
|
|
c7b4dbcea1 | ||
|
|
ca002bd04d | ||
|
|
5e6a58a962 | ||
|
|
ebbd504e0f | ||
|
|
4bdeb795e7 | ||
|
|
3e849512f2 | ||
|
|
09f0e26cd5 | ||
|
|
62e13df4f2 | ||
|
|
75500584dd | ||
|
|
37e62ef92e | ||
|
|
ff64d03617 | ||
|
|
8c4c45aa5e | ||
|
|
803e9aa64e | ||
|
|
2843dfde8f | ||
|
|
fad44e2ee7 | ||
|
|
3067304024 | ||
|
|
91d458cc25 | ||
|
|
4b25cf7cea | ||
|
|
6152d3d67c | ||
|
|
59ea063e6e | ||
|
|
da71161dda | ||
|
|
6f12728575 | ||
|
|
41da8a746b | ||
|
|
32fba0e9b5 | ||
|
|
9a0ff6b2a1 | ||
|
|
8a1f941db1 | ||
|
|
688d706f3e | ||
|
|
19850fcdb6 | ||
|
|
d93540a274 | ||
|
|
30cf6f3baa | ||
|
|
75d3e4ed62 | ||
|
|
82fd2d21c7 | ||
|
|
3675f954b6 | ||
|
|
5551b2b25b | ||
|
|
221457c348 | ||
|
|
21a892b5b5 | ||
|
|
a372130733 | ||
|
|
69c8c34f43 | ||
|
|
8e66ef8de3 | ||
|
|
e0963a5233 | ||
|
|
8f421ab582 | ||
|
|
28f2c87919 | ||
|
|
90232de96e | ||
|
|
c03fe1133f | ||
|
|
0ffb5e4426 | ||
|
|
aa9a8beafa | ||
|
|
56ddd730d9 | ||
|
|
2ad0c5176a | ||
|
|
c3383ee125 | ||
|
|
204cf3d702 | ||
|
|
9bcfd5174e | ||
|
|
297825af4a | ||
|
|
c246d5ae46 | ||
|
|
5e85ad4283 | ||
|
|
631e24f690 | ||
|
|
df1613046f | ||
|
|
af89dfd3cb | ||
|
|
62713fe165 | ||
|
|
0add646b21 | ||
|
|
bb885d22ba | ||
|
|
3f467c58de | ||
|
|
8edb11ab09 | ||
|
|
7171c3a9ec | ||
|
|
62ed88a770 | ||
|
|
2e9fe14947 | ||
|
|
a865024320 | ||
|
|
0c3eb8ec46 | ||
|
|
785d52fa55 | ||
|
|
b637cbb6d2 | ||
|
|
9ae2751ce4 | ||
|
|
3cf316a785 | ||
|
|
a5b17494e3 | ||
|
|
6c530550af | ||
|
|
fdbae61b21 | ||
|
|
fd13fe36d5 | ||
|
|
a62e84df90 | ||
|
|
06ab3e60a1 | ||
|
|
555b106346 | ||
|
|
0d3113cfbb | ||
|
|
63973c381d | ||
|
|
9d566d77d4 | ||
|
|
f5c48f89e2 | ||
|
|
34a2afaa7e | ||
|
|
26d2c5e1d6 | ||
|
|
61621517fc | ||
|
|
010c88cbee | ||
|
|
66796b7075 | ||
|
|
ff3cf03bb3 | ||
|
|
529b93f073 | ||
|
|
caafa42ade | ||
|
|
378dda7c97 | ||
|
|
ceed0550ed | ||
|
|
85b22457a2 | ||
|
|
b439d89c9d | ||
|
|
b6d95cc2b1 | ||
|
|
0a5c3c303e | ||
|
|
36c986f08c | ||
|
|
d2ea1dc7e8 | ||
|
|
51989e0120 | ||
|
|
91b0bcf74e | ||
|
|
873d7a662e | ||
|
|
a2135227e5 | ||
|
|
4c39b21a70 | ||
|
|
fc011d3cc4 | ||
|
|
6740158058 | ||
|
|
369d247f73 | ||
|
|
946cc2d878 | ||
|
|
92bdbe869e | ||
|
|
83b32c8ea9 | ||
|
|
76431ab6db | ||
|
|
74bdc62e4b | ||
|
|
44d857e88b | ||
|
|
c413186c0d | ||
|
|
a7304fb036 | ||
|
|
cb6953049f | ||
|
|
9816287f87 | ||
|
|
903b1b0b9a | ||
|
|
f286a31f6f | ||
|
|
08ab63b302 | ||
|
|
a9a3dc865d | ||
|
|
d858c87d6d | ||
|
|
6c5dded993 | ||
|
|
f4f13b2c5d | ||
|
|
4e7345da2c | ||
|
|
9bc3133ce9 | ||
|
|
43cd3ed7a4 | ||
|
|
cfc58a5347 | ||
|
|
120623cbea | ||
|
|
c35cfef8dd | ||
|
|
82643c958e | ||
|
|
9d3b1eef71 | ||
|
|
cdcb92ddd7 | ||
|
|
0a9036ff50 | ||
|
|
fcf13cd9b9 | ||
|
|
db8cd9a5dc | ||
|
|
4074d30680 | ||
|
|
fca9d2915a | ||
|
|
b760fe0bcc | ||
|
|
f84264c4c5 | ||
|
|
3d2cb8f2e5 | ||
|
|
a6f646b71f | ||
|
|
bed87f8206 | ||
|
|
0234a68fed | ||
|
|
e9c55cc528 | ||
|
|
ad2712b2c5 | ||
|
|
9099fd6418 | ||
|
|
0c4733a838 | ||
|
|
4f73ff73c2 | ||
|
|
ed0dc98503 | ||
|
|
050c4ca3e1 | ||
|
|
206afd8891 | ||
|
|
8d30c1b270 | ||
|
|
8ea4dcfda5 | ||
|
|
d2d180f475 | ||
|
|
d16bd861d0 | ||
|
|
9cb2a21349 | ||
|
|
2678dc44ca | ||
|
|
71e421cf88 | ||
|
|
3fae2a9b12 | ||
|
|
a184c97449 | ||
|
|
4286d89645 | ||
|
|
790733100d | ||
|
|
388dacd7cb | ||
|
|
7ba7a3d03c | ||
|
|
2cc651448d | ||
|
|
b33ef646b8 | ||
|
|
3848092f7a | ||
|
|
f6bf4ca9ba | ||
|
|
26d943bc67 | ||
|
|
faae0e3424 | ||
|
|
9c2efabdaf | ||
|
|
c85c974665 | ||
|
|
d9d4c874c0 | ||
|
|
608634af5a | ||
|
|
870608d56c | ||
|
|
24690a5646 | ||
|
|
b20cf8d4a1 | ||
|
|
81ff8f0a88 | ||
|
|
6c3e1303cf | ||
|
|
0b2d891c21 | ||
|
|
a940216f6c | ||
|
|
1dbc77d5c5 | ||
|
|
528bbf27da | ||
|
|
9f2bfc7c6a | ||
|
|
04e3838c01 | ||
|
|
e66fe6cd32 | ||
|
|
2c8e583362 | ||
|
|
d38d6ae50d | ||
|
|
f68aa4d0b2 | ||
|
|
fb47e145a6 | ||
|
|
d2234f7e81 | ||
|
|
ebe2beadc5 | ||
|
|
9def2d870b | ||
|
|
66c4c4aade | ||
|
|
e85d264504 | ||
|
|
178c5d6238 | ||
|
|
f1d38aef10 | ||
|
|
23268498ce | ||
|
|
8b8471220d | ||
|
|
7fcacf9e2a | ||
|
|
224d42d682 | ||
|
|
63d2f405c7 | ||
|
|
839dc9566c | ||
|
|
c4ddbd82b2 | ||
|
|
755007e19f | ||
|
|
c6726cb4d8 | ||
|
|
2a1fa999d8 | ||
|
|
bd8f275e66 | ||
|
|
844965509a | ||
|
|
be6257f393 | ||
|
|
96212d6505 | ||
|
|
0dad84dbcb | ||
|
|
42216c1414 | ||
|
|
b6c9a030f6 | ||
|
|
4b66fcab06 | ||
|
|
f2c2677b49 | ||
|
|
c272a2bd42 | ||
|
|
340ab07364 | ||
|
|
bcc1370643 | ||
|
|
3c18a94c3f | ||
|
|
6ed7e6208e | ||
|
|
76303d4166 | ||
|
|
0afdfc222c | ||
|
|
61b24973b9 | ||
|
|
8da3f1dd28 | ||
|
|
2f26d7e073 | ||
|
|
60de74b83e | ||
|
|
145547555a | ||
|
|
6d412d4ab2 | ||
|
|
3eee2dd301 | ||
|
|
d13c99eee5 | ||
|
|
27f4712531 | ||
|
|
1105271c51 | ||
|
|
6be153eb05 | ||
|
|
caba84e59f | ||
|
|
288163ddee | ||
|
|
ce512093e3 | ||
|
|
ae8d6d1315 | ||
|
|
ff796b9ac9 | ||
|
|
397998a640 | ||
|
|
b907bd447e | ||
|
|
729f3ba754 | ||
|
|
22646870b6 | ||
|
|
c49d106ba2 | ||
|
|
00729fdb93 | ||
|
|
107695d0b1 | ||
|
|
852af28070 | ||
|
|
331216b071 | ||
|
|
41c7c3a749 | ||
|
|
2ab36f361f | ||
|
|
abc470f68d | ||
|
|
09f9505faa | ||
|
|
7aa77d31f6 | ||
|
|
6091e56482 | ||
|
|
a07a0fe52d | ||
|
|
42976f50fe | ||
|
|
b033a9527d | ||
|
|
28f0692b0a | ||
|
|
aea5dcff6f | ||
|
|
093e9024f3 | ||
|
|
16495a8f3a | ||
|
|
d7c72fb55a | ||
|
|
6a81a712ff | ||
|
|
26dfb17974 | ||
|
|
aed1dfff02 | ||
|
|
0e46c0c3cf | ||
|
|
f665dc6101 | ||
|
|
507a882a82 | ||
|
|
b49ff7c83a | ||
|
|
65d70ce50e | ||
|
|
7a333a9a0c | ||
|
|
c58cb35ce3 | ||
|
|
2d9021f8c5 | ||
|
|
63ecac94da | ||
|
|
2ec477e24c | ||
|
|
1d9903ef14 | ||
|
|
429d084d1a | ||
|
|
e68672cf53 | ||
|
|
d2dd3b9aad | ||
|
|
9580317176 | ||
|
|
63215ca50f | ||
|
|
ae12992a83 | ||
|
|
5df69aa3fd | ||
|
|
50d4283381 | ||
|
|
faf623c2f0 | ||
|
|
ffef81af6b | ||
|
|
bdea317829 | ||
|
|
0bdb29d93f | ||
|
|
9501e72acf | ||
|
|
7aecc3fbcf | ||
|
|
a64fee5c5e | ||
|
|
dc340c837e | ||
|
|
79361a2c5f | ||
|
|
94642597f7 | ||
|
|
f75b8d1d49 | ||
|
|
a174c17297 | ||
|
|
eed5e15570 | ||
|
|
88f9ade5d6 | ||
|
|
c856df8f6c | ||
|
|
6753679b06 | ||
|
|
2c70b074c1 | ||
|
|
6196b32709 | ||
|
|
e42996c444 | ||
|
|
bd4ee4089f | ||
|
|
4a7aa91917 | ||
|
|
ad93c6005d | ||
|
|
6eba048daf | ||
|
|
339b259013 | ||
|
|
f98f883a0b | ||
|
|
c8a2a4fcc2 | ||
|
|
229b5727ab | ||
|
|
d3d128c9af | ||
|
|
c1ff1252a4 | ||
|
|
06f126c5b2 | ||
|
|
00739e066b | ||
|
|
51df462422 | ||
|
|
8041361844 | ||
|
|
384301408c | ||
|
|
1a111476da | ||
|
|
252fb4e72b | ||
|
|
ce7b952741 | ||
|
|
459839dc3a | ||
|
|
d47c83acd4 | ||
|
|
78dde89f37 | ||
|
|
ab8f107b4d | ||
|
|
e8373a1b29 | ||
|
|
9894899035 | ||
|
|
8d766bf282 | ||
|
|
f776e76c1b | ||
|
|
fcb2442f5b | ||
|
|
a52e6b7f75 | ||
|
|
6efd2d015b | ||
|
|
1706848d22 | ||
|
|
c9a0489cb8 | ||
|
|
f0866b8541 | ||
|
|
53b494a9d8 | ||
|
|
fca43b2d7c | ||
|
|
53f5715fc0 | ||
|
|
af24ec4bfe | ||
|
|
ebb20e22cc | ||
|
|
6a426ce803 | ||
|
|
916084fef3 | ||
|
|
bffd5cbe45 | ||
|
|
9bb39e0ae4 | ||
|
|
85fe319d9d | ||
|
|
38b2c74506 | ||
|
|
06ab007da0 | ||
|
|
613c829bbd | ||
|
|
4e876951cb | ||
|
|
d60e69cb51 | ||
|
|
b53e798d11 | ||
|
|
997395ca42 | ||
|
|
7fde93aab8 | ||
|
|
ffd42b8d1e | ||
|
|
f226703c42 | ||
|
|
8a1e1e57e4 | ||
|
|
2a459f4e28 | ||
|
|
641c6ebefb | ||
|
|
9f5bcb66b8 | ||
|
|
63a60b4aff | ||
|
|
f6e63e5859 | ||
|
|
d59886609c | ||
|
|
9e4ca31d62 | ||
|
|
d4a1f28660 | ||
|
|
eb8cdecfcb | ||
|
|
f899ff724e | ||
|
|
ab26b14c91 | ||
|
|
13954aacbc | ||
|
|
a1b0e512af | ||
|
|
35c37f46d6 | ||
|
|
c76f47170c | ||
|
|
9f27e65229 | ||
|
|
79cfe7ee7a | ||
|
|
90b59c2b18 | ||
|
|
2144e8f14f | ||
|
|
d6b4e1c035 | ||
|
|
5014e4147e | ||
|
|
432b6a9031 | ||
|
|
a78351d07d | ||
|
|
0fe49268a0 | ||
|
|
32aa2cc352 | ||
|
|
b44863c76f | ||
|
|
a14cc1f54a | ||
|
|
225ed83dcc | ||
|
|
faf978b6b9 | ||
|
|
4be866e571 | ||
|
|
4730d0d84e | ||
|
|
1175cbdfb9 | ||
|
|
c1486eae8d | ||
|
|
b96be93de1 | ||
|
|
879a5e2615 | ||
|
|
4b1663f19f | ||
|
|
8cc0924c86 | ||
|
|
466d26e661 | ||
|
|
1cd2c8afc4 | ||
|
|
c273523d13 | ||
|
|
fe4e8aa711 | ||
|
|
ee86ea564f | ||
|
|
aca9897ef6 | ||
|
|
acc0cfab82 | ||
|
|
138be67982 | ||
|
|
9c9a2bb42b | ||
|
|
231d1ef128 | ||
|
|
0411577438 | ||
|
|
58dc8e1ee7 | ||
|
|
ee621ad525 | ||
|
|
0cd534aaf5 | ||
|
|
b626ec2517 | ||
|
|
9230400ad4 | ||
|
|
62097b1845 | ||
|
|
332412ed27 | ||
|
|
ef9abd6793 | ||
|
|
13202ae753 | ||
|
|
03993fa6f7 | ||
|
|
e4b334e8c0 | ||
|
|
f8c2c91b29 | ||
|
|
378b972728 | ||
|
|
7219715440 | ||
|
|
a27d91ce38 | ||
|
|
2c2d47b339 | ||
|
|
ed3c61a537 | ||
|
|
b1412cc3a9 | ||
|
|
fccdf05337 | ||
|
|
348d06da88 | ||
|
|
86e55c2313 | ||
|
|
138dc8704e | ||
|
|
3bf6fa6b7e | ||
|
|
6274261f0f | ||
|
|
db43d5c72b | ||
|
|
05211845c9 | ||
|
|
7631f3ed2e | ||
|
|
16214b4416 | ||
|
|
e91ebd494e | ||
|
|
9e533d2079 | ||
|
|
771d3f6e61 | ||
|
|
1a7dfb03b0 | ||
|
|
68193ca14b | ||
|
|
258d0cd30e | ||
|
|
22ee1b3d1c | ||
|
|
3c25c25a7a | ||
|
|
0fdcad36f7 | ||
|
|
288717802c | ||
|
|
2b52f42ff5 | ||
|
|
7d7f57ea5f | ||
|
|
5fad704d6c | ||
|
|
ba7fd1dd13 | ||
|
|
5e0a3e9224 | ||
|
|
f8c188fe69 | ||
|
|
e9278b596a | ||
|
|
3778f80ac4 | ||
|
|
095fded81c | ||
|
|
643cfb9560 | ||
|
|
ff42b5089c | ||
|
|
5198c87100 | ||
|
|
48b23ed735 | ||
|
|
414bcae3b8 | ||
|
|
15edbc5552 | ||
|
|
45a88e73e7 | ||
|
|
65501cbf77 | ||
|
|
713c76b52d | ||
|
|
c9c890bf88 | ||
|
|
579fb3cc61 | ||
|
|
395a534e39 | ||
|
|
fcc5da57b6 | ||
|
|
9675da97f3 | ||
|
|
780826bd4d | ||
|
|
680b09de6d | ||
|
|
88b73b0d8a | ||
|
|
e5736de31d | ||
|
|
bcca8b6ad5 | ||
|
|
dbab76a20b | ||
|
|
870921bf8b | ||
|
|
a86e727eca | ||
|
|
5f284c5a2b | ||
|
|
1ac0017e7f | ||
|
|
cd9dcba7e6 | ||
|
|
061d5a536f | ||
|
|
1f24609b86 | ||
|
|
2e67bb3a0b | ||
|
|
95db46d348 | ||
|
|
ac55a329a0 | ||
|
|
c36449c955 | ||
|
|
8506891d0f | ||
|
|
023d38f622 | ||
|
|
d68323536f | ||
|
|
16956c6b6a | ||
|
|
3dde0a8962 | ||
|
|
01b7314ef6 | ||
|
|
4cc9ecefed | ||
|
|
debce23f07 | ||
|
|
97e061a997 | ||
|
|
11b26f7c04 | ||
|
|
436d8cbf38 | ||
|
|
fe7d335c7f | ||
|
|
3c489aa9c9 | ||
|
|
b40c9af03b | ||
|
|
b44beb33f4 | ||
|
|
e5c3d5de65 | ||
|
|
a6ec867b85 | ||
|
|
a0660bf7b9 | ||
|
|
5b50eb38fa | ||
|
|
ec224317cb | ||
|
|
e6848a8a2e | ||
|
|
308e1d3d55 | ||
|
|
2834c2c43e | ||
|
|
078327b680 | ||
|
|
887361fbb0 | ||
|
|
5454e284cd | ||
|
|
80169efeaf | ||
|
|
345e6531ea | ||
|
|
0822dbf765 | ||
|
|
46b649e135 | ||
|
|
7e51d3ab56 | ||
|
|
0685fdd57b | ||
|
|
e54a30b927 | ||
|
|
4ce1678e41 | ||
|
|
d558c9c362 | ||
|
|
0e8145aac8 | ||
|
|
c3ed867108 | ||
|
|
e88de63a6b | ||
|
|
d58ed83430 | ||
|
|
f499b2607f | ||
|
|
9bb0ad20ee | ||
|
|
98a7fb509b | ||
|
|
ef1dbee7eb | ||
|
|
844160dcc9 | ||
|
|
1b802d2609 | ||
|
|
07da758af0 | ||
|
|
587c10f156 | ||
|
|
d77dc6a650 | ||
|
|
1f6cf7cd3e | ||
|
|
fae620173c | ||
|
|
7478098149 | ||
|
|
1df702d2c3 | ||
|
|
6805e60219 | ||
|
|
9825653fac | ||
|
|
0fbd07d5b5 | ||
|
|
8991362e40 | ||
|
|
9cf1c9ffe0 | ||
|
|
861fcd8f59 | ||
|
|
7224964ec1 | ||
|
|
ec5b337982 | ||
|
|
f2a3b7ccde | ||
|
|
c5585b8c1a | ||
|
|
0c5026ec4d | ||
|
|
04f08fd05a | ||
|
|
8424f279e1 | ||
|
|
bc5d320d16 | ||
|
|
521daa2690 | ||
|
|
b113ec2240 | ||
|
|
8073253f05 | ||
|
|
b09ae21c26 | ||
|
|
2c2cfe6cd2 | ||
|
|
5f14351ec9 | ||
|
|
db4bb692a5 | ||
|
|
f6ab4b1385 | ||
|
|
491ceee53f | ||
|
|
99f6d30e11 | ||
|
|
574fa9470d | ||
|
|
b92faf0cb3 | ||
|
|
2ef17be69b | ||
|
|
8317fc2b3f | ||
|
|
c13834d1b6 | ||
|
|
d113a32fca | ||
|
|
d2de30f94d | ||
|
|
4c173d31e9 | ||
|
|
dfe005eec1 | ||
|
|
746d5b674b | ||
|
|
ef956d59c0 | ||
|
|
2c7faeab3a | ||
|
|
3401b9d2c5 | ||
|
|
c63ea4909f | ||
|
|
7401e29c56 | ||
|
|
0d7b5b0367 | ||
|
|
9287d1450e | ||
|
|
fbf612f03b | ||
|
|
f8d4c462bd | ||
|
|
a6e32260f6 | ||
|
|
7a6ca8f56c | ||
|
|
5de58e26f5 | ||
|
|
d418ae7365 | ||
|
|
4dc8c004cf | ||
|
|
071857ee3c | ||
|
|
c1d3c49421 | ||
|
|
3f7627aebe | ||
|
|
41a644c477 | ||
|
|
e196c03373 | ||
|
|
9a34f64b93 | ||
|
|
6fb16bc728 | ||
|
|
a49418c300 | ||
|
|
ccf2f10392 | ||
|
|
eb4b65068d | ||
|
|
37c0b46950 | ||
|
|
a62cfabc76 | ||
|
|
8a1153c83b | ||
|
|
cd40f06f51 | ||
|
|
3b3b20a352 | ||
|
|
70d3712038 | ||
|
|
fe4e580250 | ||
|
|
5375203fc2 | ||
|
|
5968e5e2bf | ||
|
|
320ec6f5c1 | ||
|
|
6f7fd2a11d | ||
|
|
a6780f25d2 | ||
|
|
fd81da3752 | ||
|
|
25e4cb1d45 | ||
|
|
622d30c28c | ||
|
|
94cb67e7ce | ||
|
|
2205b24e52 | ||
|
|
bd55459e42 | ||
|
|
433fe1aacf | ||
|
|
e513eb6b1a | ||
|
|
825e9b479f | ||
|
|
3f8b8fd67b | ||
|
|
b3591cf0e4 | ||
|
|
4adb2be6a2 | ||
|
|
604dde1df0 | ||
|
|
ee69b83db3 | ||
|
|
7788128724 | ||
|
|
2c66cf588f | ||
|
|
5d986061d9 | ||
|
|
1a67a6bfa3 | ||
|
|
a5fb346777 | ||
|
|
571f15c5fc | ||
|
|
c619714316 | ||
|
|
62722a527b | ||
|
|
af7d7ed4aa | ||
|
|
60613875b5 | ||
|
|
89a64e72f7 | ||
|
|
341b340c88 | ||
|
|
ef1c70f252 | ||
|
|
c785d98c00 | ||
|
|
366718fbcb | ||
|
|
1ac9644a9d | ||
|
|
0f5c89020b | ||
|
|
e81a2411dd | ||
|
|
af7d0b2f8d | ||
|
|
93169001be | ||
|
|
735335aea8 | ||
|
|
6724d49545 | ||
|
|
d72062c4c8 | ||
|
|
f81bf48746 | ||
|
|
149ea86d66 | ||
|
|
1e69b1bf8f | ||
|
|
ea6d2a205c | ||
|
|
068270c2ea | ||
|
|
91565eb811 | ||
|
|
63eda30e7e | ||
|
|
c2f836f07f | ||
|
|
4512e83692 | ||
|
|
e5e0f72391 | ||
|
|
ef7423b015 | ||
|
|
cacbf2151d | ||
|
|
12e335d410 | ||
|
|
21868eefd4 | ||
|
|
411f897353 | ||
|
|
8992f31db5 | ||
|
|
94ae7e1baf | ||
|
|
13ebc822e4 | ||
|
|
4d0d98688b | ||
|
|
379b72dedf | ||
|
|
9f71f25a9c | ||
|
|
50325acc96 | ||
|
|
e4f15fb4e7 | ||
|
|
245db76f3c | ||
|
|
793163b70e | ||
|
|
381ca9ca5e | ||
|
|
889e2e0e04 | ||
|
|
b4c25ab4c9 | ||
|
|
7f5c7ea32f | ||
|
|
11cb9d96c7 | ||
|
|
0e026744c4 | ||
|
|
6b973117df | ||
|
|
ed1870dfd4 | ||
|
|
fd5c53c6a8 | ||
|
|
bbb6d03f91 | ||
|
|
e9577cc88c | ||
|
|
db48f8900f | ||
|
|
eb48ce4bc2 | ||
|
|
831744958b | ||
|
|
41c5c05869 | ||
|
|
2a851a54d5 | ||
|
|
9e7be0fb28 | ||
|
|
5e5c48ad42 | ||
|
|
1708bc9ce5 | ||
|
|
f3d31d31d0 | ||
|
|
378c482f61 | ||
|
|
ea4f7d64e3 | ||
|
|
3af03ff6a0 | ||
|
|
405e81fca3 | ||
|
|
b40ddb717f | ||
|
|
8476973721 | ||
|
|
628a265615 | ||
|
|
ec2f635f74 | ||
|
|
24b76e979e | ||
|
|
11c16f9946 | ||
|
|
4c62b89ce9 | ||
|
|
dde7875600 | ||
|
|
14b761a006 | ||
|
|
d2871711eb | ||
|
|
95e106718e | ||
|
|
b1515fea8c | ||
|
|
c4c8b8d3b6 | ||
|
|
269d155364 | ||
|
|
c8ca9e3a24 | ||
|
|
1713bb9f44 | ||
|
|
88190bef0b | ||
|
|
bead93b65a | ||
|
|
5ff943a706 | ||
|
|
accaf44ca1 | ||
|
|
99915ea2c9 | ||
|
|
262f4a4c25 | ||
|
|
68b0418675 | ||
|
|
67da960f73 | ||
|
|
d11a7e3444 | ||
|
|
7d356cfa16 | ||
|
|
7407a3df75 | ||
|
|
228e6a076a | ||
|
|
c01c41bf66 | ||
|
|
bd5174f097 | ||
|
|
097ffad3a1 | ||
|
|
3bc39d0df8 | ||
|
|
29999563c0 | ||
|
|
b702c95fcd | ||
|
|
fcfbd89fc0 | ||
|
|
fde31cab2a | ||
|
|
c7f1f5b86d | ||
|
|
8f0b352b0a |
@@ -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
|
||||
|
||||
@@ -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
@@ -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/
|
||||
|
||||
@@ -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
|
||||
@@ -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
@@ -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
|
||||
@@ -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 "-------------------------------------------" )
|
||||
@@ -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.
|
||||
@@ -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.
|
||||
@@ -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/
|
||||
@@ -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/
|
||||
@@ -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/
|
||||
@@ -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)
|
||||
@@ -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>
|
||||
@@ -0,0 +1,37 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.28516.95
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AStyle", "AStyle\AStyle.vcxproj", "{24189F85-8CB6-4993-8530-855BD6C8B70A}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
Static|x64 = Static|x64
|
||||
Static|x86 = Static|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Debug|x64.Build.0 = Debug|x64
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Debug|x86.ActiveCfg = Debug|Win32
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Debug|x86.Build.0 = Debug|Win32
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Release|x64.ActiveCfg = Release|x64
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Release|x64.Build.0 = Release|x64
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Release|x86.ActiveCfg = Release|Win32
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Release|x86.Build.0 = Release|Win32
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Static|x64.ActiveCfg = Static|x64
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Static|x64.Build.0 = Static|x64
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Static|x86.ActiveCfg = Static|Win32
|
||||
{24189F85-8CB6-4993-8530-855BD6C8B70A}.Static|x86.Build.0 = Static|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {C49A012F-6AB6-4660-B927-2AAF54D082AA}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,37 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.28516.95
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AStyle Dll", "AStyle Dll\AStyle Dll.vcxproj", "{07229666-1841-4021-B206-1A8917985A66}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
Static|x64 = Static|x64
|
||||
Static|x86 = Static|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Debug|x64.Build.0 = Debug|x64
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Debug|x86.ActiveCfg = Debug|Win32
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Debug|x86.Build.0 = Debug|Win32
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Release|x64.ActiveCfg = Release|x64
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Release|x64.Build.0 = Release|x64
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Release|x86.ActiveCfg = Release|Win32
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Release|x86.Build.0 = Release|Win32
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Static|x64.ActiveCfg = Static|x64
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Static|x64.Build.0 = Static|x64
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Static|x86.ActiveCfg = Static|Win32
|
||||
{07229666-1841-4021-B206-1A8917985A66}.Static|x86.Build.0 = Static|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {71D57643-84DD-4750-89C3-6369BEA22324}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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 */;
|
||||
}
|
||||
@@ -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="[0;39m"
|
||||
# CYAN, BOLD: information
|
||||
CYAN="[1;36m"
|
||||
# YELLOW; system message
|
||||
YELLOW="[0;33m"
|
||||
# WHITE, BOLD; error message
|
||||
WHITE="[1;37m"
|
||||
# RED, BOLD: failure message
|
||||
RED="[1;31m"
|
||||
|
||||
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
|
||||
@@ -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="[0;39m"
|
||||
# CYAN, BOLD: information
|
||||
CYAN="[1;36m"
|
||||
# YELLOW; system message
|
||||
YELLOW="[0;33m"
|
||||
# WHITE, BOLD; error message
|
||||
WHITE="[1;37m"
|
||||
# RED, BOLD: failure message
|
||||
RED="[1;31m"
|
||||
|
||||
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
@@ -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 "Any
|
||||
CPU". 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‑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‑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‑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‑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‑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‑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 |
@@ -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">▲</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">▼</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">▼</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">▼</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 "Formatting Help" 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 "Me" option in the SourceForge header, there will be a button containing
|
||||
a number (it may be 0). Click on this to get your "Download History". 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 Watson, Fred Shwartz, W. Nathaniel Mills III, Danny Deschenes, Andre Houde,
|
||||
Richard Bullington, Paul-Michael Agapow, Daryn Adler, Dieter Bayer, Sam Cooler, Jim Duff,
|
||||
Emilio Guijarro, Jens Krinke, Eran Ifrah, Travis Robinson, Max Horn, Ettl Martin,
|
||||
Mario Gleichmann, J P Nurmi, Colin D Bennett, Christian Stimming, MrTact, Wim Rosseel,
|
||||
Matthew Woehlke, Chris Schwarz, Chang Jiang, Arseny Solokha, Milian Wolff, Johannes Martin,
|
||||
Arne F?rlie, Marvin Humphrey, J, Christopher Sean Morrison, Keith OHara, louis6g, Evmenov Georgiy,
|
||||
beta100100, Ruzzz, Peter A. Bigot, HyungKi Jeong, David Faure, Carl Moore, Mofi, Travis Vitek,
|
||||
Bunel Nicolas, Juan Alday, Rian Quinn, David Haney, Tamá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>
|
||||
@@ -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">▲</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">▼</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">▼</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">▼</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">▼</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 "out of source" 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=<Java Directory> 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="C:/Programs/Java" ../
|
||||
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
|
||||
"<strong>xargs rm < install_manifest.txt</strong>".
|
||||
</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, "make" 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 "Command Line Tools". If you have Xcode 4.3 or
|
||||
newer the command line tools, such as "make", are NOT installed by default. They must be downloaded and
|
||||
installed separately. Once everything is successfully installed, you should see "make" 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
|
||||
"build/xcode"
|
||||
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 "build" folder contains project files for CodeBlocks and Visual
|
||||
Studio.
|
||||
</p>
|
||||
<p>
|
||||
Since the different builds use the same source files an "out of source" 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=<Java Directory> 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
|
||||
"C:\Program
|
||||
Files\AStyle" for the executable and "C:\Program Files\AStyle\doc" 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 "build" directory. All projects have Debug, Release and Static
|
||||
configurations.
|
||||
Debug file output will be in the "debug" directory. Release file output will be in the
|
||||
"bin"
|
||||
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
|
||||
"Static"" option. It is the same as the "Release" 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 "binstatic" 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
|
||||
"Project
|
||||
> Properties > C/C++ > General > Additional Include Directories". 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>
|
||||
@@ -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'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 "Tools"
|
||||
> "Extensions and Updates" menu. Search the "Online" entry for "astyle". 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 "astyle". 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 "Visual Studio Code" tab and search for "astyle". 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 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’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>
|
||||
@@ -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 "--pad-include" / "--pad-include=none" was added to add or remove space padding after include directives.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Some C++ related formatting issues were fixed, e.g. apply "align-pointer=type" 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 "--pad-negation" / "--pad-negation=before" was added to add space padding around ! operators.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Some C++ related formatting issues were fixed, e.g. apply "align-pointer=type" 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 "--indent-lambda" 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: "pad-empty-paren".
|
||||
It can be combined with other parentheses padding options.<br>
|
||||
The bracket padding options were enhanced by "pad-brackets-in" and "pad-brackets-out".
|
||||
</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 "modern C++" 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: "squeeze-ws" and
|
||||
"squeeze-lines=#" (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: "pad-brackets" and "unpad-brackets".
|
||||
</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, "style=webkit", 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, "break-return-type" and "break-return-type-decl", will break the return type
|
||||
from function definitions and function declarations. Additional new options, "attach-return-type" and
|
||||
"attach-return-type-decl", will attach the broken return types to function definitions and function
|
||||
declarations. There is more information in the "Formatting Options" section of the documentation.
|
||||
</p>
|
||||
<p>
|
||||
A new option, "style=ratliff", 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
|
||||
"build" folder, and builds a Release configuration by default. The "Install Information"
|
||||
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
|
||||
"astyle /home/project/*.cpp,*.h". 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 "Usage" section of the documentation.
|
||||
</p>
|
||||
<p>
|
||||
New options "project", "project=####", and "project=none"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 "Option Files" section. The "project" option is described in the
|
||||
"Command Line Only" 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 "verbose" and "dry-run" 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:
|
||||
"astyle --project -A9s *.cpp,*.h". 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 "Top" 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á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> { } </td>
|
||||
<td>brackets</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>parens or round brackets</td>
|
||||
<td> ( ) </td>
|
||||
<td>parens</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>square brackets</td>
|
||||
<td> [ ] </td>
|
||||
<td>block parens</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>angle brackets</td>
|
||||
<td> < > </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, "break-closing-brackets", "add-brackets", "add-one-line-brackets",
|
||||
and "remove-brackets". These have been changed to the corresponding "break-closing-braces",
|
||||
"add-braces", "add-one-line-braces", and "remove-braces". Also, the option "max-instatement-indent"
|
||||
has been changed to "max-continuation-indent". 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, "indent-after-parens", will indent continuation lines following lines that contain an
|
||||
opening paren '(' or an assignment '='. This includes function definitions and declarations
|
||||
and return statements. This option may be preferred for editors displaying proportional fonts.</p>
|
||||
<p>
|
||||
A new option, "attach-closing-while", will attach the closing "while" of a
|
||||
"do-while" statement to the closing brace. It has precedence over both the brace style and the break
|
||||
closing braces option. </p>
|
||||
<p>
|
||||
The option "break-closing-braces" has been included in "style=stroustrup". 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 "attach-closing-while" 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&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'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 "30" refers
|
||||
to the Artistic Style release number "3.0". 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, "style=mozilla", 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, "break-one-line-headers" will break a header (if, while, else, etc...) from a following
|
||||
statement on the same line. There is more information in the "Formatting Options" section
|
||||
of the documentation.
|
||||
</p>
|
||||
<p>
|
||||
A new option, "pad-comma", will add a space following a comma. The option "pad-oper"
|
||||
has not been changed and will also add a space following a comma.</p>
|
||||
<p>
|
||||
A new option, "indent-continuation", 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 "Indentation Options" section of the documentation.</p>
|
||||
<p>
|
||||
All spaces before a comma are now removed. Use the "disable formatting" 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 "unpad-return-type" 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 "unpad-param-type" 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> "align-method-colon" 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> "align-method-colon" 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 "Internationalization" in the "General Information" 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 "Any CPU"
|
||||
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 ".exe"
|
||||
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 "auto detect" option in Tools > Options... > Text Editor > General, an
|
||||
additional compiler option is required. The option "/source‑charset:utf‑8" must be added
|
||||
to the project properties at C++ > Command Line > Additional Options. Since the non‑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 "/validate‑charset" 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 > "Advanced Save Options". Change the encoding
|
||||
to "Unicode (UTF-8 with signature) - Codepage 65001". </p>
|
||||
<p>
|
||||
In the above "Visual C++ Team Blog" 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 "Align Assignments" that will align assignment operators
|
||||
across multiple lines. There is also an extension named "Code alignment" 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 "file" 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>"Windows XP Support for C++" 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 > Platform Toolset, to "Windows XP" for your Visual
|
||||
Studio version.</li>
|
||||
<li>In the Artistic Style Properties, change C/C++ > Preprocessor > 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 "Universal CRT" 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, "style=vtk", 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 "Visualization Toolkit" 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 "Disable Formatting" 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 '__attribute__ ((visibility ("default")))' has been added to exported functions
|
||||
on Linux shared libraries. This allows the option "-fvisibility=hidden" to be used on dynamic library
|
||||
compiles. According to the GNU documentation, "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."</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=<actual_install_path>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 "char*" to "const char*". 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&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 "Install Instructions" 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 "Extensions and Updates",
|
||||
"Online" entry for "astyle".</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
@@ -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">▲</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">▼</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">▼</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">▼</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 <<< and >>> 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 & 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 "struct" (#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 "modern" format.</li>
|
||||
<li>Fix formatting of raw string literals with the opening '(' 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<bool>.</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 "--mode=js" option</li>
|
||||
<li>added INVALID_TYPE constant</li>
|
||||
<li>removed upper limit of "max-continuation-indent"</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, "break-return-type" and "break-return-type-decl" (#358, 286, 205, 16).</li>
|
||||
<li>Add new options, "attach-return-type" and "attach-return-type-decl" (#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 "unsigned short" data type to c++11 "char16_t".</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 "align-pointer=type".</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 "Extern C" 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 "unpad-return-type".</li>
|
||||
<li>Fix <span style="white-space: nowrap;">Objective-C</span> "align-method-colon" 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 "interface" as a non-keyword (#445).</li>
|
||||
<li>Fix Java to allow "default" 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 "utf8_16" to "encode".</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
@@ -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> 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> 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> 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> 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> 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> 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 ‑‑min‑conditional‑indent=0
|
||||
(‑m0) and ‑‑max‑continuation‑indent=50 (‑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>
|
||||
</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>
|
||||
</p>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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 checkout "https://svn.code.sf.net/p/astyle/code/trunk/AStyle"
|
||||
"$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 checkout "https://svn.code.sf.net/p/astyle/code/trunk/AStyleDev" "$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 checkout "https://svn.code.sf.net/p/astyle/code/trunk/AStyleTest" "$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 checkout "https://svn.code.sf.net/p/astyle/code/trunk/AStyleWx" "$HOME/astylewx"
|
||||
</strong></p>
|
||||
|
||||
<h4>AStyleWxTest</h4>
|
||||
|
||||
<p>
|
||||
AStyleTest contains the unit test programs and test scripts for AStyleWx. </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 checkout "https://svn.code.sf.net/p/astyle/code/trunk/AStyleWxTest" "$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>
|
||||
</p>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -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>
|
||||
</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 “Copy settings from Win32” and check
|
||||
“Create new project platforms”.</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
|
||||
> General
|
||||
> 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 “Configuration Properties > General > Output directory” so the
|
||||
entry becomes $(SolutionDir)<strong>$(Platform)\</strong>$(Configuration)\.</p>
|
||||
<p>
|
||||
Leave “Configuration Properties > General> Intermediate Directory” at the default which
|
||||
should be <strong>$(Platform)\</strong>$(Configuration)\.</p>
|
||||
<p>
|
||||
Check the x64 Debug configuration “Configuration Properties > Linker > Debugging > Generate Program
|
||||
Database File” 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
|
||||
“Configuration Properties > Linker > General > Additional Library Directories”.</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>
|
||||
</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>
|
||||
</p>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
@@ -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.
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
...
|
||||
|
||||
@@ -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
|
||||
...
|
||||
|
||||
@@ -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
|
||||
...
|
||||
|
||||
@@ -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
|
||||
...
|
||||
|
||||
@@ -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
|
||||
...
|
||||
@@ -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
|
||||
...
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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/.
|
||||
@@ -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
|
||||
@@ -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'
|
||||
@@ -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
|
||||
Executable
+304
@@ -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
@@ -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
@@ -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
|
||||
@@ -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(¯o);
|
||||
|
||||
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
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||
@@ -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\ > NUL" />
|
||||
<Add after="cmd /c copy /y bin\AStyle32.dll ..\..\src-s\ > 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\ > 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_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>
|
||||
@@ -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\ > 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_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>
|
||||
@@ -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>
|
||||
@@ -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\ > NUL" />
|
||||
<Add after="cmd /c copy /y bin\AStyle32.dll ..\..\src-s\ > NUL" />
|
||||
<Add after="cmd /c copy /y bin\AStyle32.dll ..\..\src-s2\ > 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\ > 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>
|
||||
@@ -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\ > 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
Reference in New Issue
Block a user