[clang] [alpha.webkit.UncountedLocalVarsChecker] Don't warning on inlined functions (PR #90733)

Ryosuke Niwa via cfe-commits cfe-commits at lists.llvm.org
Wed May 1 10:30:50 PDT 2024


rniwa wrote:

> As per the guidelines, trivial inline functions shouldn't be changed to adopt smart pointers.

The triviality of a function is checked by `TrivialFunctionAnalysis`. We shouldn't assume every inline function as trivial. For example, an inline function could call a non-inline function which mutates the memory state.

https://github.com/llvm/llvm-project/pull/90733


More information about the cfe-commits mailing list