9893cd2f23Merge pull request #6 from steinwurf/use-new-waf
main
Peter Vingelmann
2017-04-01 00:21:28 +02:00
4721872e16Fix wscript
Peter Vingelmann
2017-04-01 00:19:06 +02:00
d90e294e95Add new waf + resolve.json
Peter Vingelmann
2017-04-01 00:17:31 +02:00
b4770867f4Update .astylerc
Peter Vingelmann
2017-03-29 02:34:40 +02:00
64b7db1d01Update README.rst
Peter Vingelmann
2016-09-29 23:06:58 +02:00
5744348980Only change the return code if --print-changes is used with --dry-run
Peter Vingelmann
2016-09-29 19:49:06 +02:00
bd2b2d8dd2Indent an initializer block after an = sign
Peter Vingelmann
2016-09-29 19:14:51 +02:00
7ff42a49fcAdd test cases for latest fix
Peter Vingelmann
2016-09-29 19:09:06 +02:00
7eb183de85Do not add extra space after pointer return value in function signature. For example, this is correct code: stub::function<const uint8_t*(uint32_t)> coefficient_vector_data;
Peter Vingelmann
2016-09-29 19:08:19 +02:00
e6fcceaaa6Merge pull request #5 from steinwurf/add-tests
Peter Vingelmann
2016-09-29 00:33:44 +02:00
27c2c0e8caAdd test file for distorted style
Peter Vingelmann
2016-09-29 00:32:43 +02:00
fab103cb47Properly handle initializer blocks with double block openers. For example: std::map<uint32_t, uint32_t> generation_map( { {0, 100}, {1, 100}, {2, 100}, {3, 10}, {4, 10} });
Peter Vingelmann
2016-09-29 00:20:55 +02:00
d39345f7cdAdd ample code examples in correct_style.cpp
Peter Vingelmann
2016-09-28 03:26:12 +02:00
90757717a5Fix newline comparison on windows
Peter Vingelmann
2016-09-27 21:04:01 +02:00
2d9dba76cbUse universal newlines for comparison
Peter Vingelmann
2016-09-27 20:46:56 +02:00
fbe87c1385Implement basic formatting check
Peter Vingelmann
2016-09-27 20:37:42 +02:00
a0df5545faUpdate README.rst
Peter Vingelmann
2016-09-26 16:36:15 +02:00
1136d961a0Update README.rst
Peter Vingelmann
2016-09-24 03:15:59 +02:00
5b3ab401d2Update .astylerc
Peter Vingelmann
2016-09-23 23:33:29 +02:00
543fa70c92Merge pull request #4 from steinwurf/fix-formatting
Peter Vingelmann
2016-09-23 23:17:35 +02:00
29a4b8d4a6Basic handling for initializer blocks in statements
Peter Vingelmann
2016-09-23 23:15:50 +02:00
45885f5fb1Clear isInStatement after template instantiation
Peter Vingelmann
2016-09-23 02:42:37 +02:00
8853a85181Fix block opener recognition for "auto x -> y<arg>"
Peter Vingelmann
2016-09-22 23:58:15 +02:00
0933c3c033Suppress multiple indents in template instantiation if line ends with <
Peter Vingelmann
2016-09-22 22:55:55 +02:00
27067bcbb5Fixed 4-space alignment if the line ends with (
Peter Vingelmann
2016-09-22 22:50:24 +02:00
81b77fc202Do not perform right alignment for assignment and return if line ends with (
Peter Vingelmann
2016-09-22 00:29:29 +02:00
063a8b06b6Remove unneeded firstLineChar member in ASBeautifier
Peter Vingelmann
2016-09-21 21:09:58 +02:00
a3ccecfa4aRemove special handling for NonInStatementArray
Peter Vingelmann
2016-09-21 19:57:55 +02:00
f4ad8a3585Remove special handling for "new" after the = sign
Peter Vingelmann
2016-09-19 23:22:05 +02:00
c8020d8c1cUse symmetric layout for the closing bracket in template argument lists
Peter Vingelmann
2016-09-19 23:03:41 +02:00
7137b582a7Fix line number in printChangedLine
Peter Vingelmann
2016-09-19 20:05:24 +02:00
008cc94a1eAdjust indentation when the line starts or ends with <<
Peter Vingelmann
2016-09-19 20:04:20 +02:00
575c2d2e1fAdd indentation for end-of-line "->"
Peter Vingelmann
2016-09-19 19:23:52 +02:00
77516152efMerge pull request #3 from steinwurf/add-to-buildbot
Peter Vingelmann
2016-09-16 23:47:16 +02:00
1e2a537091Update README.rst
Peter Vingelmann
2016-09-16 23:45:35 +02:00
0cd83dc1f3Add .astylerc, waf and related scripts
Peter Vingelmann
2016-09-16 23:07:49 +02:00
4e8f6c8745Merge pull request #2 from steinwurf/fix-formatting
Peter Vingelmann
2016-09-16 22:42:05 +02:00
5c9aefd388registerInStatementIndent: Align with the next non-whitespace character
Peter Vingelmann
2016-09-16 20:58:01 +02:00
c9a243fd41Print full filenames with --print-changes (so the IDE can jump to the line)
Peter Vingelmann
2016-09-16 19:53:37 +02:00
eb505347cbKeep spaceIndentCount for the current line to handle lambda expressions in multiline statements: std::generate(data.begin(), data.end(), [&]() { return randval(engine); });
Peter Vingelmann
2016-09-16 19:44:47 +02:00
39a611a2e8Fix invalid detection of >> in class headers
Peter Vingelmann
2016-09-15 21:31:44 +02:00
5d24aeba9aFix issue when closing potential template instantiation
Peter Vingelmann
2016-09-15 21:12:46 +02:00
1548f1d070Do not recognize the "template" disambiguator for dependent names as an actual template header
Peter Vingelmann
2016-09-15 20:39:58 +02:00
c43ddc6964Revert template disambiguator fix
Peter Vingelmann
2016-09-15 19:33:20 +02:00
03668a9b21Fix line numbers with --print-changes
Peter Vingelmann
2016-09-15 17:34:14 +02:00
e4ce7b36b0Do not recognize the "template" disambiguator for dependent names as an actual template header
Peter Vingelmann
2016-09-15 03:06:06 +02:00
b1259192ffDo not try to align multiple assignments if line ends with comma
Peter Vingelmann
2016-09-15 02:07:08 +02:00
53696ac249Do not add extra space in variadic template argument: Args&&... args
Peter Vingelmann
2016-09-14 21:55:53 +02:00
d11eb1a63dDo not terminate if no matching file was found for a wildcard
Peter Vingelmann
2016-09-14 20:43:41 +02:00
8458be2f70Add --print-changes to print all changed lines (useful in dry-run mode) + Return the number of formatted files in this mode
Peter Vingelmann
2016-09-14 20:19:13 +02:00
91bff90bf2Attach colon to constructor header and break line before member initializers
Peter Vingelmann
2016-09-14 03:46:07 +02:00
1bad21fe6bProvide basic indentation for template instantiation argument lists
Peter Vingelmann
2016-09-13 02:19:29 +02:00
f3cd3f7c51Allow max-instatement-indent to be less than 40
Peter Vingelmann
2016-09-10 04:55:59 +02:00
52a1be339aFix false detection of rvalue references in a class headers
Peter Vingelmann
2016-09-10 04:54:08 +02:00
25c4fdac73Add firstLineChar member in ASBeautifier + Use symmetrical layout for closing brace in template argument list:
Peter Vingelmann
2016-09-10 04:29:09 +02:00
a28cde5425Do not dedent comments in multiline class headers + Do not add InStatementIndent for commas in class headers
Peter Vingelmann
2016-09-10 03:25:39 +02:00
7b791f1827Merge pull request #1 from steinwurf/upgrade-to-svn-r511
Peter Vingelmann
2016-09-09 01:58:11 +02:00
a80ed8000aUpgrade to SVN r511
Peter Vingelmann
2016-09-09 00:17:30 +02:00
c8638db9b4Initial commit with astyle version 2.05.1
Peter Vingelmann
2016-09-08 23:34:23 +02:00