Skip to content

Conversation

@hjelmn
Copy link
Member

@hjelmn hjelmn commented Mar 12, 2021

…function

Generally speaking static inline functions are the better choice. Open MPI
generally leave the old macro usage in place but this macro is not ideal
as written. (_remote_addr) & 0x3 is interpreted to be a cast by
clang-format. While not right it does not have enough information in the
limited scope to decide it definitely is not a cast. I will try to patch
this case in llvm but for not it is better to just modernize this piece of
code to avoid the issue altogether.

Signed-off-by: Nathan Hjelm hjelmn@google.com

@hjelmn
Copy link
Member Author

hjelmn commented Mar 12, 2021

Normally I would leave this macro in place but this one is worthwhile to update.

@hjelmn hjelmn force-pushed the lets_make_this_static_inline_instead branch from 93b2af9 to cafd054 Compare March 12, 2021 14:42
…function

Generally speaking static inline functions are the better choice. Open MPI
generally leave the old macro usage in place but this macro is not ideal
as written. (_remote_addr) & 0x3 is interpreted to be a cast by
clang-format. While not right it does not have enough information in the
limited scope to decide it definitely is not a cast. I will try to patch
this case in llvm but for not it is better to just modernize this piece of
code to avoid the issue altogether.

Signed-off-by: Nathan Hjelm <hjelmn@google.com>
@hjelmn hjelmn force-pushed the lets_make_this_static_inline_instead branch from cafd054 to 61089d7 Compare March 12, 2021 15:34
@awlauria
Copy link
Contributor

bot:aws:retest

@hjelmn hjelmn merged commit 5f443ec into open-mpi:master Mar 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants