danmar / simplecpp

C++ preprocessor
BSD Zero Clause License
209 stars 83 forks source link

made it possible to create a `TokenList` from a buffer #347

Closed firewave closed 5 months ago

firewave commented 7 months ago

Still need to integrate/test it with #261 to make sure it does not introduce any issues.

It is already actively used by Macro though and no tests are failing, so it should be fine.

firewave commented 7 months ago

Some tests are still failing - will investigate.

firewave commented 7 months ago

The tests failing are the ones with binary characters in the string. We need to add an additional const char*, int input for those.

firewave commented 7 months ago

I changed it from a std::string input to a const unsigned char*, std::size_t and const char*, std::size_t (for convienience).

The tests pass but it produces valgrind failures in #261.

firewave commented 7 months ago

The tests pass but it produces valgrind failures in #261.

The issue has been fixed - see https://github.com/danmar/simplecpp/actions/runs/8484373804/job/23247192053?pr=261.

firewave commented 6 months ago

I will provide a downstream PR which shows this is working within Cppcheck.

We should also do the (planned) release before merging this.

danmar commented 6 months ago

@firewave would you like that I release simplecpp now or do you have some more fixes..?

firewave commented 6 months ago

@firewave would you like that I release simplecpp now or do you have some more fixes..?

Do the release so we are in proper sync again.

Afterwards this PR, #339 and #312 require your feedback - and some minor work from my side.

firewave commented 6 months ago

Here is the downstream PR using char buffers instead of streams: https://github.com/danmar/cppcheck/pull/6379.

firewave commented 6 months ago

Ready for review since the downstream PR passes all tests.

danmar commented 5 months ago

@firewave you should have gotten an invite for this project. I hope you can merge..

firewave commented 5 months ago

you should have gotten an invite for this project. I hope you can merge..

@danmar Thanks.