Skip to content

fixed #13921 - do not perform additional addon lookups with absolute path#7574

Merged
firewave merged 1 commit intocppcheck-opensource:mainfrom
firewave:addon-abs
Jun 13, 2025
Merged

fixed #13921 - do not perform additional addon lookups with absolute path#7574
firewave merged 1 commit intocppcheck-opensource:mainfrom
firewave:addon-abs

Conversation

@firewave
Copy link
Copy Markdown
Collaborator

@firewave firewave commented Jun 6, 2025

No description provided.

Comment thread lib/addoninfo.cpp
if (Path::isFile(fileName))
return fileName;

const bool is_abs_path = Path::isAbsolute(fileName);
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.

Nit; I don't see the need to have a is_abs_path variable

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Probably did it because the other implementations use a warning. It is just intermediate code though until we replace it with a shared version.

Copy link
Copy Markdown
Collaborator

@danmar danmar left a comment

Choose a reason for hiding this comment

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

ok I don't have a very strong opinion about that nit. but would remove it myself.

@firewave firewave merged commit 291c053 into cppcheck-opensource:main Jun 13, 2025
53 checks passed
@firewave firewave deleted the addon-abs branch June 13, 2025 08:32
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