================ @@ -97,38 +97,61 @@ The functions are matched using POSIX extended regular expressions. The `reason` is optional and is used to provide additional information about the reasoning behind the replacement. The default reason is `is marked as unsafe`. -If `replacement` is empty, the text `it should not be used` will be shown -instead of the suggestion for a replacement. If the `reason` starts with the -character `>`, the replacement message is disabled, to allow better control over -the suggestions. +If `replacement` is empty, the default text `it should not be used` will be +shown instead of the suggestion for a replacement. -As an example, the configuration `^original$, replacement, is deprecated;` -will produce the following diagnostic message. +If the `reason` starts with the character `>`, the reason becomes fully custom. +The default suffix is disabled even if a `replacement` is present, and only the +reason message is shown after the matched function, to allow better control over +the suggestions. The starting `>` character and the preceding spaces are trimmed +from the message. ---------------- NagyDonat wrote:
What do you mean by "preceding spaces" here? Spaces preceding the ">" mark or spaces between the ">" and the message? https://github.com/llvm/llvm-project/pull/162443 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
