Oliver Stöneberg
Oliver Stöneberg
``` #line 1 "E:/a.h" void f ( ) ; #line 1 "E:/b.h" void f ( ) ; #line 4 "E:\a.cpp" int i ; ``` The given file was `E:\a.cpp`.
Adding a hook which provides data when `MISSING_HEADER` is encountered would allow Cppcheck a way to inject the macros the header defines without providing the whole code - see https://trac.cppcheck.net/ticket/13341....
`TokenList` depends on a mutable `std::vector` object which holds the files of files which have been tokenized. This seems dangerous as it ties to the lifetime of another object. In...
Encountered in #421. ``` /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/stl_pair.h:295:17: error: an exception may be thrown in function 'pair' which should not throw exceptions [bugprone-exception-escape,-warnings-as-errors] 295 | constexpr pair(pair&&) = default; ///< Move constructor |...
Calling `simplecpp::TokenList` with a char buffer will lead to a compilation failure because of ambiguous constructors: ``` /home/user/CLionProjects/cppcheck/externals/simplecpp/./simplecpp.h:254:9: note: candidate constructor 254 | TokenList(std::string_view data, std::vector &filenames, const std::string &filename=std::string(),...
As per https://github.com/danmar/simplecpp/pull/505#issuecomment-3458068047 this was for internal use in Cppcheck but is not longer needed.