[PATCH] D28462: clang-format: Add new style option AlignConsecutiveMacros

2019-01-30 Thread Erik Nyquist via Phabricator via cfe-commits
enyquist added a comment. Looks fine to me, although I confess I did not build and run it because I don't have the time to set up the environment again, took a few hours last time I built from scratch (side note, if there's an easy way to speed up llvm/clang compilation up I'd love to hear it :

[PATCH] D28462: clang-format: Add new style option AlignConsecutiveMacros

2018-11-26 Thread Erik Nyquist via Phabricator via cfe-commits
enyquist added a comment. @smilewithani @lassi.niemisto @mewmew feel free to take a stab at it Repository: rL LLVM CHANGES SINCE LAST ACTION https://reviews.llvm.org/D28462/new/ https://reviews.llvm.org/D28462 ___ cfe-commits mailing list cfe-

[PATCH] D28462: clang-format: Add new style option AlignConsecutiveMacros

2018-06-29 Thread Erik Nyquist via Phabricator via cfe-commits
enyquist added a comment. @klimek having gotten that out of the way, I do occasionally drink too much and have sudden urges to re-implement things from scratch. Close it if you need to, since I can't commit to anything, but it it happens to be still open on one of those nights, who knows, m

[PATCH] D28462: clang-format: Add new style option AlignConsecutiveMacros

2018-06-28 Thread Erik Nyquist via Phabricator via cfe-commits
enyquist added a comment. @klimek fair point. To be honest, I've pretty much lost interest / momentum on this feature, I very much doubt I will ever go back and re-implement from scratch as you suggest. Not meaning to sound rude, I just don't want to waste anyone's time who is waiting for this

[PATCH] D28462: clang-format: Add new style option AlignConsecutiveMacros

2018-04-11 Thread Erik Nyquist via Phabricator via cfe-commits
enyquist added a comment. As far as I know, there are no updates required from me for this pull request-- I rebased on the main trunk recently, and will do it again tonight to be sure. So it should be compiling/working just fine. I believe it is just awaiting final approval from somebody. Repo

[PATCH] D28462: clang-format: Add new style option AlignConsecutiveMacros

2018-02-23 Thread Erik Nyquist via Phabricator via cfe-commits
enyquist added a comment. @dtzWill thanks for the suggestion, I have submitted this change to the weekly review corner. Repository: rL LLVM https://reviews.llvm.org/D28462 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llv

[PATCH] D28462: clang-format: Add new style option AlignConsecutiveMacros

2018-02-23 Thread Erik Nyquist via Phabricator via cfe-commits
enyquist updated this revision to Diff 135744. enyquist added a comment. Rebased on current master. No functional changes, just a minor conflict where a variable got re-named Repository: rL LLVM https://reviews.llvm.org/D28462 Files: docs/ClangFormatStyleOptions.rst include/clang/Format

[PATCH] D28462: clang-format: Add new style option AlignConsecutiveMacros

2017-07-13 Thread Erik Nyquist via Phabricator via cfe-commits
enyquist added a comment. Gaaah. I'm so sorry. I wrote that last comment months ago and never submitted. No wonder you guys weren't responding. Comment at: lib/Format/WhitespaceManager.cpp:470 // definitions. return C.Tok->is(TT_StartOfName) |

[PATCH] D28462: clang-format: Add new style option AlignConsecutiveMacros

2017-04-23 Thread Erik Nyquist via Phabricator via cfe-commits
enyquist added inline comments. Comment at: lib/Format/WhitespaceManager.cpp:431 + + // Special case for AlignTokens: for all other alignment cases, + // the current sequence is ended when a comma or a scope change djasper wrote: > enyqu

[PATCH] D28462: clang-format: Add new style option AlignConsecutiveMacros

2017-04-23 Thread Erik Nyquist via Phabricator via cfe-commits
enyquist updated this revision to Diff 96333. enyquist marked an inline comment as done. enyquist added a comment. Addressed comments Repository: rL LLVM https://reviews.llvm.org/D28462 Files: docs/ClangFormatStyleOptions.rst include/clang/Format/Format.h lib/Format/Format.cpp lib/Fo

[PATCH] D28462: clang-format: Add new style option AlignConsecutiveMacros

