[PATCH] D37813: clang-format: better handle namespace macros
Francois Ferrand via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 1 07:20:38 PST 2017
Typz added a comment.
As far as "parsing" and formatting inside the block is concerned, this is indeed unrelated (and would totally work if all macros where specified with some preprocessor definitions).
But identifying the 'opening' token and generating the matching 'closing' comment are totally related; it would seem very strange to have an option to specify that TESTSUITE() macros are parsed as namespace, then another option to indicate that namespace declared by this macros are actually closed with another macro call...
https://reviews.llvm.org/D37813
More information about the cfe-commits
mailing list