Skip to content

fixed #12753 - do not look for extension-less library files#7538

Merged
firewave merged 1 commit intocppcheck-opensource:mainfrom
firewave:lib-noext
Jun 6, 2025
Merged

fixed #12753 - do not look for extension-less library files#7538
firewave merged 1 commit intocppcheck-opensource:mainfrom
firewave:lib-noext

Conversation

@firewave
Copy link
Copy Markdown
Collaborator

No description provided.

@firewave firewave force-pushed the lib-noext branch 6 times, most recently from e596241 to b623647 Compare May 31, 2025 17:41
@firewave

This comment was marked as resolved.

@firewave firewave changed the title fixed #12753 - do not look for extension-less library files / added more tests fixed #12753 - do not look for extension-less library files May 31, 2025
@firewave firewave force-pushed the lib-noext branch 2 times, most recently from 5636d40 to 445378d Compare June 2, 2025 08:22
@firewave firewave marked this pull request as ready for review June 2, 2025 08:23
@firewave
Copy link
Copy Markdown
Collaborator Author

firewave commented Jun 2, 2025

@ludviggunne maybe also review since you looked into something related. Thanks!

Comment thread lib/library.cpp

// TODO: what if the extension is not .cfg?
// only append extension when we provide the library name and not a path - TODO: handle relative paths?
if (!is_abs_path && Path::getFilenameExtension(fullfilename).empty())
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.

Maybe only allow extensionless as a shorthand if it's a single word? If you're supplying a path you might as well supply the whole filename.

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.

I was thinking the same thing. That's what the TODO is about. Will file a ticket about it and address it as a whole when the behavior is mostly aligned (i.e. no more TODO/skip/xfail in the Python test).

@firewave firewave merged commit 41a9689 into cppcheck-opensource:main Jun 6, 2025
53 checks passed
@firewave firewave deleted the lib-noext branch June 6, 2025 11:20
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