2017-04-23 Thread Erik Nyquist via Phabricator via cfe-commits
enyquist marked 2 inline comments as done. enyquist added inline comments. Comment at: lib/Format/WhitespaceManager.cpp:413 + + while (Param && !Param->is(tok::l_paren)) { +if (!Param->is(tok::identifier) && !Param->is(tok::comma)) djasper wrote: > enyquist

[PATCH] D28462: clang-format: Add new style option AlignConsecutiveMacros

2017-04-18 Thread Erik Nyquist via Phabricator via cfe-commits
enyquist updated this revision to Diff 95680. enyquist added a comment. Rebased on latest Repository: rL LLVM https://reviews.llvm.org/D28462 Files: docs/ClangFormatStyleOptions.rst include/clang/Format/Format.h lib/Format/Format.cpp lib/Format/WhitespaceManager.cpp lib/Format/Whit

[PATCH] D28462: clang-format: Add new style option AlignConsecutiveMacros

2017-03-28 Thread Erik Nyquist via Phabricator via cfe-commits
enyquist updated this revision to Diff 93341. enyquist added a comment. Apologies-- forgot to update a comment Repository: rL LLVM https://reviews.llvm.org/D28462 Files: docs/ClangFormatStyleOptions.rst include/clang/Format/Format.h lib/Format/Format.cpp lib/Format/WhitespaceManager.

[PATCH] D28462: clang-format: Add new style option AlignConsecutiveMacros

2017-03-28 Thread Erik Nyquist via Phabricator via cfe-commits
enyquist updated this revision to Diff 9. enyquist marked 2 inline comments as done. Repository: rL LLVM https://reviews.llvm.org/D28462 Files: docs/ClangFormatStyleOptions.rst include/clang/Format/Format.h lib/Format/Format.cpp lib/Format/WhitespaceManager.cpp lib/Format/Whitesp

[PATCH] D28462: clang-format: Add new style option AlignConsecutiveMacros

2017-03-28 Thread Erik Nyquist via Phabricator via cfe-commits
enyquist added inline comments. Comment at: lib/Format/WhitespaceManager.cpp:413 + + while (Param && !Param->is(tok::l_paren)) { +if (!Param->is(tok::identifier) && !Param->is(tok::comma)) djasper wrote: > enyquist wrote: > > djasper wrote: > > > I think you

[PATCH] D28462: clang-format: Add new style option AlignConsecutiveMacros

2017-03-27 Thread Erik Nyquist via Phabricator via cfe-commits
enyquist updated this revision to Diff 93204. enyquist marked 3 inline comments as done. enyquist added a comment. Addressed all comments, except for the one about FormatToken.MatchingParen (see reply comment) https://reviews.llvm.org/D28462 Files: docs/ClangFormatStyleOptions.rst include/

[PATCH] D28462: clang-format: Add new style option AlignConsecutiveMacros

2017-03-27 Thread Erik Nyquist via Phabricator via cfe-commits
enyquist marked 8 inline comments as done. enyquist added inline comments. Comment at: lib/Format/WhitespaceManager.cpp:287 SmallVector &Changes, +bool ConsiderScope, bool ConsiderCommas, unsig

[PATCH] D28462: clang-format: Add new style option AlignConsecutiveMacros

2017-03-26 Thread Erik Nyquist via Phabricator via cfe-commits
enyquist updated this revision to Diff 93092. enyquist added a comment. Option implemented completely in WhitespaceManager.cpp, so no overhead if the option isn't used. Also some minor style fixes. Repository: rL LLVM https://reviews.llvm.org/D28462 Files: docs/ClangFormatStyleOptions.rst

[PATCH] D28462: clang-format: Add new style option AlignConsecutiveMacros

2017-03-14 Thread Erik Nyquist via Phabricator via cfe-commits
enyquist added a comment. @sylvestre.ledru No, unfortunately not. My apologies, I've been taken up with work mostly. I will make a marked attempt to do it this weekend :) Repository: rL LLVM https://reviews.llvm.org/D28462 ___ cfe-commits mailin

[PATCH] D28462: clang-format: Add new style option AlignConsecutiveMacros

2017-02-01 Thread Erik Nyquist via Phabricator via cfe-commits
enyquist added a comment. Thanks :) I should get a chance to return to this next week. Repository: rL LLVM https://reviews.llvm.org/D28462 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[PATCH] D28462: clang-format: Add new style option AlignConsecutiveMacros

2017-01-16 Thread Erik Nyquist via Phabricator via cfe-commits
enyquist added inline comments. Comment at: Format/FormatToken.h:148 + /// \brief Whether the token is the final token in the identifier of a PP + // macro. This will be either 1) the identifier token following the 'define' djasper wrote: > This adds a lot of

[PATCH] D28462: clang-format: Add new style option AlignConsecutiveMacros

2017-01-14 Thread Erik Nyquist via Phabricator via cfe-commits
enyquist updated this revision to Diff 84478. enyquist added a comment. Forgot to set "AlignConsecutiveMacros = false" in getLLVMStyle() Repository: rL LLVM https://reviews.llvm.org/D28462 Files: ClangFormatStyleOptions.rst Format/Format.cpp Format/FormatTest.cpp Format/FormatToken.h

[PATCH] D21279: Fix some issues in clang-format's AlignConsecutive modes

2017-01-10 Thread Erik Nyquist via Phabricator via cfe-commits
enyquist added a comment. Well, your patch is here for me to try, and it looks like it's been accepted. So I guess I should just pull my finger out and try it :) Thanks for your response-- I'll let you know if I come across any issues. https://reviews.llvm.org/D21279

[PATCH] D21279: Fix some issues in clang-format's AlignConsecutive modes

2017-01-09 Thread Erik Nyquist via Phabricator via cfe-commits
enyquist added a comment. Hey bmharper :) I've got a review open that conflicts with this one, just having a look to see what I'll need to refactor (https://reviews.llvm.org/D28462). In fact, I have a question-- the conflict is specifically in WhitespaceManager.cpp. Since I needed to detect PP

[PATCH] D28462: clang-format: Add new style option AlignConsecutiveMacros

2017-01-08 Thread Erik Nyquist via Phabricator via cfe-commits
enyquist created this revision. enyquist added reviewers: djasper, sylvestre.ledru. enyquist added a subscriber: cfe-commits. enyquist set the repository for this revision to rL LLVM. enyquist added a project: clang-c. Herald added a subscriber: klimek. This option behaves similarly to AlignConsec