Info
In the commit for SERVER-22469, C-style comments rewrapped correctly, but C++-style comments came out looking like (e.g. db.js):
// We have special handling for the 'flags' field, and provide sugar for specific flags. If
// the
// user specifies any flags we send the field in the command. Otherwise, we leave it blank
// and
// use the server's defaults.
and
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////// Security shell helpers below
/////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Top User Comments
max.hirschhorn@10gen.com commented on Tue, 16 May 2017 14:41:00 +0000:
When clang-format wraps multiple lines that are over 100 characters onto separate lines, each wrapped at 100 characters. This behavior was known and was something that Mark worked around in SERVER-18978. We can try and use a script similar to
find . -regextype posix-egrep -regex ".*\.(cpp|h)" | grep -v rlp_decls | xargs -I{} grep -H --color '.\{101\}' {} | wc -l
to identify any other lines that should be reflowed.