Skip to content

Use parantheses around logging macro parameter (backport #1820) - #1823

Merged
clalancette merged 1 commit into
foxyfrom
mergify/bp/foxy/pr-1820
Feb 4, 2022
Merged

clalancette merged 1 commit into
foxyfrom
mergify/bp/foxy/pr-1820

Conversation

@mergify

@mergify mergify Bot commented Nov 11, 2021

Copy link
Copy Markdown
Contributor

This is an automatic backport of pull request #1820 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

@aprotyas

aprotyas commented Nov 11, 2021 •

Copy link
Copy Markdown
Member

Running CI.
Build args: --packages-above-and-dependencies rclcpp
Test args: --packages-above rclcpp
Job: https://ci.ros2.org/job/ci_launcher/9330

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@aprotyas

Copy link
Copy Markdown
Member

I believe the launch_ros test failure will be addressed by ros2/launch_ros#265, and rosbag test failure in Windows looks unrelated.

* Use parantheses around logging macro parameter

This allows the macro to expand "correctly", i.e. macro argument
expression is fully evaluated before use.

Signed-off-by: Abrar Rahman Protyasha <[email protected]>

* Remove redundant parantheses around macro param

`decltype(X)` already provides sufficient "scoping" to the macro
parameter `X`.

Signed-off-by: Abrar Rahman Protyasha <[email protected]>

* Add test case for expressions as logging param

Signed-off-by: Abrar Rahman Protyasha <[email protected]>
(cherry picked from commit f7bb88f)
@clalancette
clalancette force-pushed the mergify/bp/foxy/pr-1820 branch from b3bac0e to 99a2b43 Compare February 4, 2022 14:11
@clalancette

Copy link
Copy Markdown
Contributor

Here is a new CI build just to see if things are happier now:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@clalancette

Copy link
Copy Markdown
Contributor

CI failures on Windows are unrelated to this PR, so merging.

@clalancette
clalancette merged commit 15edc93 into foxy Feb 4, 2022
@delete-merged-branch
delete-merged-branch Bot deleted the mergify/bp/foxy/pr-1820 branch February 4, 2022 21:57
@DLu DLu mentioned this pull request Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants