Skip to content

Conversation

@jketema
Copy link
Contributor

@jketema jketema commented Apr 4, 2025

This will be a problem once we output those specifiers in the extractor.

Also add a test with such a static specifier.

Copilot AI review requested due to automatic review settings April 4, 2025 14:24
@jketema jketema requested a review from a team as a code owner April 4, 2025 14:24
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a test case to verify that parameters with a static specifier are processed correctly by the extractor.

  • Added a new test function, static_array_param, that uses a static array parameter.
  • Updated the test file (cpp/ql/test/library-tests/ir/ir/c11.c) to include this scenario.
Files not reviewed (4)
  • cpp/ql/lib/semmle/code/cpp/Parameter.qll: Language not supported
  • cpp/ql/test/library-tests/ir/ir/PrintAST.expected: Language not supported
  • cpp/ql/test/library-tests/ir/ir/aliased_ir.expected: Language not supported
  • cpp/ql/test/library-tests/ir/ir/raw_ir.expected: Language not supported

Tip: Copilot code review supports C#, Go, Java, JavaScript, Markdown, Python, Ruby and TypeScript, with more languages coming soon. Learn more

@github-actions github-actions bot added the C++ label Apr 4, 2025
Copy link
Contributor

@MathiasVP MathiasVP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM if DCA is happy (and someone else from the team also thinks it LGTT - "looks good to them"? 😂)

@jketema jketema added the no-change-note-required This PR does not need a change note label Apr 4, 2025
@jketema
Copy link
Contributor Author

jketema commented Apr 4, 2025

DCA looks good.

@jketema
Copy link
Contributor Author

jketema commented Apr 7, 2025

Closing for now, as we likely need a different solution in the extractor that will also works for the - somewhat related - nullability attributes from clang.

@jketema jketema closed this Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C++ no-change-note-required This PR does not need a change note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants