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_NOOP3(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="QVERIFY(condition)" value="(void)(condition)"/>
<define name="QVERIFY2(condition, message)" value="(void)(condition),(void)(message)"/>

View File

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

View File

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