llvm-project
20c323aa - [clang-tidy] Do not lint on attribute macros (#164806)

Commit
51 days ago
[clang-tidy] Do not lint on attribute macros (#164806) `cppcoreguidelines-macro-usage` lint incorrectly identifies these macros as candidates for rewrite into template arguments. There are no, variadic or not, equivalent to these macros using templated functions. In short, we should not suggest code writers to rewrite this macro with `constexpr` functions. ```c #define FORMAT_STR(format_msg, first_idx) __attribute__((format(printf, format_msg, first_idx))) ``` Signed-off-by: Xiangfei Ding <dingxiangfei2009@protonmail.ch>
Parents
Loading