simplecpp
simplecpp copied to clipboard
refs #583 - report `CACHE_ERROR` when `simplecpp::FileDataCache::getFileId()` fails
> 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 be to report this with --verbose or --check-config only.
It might make sense to cache it from CACHE_ERROR to some more generic as CACHE_MSG so we could pass on some information about the cache (like statistics). Introducing an additional list within the cache object would add more complexity to the integration.