[PATCH] D117435: [clang] Warning for inline constexpr functions

Evgeny Shulgin via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Jan 16 12:17:20 PST 2022


Izaron added a comment.

In D117435#3247137 <https://reviews.llvm.org/D117435#3247137>, @rjmccall wrote:

> I don't remember if this is written up anywhere, but clang has a longstanding policy that style enforcement belongs in a linter rather than the compiler.  One programmer's "redundant" is another programmer's "clear and explicit".  I don't think this warning is consistent with that.

Thanks, didn't know this. Hope I'll make it to clang-tidy then.
(There was an abandoned review back in time when "inline" meant "inlinehint" for LLVM IR. https://reviews.llvm.org/D18914)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D117435/new/

https://reviews.llvm.org/D117435



More information about the cfe-commits mailing list