Patch to fix Format's FixNamespaceComments for Objective-C++ files

Vasyl Smyrnov via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 2 04:38:39 PDT 2017


Hi,

I’ve noticed that clang-format does not respect the "FixNamespaceComments: true” option if an Objective-C++ file is formatted by feeding a .mm file to clang-format, however the option is respected with the same source code supplied via stdin.

The attached patch fixes the problem (based on revision 317195).

Thanks for your consideration.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: application/octet-stream
Size: 49 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171102/4e2d3f0b/attachment.obj>


More information about the cfe-commits mailing list