Oliver Stöneberg

Results 1140 comments of Oliver Stöneberg

``` > simplecpp e:\a.cpp int i ; e:\a.cpp:1: cache error: Failed to get ID for e:/a.h (GetFileInformationByHandleEx() failed with 'The parameter is incorrect.') e:\a.cpp:1: missing header: Header not found: "a.h"...

I chose a different type so we not need to pipe the more verbose information from the generic missing include error. The idea for hooking this up in Cppcheck would...

The mess is even bigger as the vector is also referenced and (potentially) modified in `Macro` and `preprocess()`.

https://trac.cppcheck.net/ticket/14268 is an issue in Cppcheck where the object went out of scope.

It *appears* the functionality of providing a list of existing files is required internally by `Macro` but not downstream in Cppcheck. I cannot really tell if that is actually necessary...

This could probably be implemented via the `FileDataCache` by providing a function an virtual function.

Taken from https://github.com/danmar/cppcheck/pull/4785.

I might spin out the class into a separate repo (as public domain) as this seems like something useful in general.

This fails to compile with GCC before 15: ``` simplecpp.cpp:1742:37: error: operands to ‘?:’ have different types ‘const simplecpp::constness_ptr’ and ‘std::nullptr_t’ 1742 | valueToken = argtok ? argtok->next : nullptr;...