Provide a patch with wxString::Endswith in it and I'll commit it.
New patch uploaded (and tested much more thoroughly).
In testing, I noticed that if the active build target is virtual, it may add include directories without replacing macros; this can fix it:
Index: src/plugins/contrib/CppCheck/CppCheck.cpp
===================================================================
--- src/plugins/contrib/CppCheck/CppCheck.cpp (revision 7965)
+++ src/plugins/contrib/CppCheck/CppCheck.cpp (working copy)
@@ -236,6 +236,8 @@
wxString IncludeDir(IncludeDirs[Dir]);
if (target)
MacrosMgr->ReplaceMacros(IncludeDir, target);
+ else
+ MacrosMgr->ReplaceMacros(IncludeDir);
IncludeList += _T("-I\"") + IncludeDir + _T("\" ");
}
if (target)