Skip to content

Refs #638: Avoid shadowing arguments#639

Open
ludviggunne wants to merge 1 commit intodanmar:masterfrom
ludviggunne:638-shadow
Open

Refs #638: Avoid shadowing arguments#639
ludviggunne wants to merge 1 commit intodanmar:masterfrom
ludviggunne:638-shadow

Conversation

@ludviggunne
Copy link
Copy Markdown
Contributor

@ludviggunne ludviggunne commented Apr 3, 2026

Fixes shadowFunction that appears with danmar/cppcheck#8303

@firewave
Copy link
Copy Markdown
Collaborator

firewave commented Apr 3, 2026

Thanks. Could you also please provide the actual warnings?

I will take a look at the CI issue.

@firewave
Copy link
Copy Markdown
Collaborator

firewave commented Apr 6, 2026

I will take a look at the CI issue.

error: target not found: mingw-w64-i686-clang

The package no longer exists in the repo: https://packages.msys2.org/packages/mingw-w64-i686-clang.

Let's wait a few more days to see if it re-appears, otherwise we disable it in the CI.

@firewave
Copy link
Copy Markdown
Collaborator

firewave commented Apr 9, 2026

Let's wait a few more days to see if it re-appears, otherwise we disable it in the CI.

I disabled it - please rebase.

std::string readUntil(Stream &stream, const Location &location, char start, char end, OutputList *outputList);
void lineDirective(unsigned int fileIndex, unsigned int line, Location &location);
void lineDirective(unsigned int fileId, unsigned int line, Location &location);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

That change is a bit problematic because "fileIndex" has a special meaning within simplecpp and that would get lost...

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

A rather awkward solution would be using fileIndex_. Maybe somebody else could chime in...

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

And on side note - as index and ID are different things it should have been changed to fileIdx.

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.

2 participants