Skip to content

Use parantheses around logging macro parameter (backport #1820)#1822

Merged
clalancette merged 1 commit intogalacticfrom
mergify/bp/galactic/pr-1820
Feb 4, 2022
Merged

Use parantheses around logging macro parameter (backport #1820)#1822
clalancette merged 1 commit intogalacticfrom
mergify/bp/galactic/pr-1820

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify bot commented Nov 11, 2021

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

* 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 <aprotyas@u.rochester.edu>

* Remove redundant parantheses around macro param

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

Signed-off-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu>

* Add test case for expressions as logging param

Signed-off-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu>
(cherry picked from commit f7bb88f)
@aprotyas
Copy link
Copy Markdown
Member

aprotyas commented Nov 11, 2021

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

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

@aprotyas
Copy link
Copy Markdown
Member

The rosbag test failures in Windows look unrelated to this PR.

@clalancette clalancette merged commit 54c2a8a into galactic Feb 4, 2022
@delete-merged-branch delete-merged-branch bot deleted the mergify/bp/galactic/pr-1820 branch February 4, 2022 14:09
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.

5 participants