Skip to content

Deviation code identifier and expanded macro elements #307

Open
@rvermeulen

Description

@rvermeulen

Describe the bug
Whenever a guideline is positioned on an expanded element of a macro invocation spanning multiple lines, a deviation using a code identifier fails to suppress the guideline when position next to the offending parameter.

Macro(X,
Y, // CODE-IDENTIFIER
Z
)

To Reproduce
See example above

Expected behavior
Suppression of guideline

Screenshots
n/a

Environment

  • CodeQL Coding Standards version: e.g. 0.7.0
  • CodeQL version: 2.10.5
  • Operating System: MacOS, Linux

Additional context

A current workaround is to place the code identifier on the last line of the macro invocation instead of the offending program element (e.g., macro invocation parameter)

Macro(X,
Y,
Z,
) // CODE-IDENTIFIER

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions