Skip to content

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

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

clalancette merged 1 commit into
galacticfrom
mergify/bp/galactic/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

* 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)
@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/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