[PATCH] Add support for foreach macros to clang-format
David Majnemer
david.majnemer at gmail.com
Wed Mar 12 15:47:57 PDT 2014
Here is a small subset of such macros to give you an example:
list_for_each_cookie
list_for_each_entry
list_for_each_entry_continue
list_for_each_entry_continue_rcu
list_for_each_entry_continue_reverse
list_for_each_entry_from
list_for_each_entry_rcu
list_for_each_entry_reverse
list_for_each_entry_safe
list_for_each_entry_safe_continue
list_for_each_entry_safe_from
list_for_each_entry_safe_reverse
list_for_each_from
list_for_each_prev
list_for_each_prev_safe
list_for_each_safe
list_for_each_xattr
radix_tree_for_each_chunk
radix_tree_for_each_chunk_slot
radix_tree_for_each_contig
radix_tree_for_each_slot
radix_tree_for_each_tagged
I used the following to find these:
git grep for_each | grep define | grep -P "\w+_for_each\w+" -o | sort -u
That macro gave me no false positives.
http://llvm-reviews.chandlerc.com/D2919
More information about the cfe-commits
mailing list