[PATCH] Add support for foreach macros to clang-format
Brian Green
briangreenery at gmail.com
Sun Mar 2 14:00:09 PST 2014
briangreenery added you to the CC list for the revision "Add support for foreach macros to clang-format".
I added a new configuration option to clang-format called "ForEachMacros". This
allows macros that work like a foreach loop, like BOOST_FOREACH, to be formatted
correctly. Currently they're formatted like a function call.
This would fix:
http://llvm.org/bugs/show_bug.cgi?id=18534
Which these bugs could then be duped on:
http://llvm.org/bugs/show_bug.cgi?id=17518
http://llvm.org/bugs/show_bug.cgi?id=17242
http://llvm-reviews.chandlerc.com/D2919
Files:
docs/ClangFormatStyleOptions.rst
include/clang/Format/Format.h
lib/Format/Format.cpp
lib/Format/FormatToken.cpp
lib/Format/FormatToken.h
lib/Format/TokenAnnotator.cpp
lib/Format/UnwrappedLineParser.cpp
lib/Format/UnwrappedLineParser.h
unittests/Format/FormatTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2919.1.patch
Type: text/x-patch
Size: 8710 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140302/d77d1abf/attachment.bin>
More information about the cfe-commits
mailing list