Skip to content

Commit

Permalink
Add support for QLatin1String
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Mar 18, 2024
1 parent f8f1a99 commit 658a5b2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
16 changes: 16 additions & 0 deletions cfg/qt.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5160,6 +5160,22 @@
<function name="crend" yields="end-iterator"/>
</access>
</container>
<container id="qtLatin1String" startPattern="QLatin1String" endPattern="" inherits="qtContainer" opLessAllowed="true" itEndPattern=":: const_iterator|const_reverse_iterator">
<type string="std-like"/>
<size>
<function name="isNull" yields="empty"/>
<function name="chop" action="change"/>
</size>
<access indexOperator="array-like">
<function name="at" yields="at_index"/>
<function name="front" yields="item"/>
<function name="back" yields="item"/>
<function name="rbegin" yields="start-iterator"/>
<function name="crbegin" yields="start-iterator"/>
<function name="rend" yields="end-iterator"/>
<function name="crend" yields="end-iterator"/>
</access>
</container>
<container id="qtByteArray" startPattern="QByteArray" endPattern="" inherits="qtContainer" opLessAllowed="true" itEndPattern=":: iterator|const_iterator|reverse_iterator|const_reverse_iterator">
<size>
<function name="isNull" yields="empty"/>
Expand Down
2 changes: 2 additions & 0 deletions test/cfg/qt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -724,4 +724,6 @@ void unusedVariable_qtContainers() // #10689
QMultiMap<int, int> qmm;
// cppcheck-suppress unusedVariable
QQueue<int> qq;
// cppcheck-suppress unusedVariable
QLatin1String ql1s;
}

0 comments on commit 658a5b2

Please sign in to comment.