Skip to content

Conversation

@firewave
Copy link
Collaborator

@firewave firewave commented Dec 8, 2025

  • added simplecpp::View to be able to write code which is compatible with C++11 and => C++17
  • make constructors which take an array always available - since the size has not to be provided by the user it can be considered "safe"
  • added tests for all inputs

@firewave firewave changed the title add simplecpp::View to clean up simplecpp::TokenList constructors added simplecpp::View to clean up simplecpp::TokenList constructors Dec 8, 2025
@firewave firewave force-pushed the view branch 2 times, most recently from 789bda9 to 431c397 Compare December 8, 2025 01:45
@firewave

This comment was marked as outdated.

@firewave firewave changed the title added simplecpp::View to clean up simplecpp::TokenList constructors added simplecpp::View to be able to write portable code Dec 8, 2025
@firewave
Copy link
Collaborator Author

firewave commented Dec 8, 2025

Required to address https://trac.cppcheck.net/ticket/14267.

@firewave firewave changed the title added simplecpp::View to be able to write portable code improved simplecpp::TokenList constructors Dec 10, 2025
{
std::vector<std::string> filenames;
{
char input[] = "code"; // NOLINT(misc-const-correctness)
Copy link
Collaborator Author

@firewave firewave Dec 10, 2025

Choose a reason for hiding this comment

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

This is not actually reported but pre-emptively added in case it is detected in the future. I added a comment about it upstream: llvm/llvm-project#56758 (comment)

@firewave firewave marked this pull request as ready for review December 12, 2025 19:38
@firewave firewave marked this pull request as draft December 12, 2025 19:40
@firewave firewave force-pushed the view branch 2 times, most recently from 34d5cb3 to 27716f3 Compare December 12, 2025 20:16
@firewave
Copy link
Collaborator Author

Requires #606 to be merged first.

@firewave
Copy link
Collaborator Author

We can tag 1.6.4 after this has been merged,

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.

1 participant