kf5-sonnet-5.116.0-1.fc41

List of Defects

Error: COMPILER_WARNING: [#def1]
kf5-sonnet-5.116.0-build/sonnet-5.116.0/src/core/tokenizer.cpp: scope_hint: In member function ‘Sonnet::Token Sonnet::BreakTokenizerPrivate::next()’
kf5-sonnet-5.116.0-build/sonnet-5.116.0/src/core/tokenizer.cpp:130:33: warning[-Wdangling-reference]: possibly dangling reference to a temporary
#  130 |     const TextBreaks::Position &textBreak = this->breaks().at(itemPosition);
#      |                                 ^~~~~~~~~
kf5-sonnet-5.116.0-build/sonnet-5.116.0/src/core/tokenizer.cpp:130:62: note: the temporary was destroyed at the end of the full expression ‘Sonnet::BreakTokenizerPrivate::breaks() const().QList<Sonnet::TextBreaks::Position>::at(((Sonnet::BreakTokenizerPrivate*)this)->Sonnet::BreakTokenizerPrivate::itemPosition)’
#  130 |     const TextBreaks::Position &textBreak = this->breaks().at(itemPosition);
#      |                                             ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
#  128|       itemPosition++;
#  129|   
#  130|->     const TextBreaks::Position &textBreak = this->breaks().at(itemPosition);
#  131|       QStringView token = QStringView(buffer).mid(textBreak.start, textBreak.length);
#  132|       last = {token, textBreak.start};

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-116.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namekf5-sonnet-5.116.0-1.fc41
store-results-to/tmp/tmpbzxbm3_y/kf5-sonnet-5.116.0-1.fc41.tar.xz
time-created2024-07-03 13:55:58
time-finished2024-07-03 13:57:30
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpbzxbm3_y/kf5-sonnet-5.116.0-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpbzxbm3_y/kf5-sonnet-5.116.0-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9