Fix argument direction in windows.cfg, missing Qt macros (#5302)

This commit is contained in:
chrchr-github 2023-08-08 22:55:55 +02:00 committed by GitHub
parent c3d7c91e88
commit 5ea1bca99f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 9 deletions

View File

@ -5097,6 +5097,9 @@
<define name="QT_TRANSLATE_NOOP_UTF8(scope, x)" value="x"/> <define name="QT_TRANSLATE_NOOP_UTF8(scope, x)" value="x"/>
<define name="QT_TRANSLATE_NOOP3(scope, x, comment)" value="{x, comment}"/> <define name="QT_TRANSLATE_NOOP3(scope, x, comment)" value="{x, comment}"/>
<define name="QT_TRANSLATE_NOOP3_UTF8(scope, x, comment)" value="{x, comment}"/> <define name="QT_TRANSLATE_NOOP3_UTF8(scope, x, comment)" value="{x, comment}"/>
<define name="QT_WARNING_PUSH" value=""/>
<define name="QT_WARNING_POP" value=""/>
<define name="QT_STRINGIFY(x)" value="#x"/>
<define name="QCOMPARE(actual, expected)" value="(void)((actual)==(expected))"/> <define name="QCOMPARE(actual, expected)" value="(void)((actual)==(expected))"/>
<define name="QVERIFY(condition)" value="(void)(condition)"/> <define name="QVERIFY(condition)" value="(void)(condition)"/>
<define name="QVERIFY2(condition, message)" value="(void)(condition),(void)(message)"/> <define name="QVERIFY2(condition, message)" value="(void)(condition),(void)(message)"/>

View File

@ -2960,7 +2960,7 @@ HFONT CreateFont(
<arg nr="1" direction="out"> <arg nr="1" direction="out">
<not-null/> <not-null/>
</arg> </arg>
<arg nr="2" direction="in"> <arg nr="2">
<not-uninit/> <not-uninit/>
</arg> </arg>
<arg nr="3" direction="in"> <arg nr="3" direction="in">
@ -2985,7 +2985,7 @@ HFONT CreateFont(
<arg nr="1" direction="out"> <arg nr="1" direction="out">
<not-null/> <not-null/>
</arg> </arg>
<arg nr="2" direction="in"> <arg nr="2">
<not-uninit/> <not-uninit/>
</arg> </arg>
<arg nr="3" direction="in"> <arg nr="3" direction="in">
@ -3023,7 +3023,7 @@ HFONT CreateFont(
_In_ LPARAM lParam); --> _In_ LPARAM lParam); -->
<function name="SendMessage,SendMessageA,SendMessageW"> <function name="SendMessage,SendMessageA,SendMessageW">
<noreturn>false</noreturn> <noreturn>false</noreturn>
<arg nr="1" direction="in"> <arg nr="1">
<not-null/> <not-null/>
<not-uninit/> <not-uninit/>
</arg> </arg>
@ -3044,7 +3044,7 @@ HFONT CreateFont(
_In_ LPARAM lParam); --> _In_ LPARAM lParam); -->
<function name="PostMessage,PostMessageA,PostMessageW"> <function name="PostMessage,PostMessageA,PostMessageW">
<noreturn>false</noreturn> <noreturn>false</noreturn>
<arg nr="1" direction="in"> <arg nr="1">
<not-uninit/> <not-uninit/>
</arg> </arg>
<arg nr="2" direction="in"> <arg nr="2" direction="in">
@ -3306,7 +3306,7 @@ HFONT CreateFont(
<noreturn>false</noreturn> <noreturn>false</noreturn>
<returnValue type="LPVOID"/> <returnValue type="LPVOID"/>
<leak-ignore/> <leak-ignore/>
<arg nr="1" direction="in"> <arg nr="1">
<not-null/> <not-null/>
</arg> </arg>
</function> </function>
@ -3315,10 +3315,10 @@ HFONT CreateFont(
<noreturn>false</noreturn> <noreturn>false</noreturn>
<returnValue type="HGLOBAL"/> <returnValue type="HGLOBAL"/>
<leak-ignore/> <leak-ignore/>
<arg nr="1" direction="in"> <arg nr="1">
<not-uninit/> <not-uninit/>
</arg> </arg>
<arg nr="2" direction="in"> <arg nr="2">
<not-uninit/> <not-uninit/>
</arg> </arg>
</function> </function>
@ -3327,7 +3327,7 @@ HFONT CreateFont(
<noreturn>false</noreturn> <noreturn>false</noreturn>
<returnValue type="BOOL"/> <returnValue type="BOOL"/>
<leak-ignore/> <leak-ignore/>
<arg nr="1" direction="in"> <arg nr="1">
<not-null/> <not-null/>
<not-uninit/> <not-uninit/>
</arg> </arg>
@ -3339,7 +3339,7 @@ HFONT CreateFont(
<noreturn>false</noreturn> <noreturn>false</noreturn>
<returnValue type="BOOL"/> <returnValue type="BOOL"/>
<leak-ignore/> <leak-ignore/>
<arg nr="1" direction="in"> <arg nr="1">
<not-null/> <not-null/>
<not-uninit/> <not-uninit/>
</arg> </arg>

View File

@ -1113,4 +1113,8 @@ void invalidPrintfArgType_StructMember(double d) { // #9672
my_struct_t my_struct; my_struct_t my_struct;
// cppcheck-suppress invalidPrintfArgType_sint // cppcheck-suppress invalidPrintfArgType_sint
my_struct.st.Format("%d", d); my_struct.st.Format("%d", d);
}
BOOL MyEnableWindow(HWND hWnd, BOOL bEnable) {
return EnableWindow(hWnd, bEnable);
} }