[PATCH] D148444: [clang-tidy] Prevent `llvmlibc-inline-function-decl` triggering on lambdas

David Blaikie via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 21 15:48:10 PDT 2023


dblaikie added a comment.

> Additionally, lambdas are always going to have internal linkage so they will not differ accross TUs.

This isn't true - if a lambda appears in a header in any way, it probably has linkage the same as an inline function, not internal.

(eg: a lambda inside an inline function has linkage so it gets deduplicated with other copies from different inclusions of a header)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D148444



More information about the cfe-commits mailing list