This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Add fix-it support to `llvmlibc-inline-function-decl`
ClosedPublic

Authored by mcgrathr on Aug 4 2023, 5:16 PM.

Details

Summary

This is very simplistic and could be more thorough by replacing
an existing LIBC_INLINE in the wrong location or a redunant
inline when inserting the right macro use. But as is this
suffices to automatically apply fixes for most or all of the
instances in the libc tree today and get working results (despite
some superfluous inline keywords left behind).

Diff Detail