[PATCH] D29221: clang-format-vsix: "format on save" feature

2017-04-05 Thread Antonio Maiorano via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL299543: clang-format-vsix: Add "Format on Save" feature (authored by amaiorano). Changed prior to commit: https://reviews.llvm.org/D29221?vs=89815&id=94225#toc Repository: rL LLVM https://reviews.ll

[PATCH] D29221: clang-format-vsix: "format on save" feature

2017-03-30 Thread Antonio Maiorano via Phabricator via cfe-commits
amaiorano added a comment. In https://reviews.llvm.org/D29221#713902, @hans wrote: > In https://reviews.llvm.org/D29221#698679, @amaiorano wrote: > > > Hey guys, any feedback on this? About 1.5 weeks ago, @hans asked @klimek > > and @djasper for their opinions on "clang-format" vs "ClangFormat".

[PATCH] D29221: clang-format-vsix: "format on save" feature

2017-03-30 Thread Hans Wennborg via Phabricator via cfe-commits
hans added a comment. In https://reviews.llvm.org/D29221#698679, @amaiorano wrote: > Hey guys, any feedback on this? About 1.5 weeks ago, @hans asked @klimek and > @djasper for their opinions on "clang-format" vs "ClangFormat". Thanks! Let's get this committed now and not worry about renaming

[PATCH] D29221: clang-format-vsix: "format on save" feature

2017-03-11 Thread Antonio Maiorano via Phabricator via cfe-commits
amaiorano added a comment. In https://reviews.llvm.org/D29221#688697, @hans wrote: > >>> My only nit is that I'd prefer "clang-format" instead of "ClangFormat". > >>> > >>> Manuel: the menu options under Tools currently say "Clang Format > >>> {Selection,Document}". What do you think about usin

[PATCH] D29221: clang-format-vsix: "format on save" feature

2017-02-28 Thread Hans Wennborg via Phabricator via cfe-commits
hans added a subscriber: djasper. hans added a comment. >>> My only nit is that I'd prefer "clang-format" instead of "ClangFormat". >>> >>> Manuel: the menu options under Tools currently say "Clang Format >>> {Selection,Document}". What do you think about using "clang-format" here >>> instead?

[PATCH] D29221: clang-format-vsix: "format on save" feature

2017-02-27 Thread Antonio Maiorano via Phabricator via cfe-commits
amaiorano added a comment. In https://reviews.llvm.org/D29221#687438, @amaiorano wrote: > In https://reviews.llvm.org/D29221#687425, @hans wrote: > > > In https://reviews.llvm.org/D29221#686865, @amaiorano wrote: > > > > > Made changes based on @hans 's feedback. > > > > > > I looked again at the

[PATCH] D29221: clang-format-vsix: "format on save" feature

2017-02-27 Thread Antonio Maiorano via Phabricator via cfe-commits
amaiorano added a comment. In https://reviews.llvm.org/D29221#687425, @hans wrote: > In https://reviews.llvm.org/D29221#686865, @amaiorano wrote: > > > Made changes based on @hans 's feedback. > > > > I looked again at the categories, and I think it makes sense with my > > changes. Here's an upd

[PATCH] D29221: clang-format-vsix: "format on save" feature

2017-02-27 Thread Hans Wennborg via Phabricator via cfe-commits
hans added a comment. In https://reviews.llvm.org/D29221#686865, @amaiorano wrote: > Made changes based on @hans 's feedback. > > I looked again at the categories, and I think it makes sense with my changes. > Here's an updated screenshot that shows what the options menu in Visual > Studio look

[PATCH] D29221: clang-format-vsix: "format on save" feature

2017-02-26 Thread Antonio Maiorano via Phabricator via cfe-commits
amaiorano updated this revision to Diff 89815. amaiorano added a comment. Made changes based on @hans 's feedback. I looked again at the categories, and I think it makes sense with my changes. Here's an updated screenshot that shows what the options menu in Visual Studio looks like with these c

[PATCH] D29221: clang-format-vsix: "format on save" feature

2017-02-21 Thread Antonio Maiorano via Phabricator via cfe-commits
amaiorano added inline comments. Comment at: tools/clang-format-vs/ClangFormat/ClangFormatPackage.cs:276 + +if (Vsix.IsDocumentDirty(document)) +{ hans wrote: > Perhaps return early if `!Vsix.IsDocumentDirty(document)` instead? Yes, will d

[PATCH] D29221: clang-format-vsix: "format on save" feature

2017-02-21 Thread Antonio Maiorano via Phabricator via cfe-commits
amaiorano added inline comments. Comment at: tools/clang-format-vs/ClangFormat/ClangFormatPackage.cs:39 private string style = "file"; +private bool formatOnSaveEnabled = false; +private string formatOnSaveFileExtensions = hans wrote: > P

[PATCH] D29221: clang-format-vsix: "format on save" feature

2017-02-21 Thread Hans Wennborg via Phabricator via cfe-commits
hans added a comment. I'm not really qualified to review the implementation details, but this seems good as far as I can tell. A few comments, mostly style related. Comment at: tools/clang-format-vs/ClangFormat/ClangFormatPackage.cs:39 private string style = "file"; +

[PATCH] D29221: clang-format-vsix: "format on save" feature

2017-02-17 Thread Antonio Maiorano via Phabricator via cfe-commits
amaiorano added a comment. Hello again. Just wondering if anyone could take a look at this? I updated the patch a week ago :) Thanks! https://reviews.llvm.org/D29221 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-

[PATCH] D29221: clang-format-vsix: "format on save" feature

2017-02-10 Thread Antonio Maiorano via Phabricator via cfe-commits
amaiorano updated this revision to Diff 88000. amaiorano added a comment. - Renamed VsixUtils to Vsix and TypeConverterUtils to TypeConversion - Removed format on save mode The change is simpler now without the "mode" (current or all documents). Now I'm wondering whether I should rename the feat

[PATCH] D29221: clang-format-vsix: "format on save" feature

2017-02-07 Thread Antonio Maiorano via Phabricator via cfe-commits
amaiorano added a comment. In https://reviews.llvm.org/D29221#668867, @klimek wrote: > +hans > > +1 to "format only current document but save all" not making much sense :) Yes, I've been using this version for a little while now, and it's not useful to have the current document version. I'll r

[PATCH] D29221: clang-format-vsix: "format on save" feature

2017-02-07 Thread Manuel Klimek via Phabricator via cfe-commits
klimek added a reviewer: hans. klimek added a comment. +hans +1 to "format only current document but save all" not making much sense :) Comment at: tools/clang-format-vs/ClangFormat/TypeConverterUtils.cs:7 +{ +public sealed class TypeConverterUtils +{

[PATCH] D29221: clang-format-vsix: "format on save" feature

2017-02-06 Thread Antonio Maiorano via Phabricator via cfe-commits
amaiorano added a comment. Hello! Just a small ping to see if anyone has taken a look at this change? I fully understand that everyone's really busy, but perhaps you can recommend another reviewer? Or if you're presently giving this change a whirl, just let me know! Cheers :) https://reviews.

[PATCH] D29221: clang-format-vsix: "format on save" feature

2017-01-27 Thread Antonio Maiorano via Phabricator via cfe-commits
amaiorano created this revision. This change adds a feature to the clang-format VS extension that optionally enables the automatic formatting of documents when saving. Since developers always need to save their files, this eases the workflow of making sure source files are properly formatted. T