djasper added inline comments.
================
Comment at: lib/Format/TokenAnnotator.cpp:2183
return 0;
+ if (Left.Previous && Left.Previous->is(tok::equal) &&
+ !Style.Cpp11BracedListStyle)
----------------
Why is this necessary?
================
Comment at: unittests/Format/FormatTest.cpp:6655
+ FormatStyle AvoidBreakingFirstArgument = getLLVMStyle();
+ AvoidBreakingFirstArgument.PenaltyBreakBeforeFirstCallParameter = 200;
+ verifyFormat("const std::unordered_map<std::string, int> MyHashTable =\n"
----------------
How does this penalty influence the test?
Repository:
rC Clang
https://reviews.llvm.org/D43290
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits