Skip to content

fixed #12145 - provided order of source files is not preserved#5625

Merged
danmar merged 3 commits into
cppcheck-opensource:mainfrom
firewave:filevector
Nov 7, 2023
Merged

fixed #12145 - provided order of source files is not preserved#5625
danmar merged 3 commits into
cppcheck-opensource:mainfrom
firewave:filevector

Conversation

@firewave
Copy link
Copy Markdown
Collaborator

@firewave firewave commented Nov 5, 2023

No description provided.

@firewave
Copy link
Copy Markdown
Collaborator Author

firewave commented Nov 5, 2023

This is also required to move the file sorting based on the markup extensions to the shared code.

Comment thread cli/filelister.cpp
}
}

filesSorted.sort([](const decltype(filesSorted)::value_type& a, const decltype(filesSorted)::value_type& b) {
Copy link
Copy Markdown
Collaborator Author

@firewave firewave Nov 5, 2023

Choose a reason for hiding this comment

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

The files inside the folder still need to be sorted as the order retrieved from the filesystem is random.

I did not add an explicit test for this as this is implicitly tested by dmake. The order of the files were different in the generated files before I added the sorting.

@firewave firewave marked this pull request as ready for review November 6, 2023 18:14
Comment thread cli/cppcheckexecutor.cpp
@danmar danmar merged commit bc174c5 into cppcheck-opensource:main Nov 7, 2023
@firewave firewave deleted the filevector branch November 7, 2023 22:10
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