[PATCH] D48720: [clang-format] Put ObjC method arguments into one line when they fit

2018-07-02 Thread Jacek Olesiak via Phabricator via cfe-commits
jolesiak marked an inline comment as done. jolesiak added inline comments. Comment at: lib/Format/ContinuationIndenter.cpp:1411 + // line). + if (Current.MatchingParen && Current.MatchingParen->Previous) { +const FormatToken &CurrentScopeOpener = *Current.MatchingParen->Pre

[PATCH] D48720: [clang-format] Put ObjC method arguments into one line when they fit

2018-07-02 Thread Jacek Olesiak via Phabricator via cfe-commits
jolesiak updated this revision to Diff 153706. jolesiak added a comment. Rebase. Repository: rC Clang https://reviews.llvm.org/D48720 Files: lib/Format/ContinuationIndenter.cpp unittests/Format/FormatTestObjC.cpp Index: unittests/Format/FormatTestObjC.cpp ==

[PATCH] D48720: [clang-format] Put ObjC method arguments into one line when they fit

2018-07-02 Thread Jacek Olesiak via Phabricator via cfe-commits
jolesiak updated this revision to Diff 153705. jolesiak added a comment. Improve condition. Repository: rC Clang https://reviews.llvm.org/D48720 Files: lib/Format/ContinuationIndenter.cpp lib/Format/FormatToken.h lib/Format/TokenAnnotator.cpp unittests/Format/FormatTestObjC.cpp Inde

[PATCH] D48720: [clang-format] Put ObjC method arguments into one line when they fit

2018-06-29 Thread Ben Hamilton via Phabricator via cfe-commits
benhamilton accepted this revision. benhamilton added inline comments. This revision is now accepted and ready to land. Comment at: lib/Format/ContinuationIndenter.cpp:1411 + // line). + if (Current.MatchingParen && Current.MatchingParen->Previous) { +const FormatToken &Cur

[PATCH] D48720: [clang-format] Put ObjC method arguments into one line when they fit

2018-06-28 Thread Jacek Olesiak via Phabricator via cfe-commits
jolesiak created this revision. Herald added a subscriber: cfe-commits. Repository: rC Clang https://reviews.llvm.org/D48720 Files: lib/Format/ContinuationIndenter.cpp unittests/Format/FormatTestObjC.cpp Index: unittests/Format/FormatTestObjC.cpp =