unterumarmung wrote: Thanks for working on this! I'm not a maintainer, so please take my review with a grain of salt. Reviewer availability is limited, and getting a maintainer review can take a while, but I hope this helps in the meantime.
Could we split `IgnoredParameterNames` and `CommentZeroIntegerLiterals` into separate PRs? Both are useful independently of C macro support and introduce their own policy choices. `IgnoredParameterNames` also affects validation of existing comments, so it seems worth reviewing separately. The macro handling preserves the existing treatment of unary expressions, so `!TRUE`, `~TRUE`, and `-FALSE` can also trigger after stripping one unary operator. Could we clarify the documentation’s “exactly one of these macros” wording and add tests for these forms? For integer literals, would an enum such as `None`, `ZeroOnly`, and `All` be clearer than overlapping `CommentIntegerLiterals` and `CommentZeroIntegerLiterals` booleans? Another possibility is a regex if projects need more flexible selection, though we'd need to define whether it matches source spelling or a normalized value, particularly for forms like `0U` and `0x0`. Keeping existing configurations compatible would also need some thought, but a separate PR would give that discussion room without holding up the macro support. https://github.com/llvm/llvm-project/pull/237623 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
