[PATCH] D47515: [clang-format] Process line's children once in guessIsObjC

2018-05-30 Thread Attila via Phabricator via cfe-commits
Uran198 created this revision. Uran198 added reviewers: djasper, klimek. Repository: rC Clang https://reviews.llvm.org/D47515 Files: lib/Format/Format.cpp Index: lib/Format/Format.cpp === --- lib/Format/Format.cpp +++ lib/Form

[PATCH] D47519: [clang-format] Detect amp type as TT_PointerOrReference in function annotations

2018-05-30 Thread Attila via Phabricator via cfe-commits
Uran198 created this revision. Uran198 added reviewers: klimek, krasimir, djasper. Repository: rC Clang https://reviews.llvm.org/D47519 Files: lib/Format/TokenAnnotator.cpp unittests/Format/FormatTest.cpp Index: unittests/Format/FormatTest.cpp

[PATCH] D47520: [clang-format] Allow break between question and lambda

2018-05-30 Thread Attila via Phabricator via cfe-commits
Uran198 created this revision. Uran198 added reviewers: djasper, klimek. Before the change clang-format would break and make no reformatting. Repository: rC Clang https://reviews.llvm.org/D47520 Files: lib/Format/TokenAnnotator.cpp unittests/Format/FormatTest.cpp Index: unittests/Forma

[PATCH] D47521: [clang-format] Fix parsing lambdas with noexcept

2018-05-30 Thread Attila via Phabricator via cfe-commits
Uran198 created this revision. Uran198 added reviewers: klimek, djasper. Repository: rC Clang https://reviews.llvm.org/D47521 Files: lib/Format/UnwrappedLineParser.cpp unittests/Format/FormatTest.cpp Index: unittests/Format/FormatTest.cpp =

[PATCH] D47577: [clang-format] Separate block comments with CRLF correctly

2018-05-31 Thread Attila via Phabricator via cfe-commits
Uran198 created this revision. Uran198 added a reviewer: alexfh. Herald added subscribers: cfe-commits, klimek. When formatting the following string: "/*\r\n" " * Comment with\r\n" "\r\n" " * blanks.\r\n" " */\r\n" clang-format produced: "/*\r\n" " * Comment with\r\n" "\