This is an archive of the discontinued LLVM Phabricator instance.

[libc] Fix definition and use of LIBC_INLINE macro
ClosedPublic

Authored by mcgrathr on May 16 2023, 2:55 PM.

Details

Summary

LIBC_INLINE was doubly defined in two headers. Define it only in
one place. Also update a few uses to make sure it's always placed
where a function attribute is valid and is used consistently on
every declaration of the same function in case the attributes used
in its definition must match on declarations and definitions.

Diff Detail

Event Timeline

mcgrathr created this revision.May 16 2023, 2:55 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMay 16 2023, 2:55 PM
mcgrathr requested review of this revision.May 16 2023, 2:55 PM
abrachet accepted this revision.May 16 2023, 3:06 PM
This revision is now accepted and ready to land.May 16 2023, 3:06 PM
This revision was landed with ongoing or failed builds.May 16 2023, 3:11 PM
This revision was automatically updated to reflect the committed changes.