protocolbuffers / protobuf

Protocol Buffers - Google's data interchange format
http://protobuf.dev
Other
65.81k stars 15.51k forks source link

Improve support for Clang inside of UPB (#17433) #19358

Open copybara-service[bot] opened 16 hours ago

copybara-service[bot] commented 16 hours ago

Improve support for Clang inside of UPB (#17433)

After using UPB I noticed that field accessors were not getting inlined properly using Clang. The source appears to be the UPB_FORCEINLINE macro falling back to just being static when underneath clang despite clang having full support of the required attributes.

Closes #17433

COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/17433 from Vadmeme:main 57204e78cdaefec0332d01e26a04ac2b5af3e42d FUTURE_COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/17433 from Vadmeme:main 57204e78cdaefec0332d01e26a04ac2b5af3e42d