File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7010,14 +7010,6 @@ HFONT CreateFont(
70107010 <define name="afx_msg" value=""/>
70117011 <define name="AFX_EXT_CLASS" value=""/>
70127012 <define name="DEBUG_NEW" value="new"/>
7013- <define name="DECLARE_MESSAGE_MAP()" value=""/>
7014- <define name="DECLARE_DYNAMIC(x)" value=""/>
7015- <define name="DECLARE_DYNAMIC_CLASS(x)" value=""/>
7016- <define name="DECLARE_DYNCREATE(x)" value=""/>
7017- <define name="DECLARE_SERIAL(x)" value=""/>
7018- <define name="IMPLEMENT_DYNAMIC(name,base)" value=""/>
7019- <define name="IMPLEMENT_DYNCREATE(name,base)" value=""/>
7020- <define name="IMPLEMENT_SERIAL(name,base,schema)" value=""/>
70217013 <define name="INVALID_HANDLE_VALUE" value="0"/>
70227014 <define name="INVALID_SOCKET" value="0"/>
70237015 <define name="WINAPI" value="__stdcall"/>
Original file line number Diff line number Diff line change @@ -148,6 +148,7 @@ if (BUILD_TESTS)
148148 add_cfg (libcurl.c )
149149 add_cfg (libsigc++.cpp )
150150 add_cfg (lua.c )
151+ add_cfg (mfc.cpp )
151152 add_cfg (opencv2.cpp )
152153 add_cfg (openmp.c )
153154 add_cfg (openssl.c )
Original file line number Diff line number Diff line change 1+
2+ // Test library configuration for mfc.cfg
3+
4+ #include < afxwin.h>
5+
6+
7+ class MyClass : public CObject {
8+ DECLARE_DYNAMIC (MyClass)
9+ DECLARE_DYNCREATE (MyClass)
10+ DECLARE_SERIAL (MyClass)
11+ public:
12+ MyClass () {}
13+ };
14+ IMPLEMENT_DYNAMIC (MyClass, CObject)
15+ IMPLEMENT_DYNCREATE(MyClass, CObject)
16+ IMPLEMENT_SERIAL(MyClass,CObject, 42 )
Original file line number Diff line number Diff line change @@ -110,6 +110,12 @@ function windows_fn {
110110 true
111111}
112112
113+ # mfc.cpp
114+ function mfc_fn {
115+ # TODO: Add syntax check
116+ true
117+ }
118+
113119# wxwidgets.cpp
114120function wxwidgets_fn {
115121 # TODO: get rid of the error enabling/disabling?
@@ -480,6 +486,10 @@ function check_file {
480486 lua_fn
481487 ${CPPCHECK} ${CPPCHECK_OPT} --library=$lib ${DIR} $f
482488 ;;
489+ mfc.cpp)
490+ mfc_fn
491+ ${CPPCHECK} ${CPPCHECK_OPT} --platform=win64 --library=$lib ${DIR} $f
492+ ;;
483493 opencv2.cpp)
484494 # TODO: "opencv.pc" is not commonly available in distros
485495 # opencv2_fn
Original file line number Diff line number Diff line change @@ -1144,17 +1144,6 @@ void GetShortPathName_validCode(const TCHAR* lpszPath)
11441144 delete[] buffer;
11451145}
11461146
1147- class MyClass : public CObject {
1148- DECLARE_DYNAMIC (MyClass)
1149- DECLARE_DYNCREATE (MyClass)
1150- DECLARE_SERIAL (MyClass)
1151- public:
1152- MyClass () {}
1153- };
1154- IMPLEMENT_DYNAMIC (MyClass, CObject)
1155- IMPLEMENT_DYNCREATE(MyClass, CObject)
1156- IMPLEMENT_SERIAL(MyClass,CObject, 42 )
1157-
11581147void invalidPrintfArgType_StructMember (double d) { // #9672
11591148 typedef struct { CString st; } my_struct_t ;
11601149
Original file line number Diff line number Diff line change @@ -1076,6 +1076,10 @@ class TestLibrary : public TestFixture {
10761076 const Settings s = settingsBuilder ().library (" std.cfg" ).library (" microsoft_sal.cfg" ).build ();
10771077 ASSERT_EQUALS (s.library .defines .empty (), false );
10781078 }
1079+ {
1080+ const Settings s = settingsBuilder ().library (" std.cfg" ).library (" windows.cfg" ).library (" mfc.cfg" ).build ();
1081+ ASSERT_EQUALS (s.library .defines .empty (), false );
1082+ }
10791083 }
10801084};
10811085
You can’t perform that action at this time.
0 commit comments