File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ permissions:
1010jobs :
1111 selfcheck :
1212
13- runs-on : ubuntu-24 .04
13+ runs-on : ubuntu-26 .04
1414
1515 defaults :
1616 run :
4949 --inline-suppr \
5050 --check-level=exhaustive \
5151 --error-exitcode=1 \
52- --suppress=checkersReport \
5352 --suppress=missingMemberCopy \
5453 --suppress=constParameterReference \
55- --template='{file}:{line}:{column}: {severity}:{inconclusive:inconclusive:} {message} [{id}]' \
5654 simplecpp.cpp
Original file line number Diff line number Diff line change @@ -424,7 +424,8 @@ class simplecpp::TokenList::Stream {
424424 return 0 ;
425425 }
426426
427- unsigned short bom{0 };
427+ // cppcheck-suppress uninitMemberVarPrivate - FP this class is a abstract base class and its members are initialized in init()
428+ unsigned short bom;
428429
429430 /* * characters that are read but not used yet. The next character is at the back. */
430431 std::string buffer;
@@ -435,12 +436,14 @@ class simplecpp::TokenList::Stream {
435436 /* * get() has returned EOF */
436437 bool inputEnd{false };
437438protected:
438- bool isUtf16{false };
439+ // cppcheck-suppress uninitMemberVarNoCtor - FP this class is a abstract base class and its members are initialized in init()
440+ bool isUtf16;
439441};
440442
441443namespace {
442444 class StdIStream final : public simplecpp::TokenList::Stream {
443445 public:
446+ // cppcheck-suppress uninitDerivedMemberVar - we call Stream::init() to initialize the private members
444447 explicit StdIStream (std::istream &istr)
445448 : istr(istr) {
446449 assert (istr.good ());
@@ -464,6 +467,7 @@ namespace {
464467
465468 class StdCharBufStream final : public simplecpp::TokenList::Stream {
466469 public:
470+ // cppcheck-suppress uninitDerivedMemberVar - we call Stream::init() to initialize the private members
467471 StdCharBufStream (const unsigned char * str, std::size_t size)
468472 : str(str)
469473 , size(size)
@@ -497,6 +501,7 @@ namespace {
497501 /* *
498502 * @throws simplecpp::Output thrown if file is not found
499503 */
504+ // cppcheck-suppress uninitDerivedMemberVar - we call Stream::init() to initialize the private members
500505 explicit FileStream (const std::string &filename, std::vector<std::string> &files)
501506 : file(fopen(filename.c_str(), "rb"))
502507 {
You can’t perform that action at this time.
0 commit comments