[PATCH] Add support for foreach macros to clang-format

Daniel Jasper djasper at google.com
Thu Mar 13 04:12:06 PDT 2014


  - Not all of those qualify for what this CL implements. They don't expect a variable declaration as the first parameter and don't expect users to add a space between macro name and opening parenthesis. These are false positives (I think actually almost all of the ones you are mentioning).
  - The regex has false positives, e.g. in the git codebase, which defines functions with such names.

http://llvm-reviews.chandlerc.com/D2919



More information about the cfe-commits mailing list