We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61252d8 commit ca83f56Copy full SHA for ca83f56
2 files changed
cfg/qt.cfg
@@ -2737,6 +2737,7 @@
2737
<arg nr="1" direction="in" default=""/>
2738
<arg nr="2" direction="in" default=""/>
2739
<arg nr="3" direction="in" default=""/>
2740
+ <const/>
2741
</function>
2742
<!-- int QDate::month() const -->
2743
<function name="QDate::month">
test/cfg/qt.cpp
@@ -847,3 +847,10 @@ namespace {
847
// cppcheck-suppress functionStatic
848
void TestUnusedFunction::doStuff() {} // Should not warn here with unusedFunction
849
}
850
+
851
+int qdateIsValid()
852
+{
853
+ QDate qd(1,1,2025);
854
+ Q_ASSERT(qd.isValid()); // Should not warn here with assertWithSideEffect
855
+ return qd.month();
856
+}
0 commit comments