diff --git a/cli/cli.vcxproj b/cli/cli.vcxproj
new file mode 100644
index 000000000..b935ca103
--- /dev/null
+++ b/cli/cli.vcxproj
@@ -0,0 +1,247 @@
+
+
+
+
+ Debug
+ Win32
+
+
+ Debug
+ x64
+
+
+ Release
+ Win32
+
+
+ Release
+ x64
+
+
+
+ {35CBDF51-2456-3EC3-99ED-113C30858883}
+ cli
+
+
+
+ debug\
+ Application
+ temp\
+
+
+ debug\
+ Application
+ temp\
+
+
+ release\
+ Application
+ temp\
+
+
+ release\
+ Application
+ temp\
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ..\bin\debug\
+ ..\bin\debug\
+ temp\debug\
+ temp\debug\
+ cppcheck
+ cppcheck
+ true
+ true
+ ..\bin\
+ ..\bin\
+ temp\
+ temp\
+ cppcheck
+ cppcheck
+ true
+ true
+ true
+ true
+
+
+
+ ..\lib;..\externals;..\externals\tinyxml;%(AdditionalIncludeDirectories)
+ temp\
+ false
+ true
+ ProgramDatabase
+ temp\
+ Disabled
+ CPPCHECKLIB_IMPORT;UNICODE;WIN32;_CRT_SECURE_NO_WARNINGS;WIN32_LEAN_AND_MEAN;%(PreprocessorDefinitions)
+ false
+ .\
+ MultiThreadedDebugDLL
+ true
+ Level4
+ 4251
+
+
+ shlwapi.lib;%(AdditionalDependencies)
+ ../externals;%(AdditionalLibraryDirectories)
+ true
+ true
+ Console
+ true
+ $(TargetDir)cli.pdb
+
+
+
+
+
+ ..\lib;..\externals;..\externals\tinyxml;%(AdditionalIncludeDirectories)
+ false
+ true
+ ProgramDatabase
+ Disabled
+ CPPCHECKLIB_IMPORT;UNICODE;WIN32;_CRT_SECURE_NO_WARNINGS;WIN32_LEAN_AND_MEAN;%(PreprocessorDefinitions)
+ false
+ MultiThreadedDebugDLL
+ true
+ Level4
+ 4251
+ false
+
+
+ shlwapi.lib;%(AdditionalDependencies)
+ ../externals;%(AdditionalLibraryDirectories)
+ true
+ true
+ Console
+ true
+ $(TargetDir)cli.pdb
+
+
+
+
+
+ ..\lib;..\externals;..\externals\tinyxml;%(AdditionalIncludeDirectories)
+ false
+ false
+ MaxSpeed
+ CPPCHECKLIB_IMPORT;NDEBUG;UNICODE;WIN32;_CRT_SECURE_NO_WARNINGS;WIN32_LEAN_AND_MEAN;%(PreprocessorDefinitions)
+ false
+ MultiThreadedDLL
+ true
+ Level4
+ AnySuitable
+ true
+ Speed
+ true
+ false
+ 4251
+
+
+
+
+ shlwapi.lib;%(AdditionalDependencies)
+ ../externals;%(AdditionalLibraryDirectories)
+ false
+ true
+ Console
+ true
+ true
+ true
+ true
+ $(TargetDir)cli.pdb
+
+
+
+
+
+
+
+ ..\lib;..\externals;..\externals\tinyxml;%(AdditionalIncludeDirectories)
+ false
+ false
+ MaxSpeed
+ CPPCHECKLIB_IMPORT;NDEBUG;UNICODE;WIN32;_CRT_SECURE_NO_WARNINGS;WIN32_LEAN_AND_MEAN;%(PreprocessorDefinitions)
+ false
+ MultiThreadedDLL
+ true
+ Level4
+ AnySuitable
+ true
+ Speed
+ true
+ false
+ 4251
+
+
+ true
+
+
+ shlwapi.lib;%(AdditionalDependencies)
+ ../externals;%(AdditionalLibraryDirectories)
+ false
+ true
+ Console
+ true
+ true
+ true
+ true
+ $(TargetDir)cli.pdb
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {c183db5b-ad6c-423d-80ca-1f9549555a1a}
+ true
+ true
+ false
+ true
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/cli/cli.vcxproj.filters b/cli/cli.vcxproj.filters
new file mode 100644
index 000000000..8ffe04c43
--- /dev/null
+++ b/cli/cli.vcxproj.filters
@@ -0,0 +1,86 @@
+
+
+
+
+ {71ED8ED8-ACB9-4CE9-BBE1-E00B30144E11}
+ cpp;c;cxx;moc;h;def;odl;idl;res
+
+
+ {93995380-89BD-4b04-88EB-625FBE52EBFB}
+ h;hpp;hxx;hm;inl;inc;xsd
+
+
+ {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
+ cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx
+
+
+
+
+ Generated Files
+
+
+
+
+
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+
\ No newline at end of file
diff --git a/cli/cppcheck.vcxproj b/cli/cppcheck.vcxproj
deleted file mode 100644
index 92dfdfaa4..000000000
--- a/cli/cppcheck.vcxproj
+++ /dev/null
@@ -1,229 +0,0 @@
-
-
-
-
- Debug
- Win32
-
-
- Release
- Win32
-
-
-
- {331ECF0E-B735-3591-8117-F947568F31EE}
- cppcheck
- Qt4VSv1.0
-
-
-
- debug\
- false
- NotSet
- Application
- temp\
-
-
- release\
- false
- NotSet
- Application
- temp\
-
-
-
-
-
-
-
-
-
-
-
- debug\
- temp\
- true
- release\
- temp\
- true
- false
-
-
-
- ".";"..\lib";"..\externals\tinyxml";..\..\..\..\Qt\4.8.1\mkspecs\win32-msvc2010;%(AdditionalIncludeDirectories)
- -Zm200 -w34100 -w34189 %(AdditionalOptions)
- temp\
- false
- false
- ProgramDatabase
- Sync
- temp\
- _CONSOLE;UNICODE;WIN32;QT_LARGEFILE_SUPPORT;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
- false
- .\
- MultiThreadedDebugDLL
- true
- true
- false
- Level4
-
-
- shlwapi.lib;%(AdditionalDependencies)
- "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" %(AdditionalOptions)
- true
- true
- true
- $(OutDir)\cppcheck.exe
- true
- Console
- true
-
-
- Unsigned
- None
- 0
-
-
- _CONSOLE;UNICODE;WIN32;QT_LARGEFILE_SUPPORT;_CRT_SECURE_NO_WARNINGS;_DEBUG;%(PreprocessorDefinitions)
-
-
-
-
- ".";"..\lib";"..\externals\tinyxml";..\..\..\..\Qt\4.8.1\mkspecs\win32-msvc2010;%(AdditionalIncludeDirectories)
- -Zm200 -w34100 -w34189 %(AdditionalOptions)
- temp\
- false
- false
- Sync
- temp\
- MaxSpeed
- _CONSOLE;UNICODE;WIN32;QT_LARGEFILE_SUPPORT;NDEBUG;_CRT_SECURE_NO_WARNINGS;NDEBUG;%(PreprocessorDefinitions)
- false
- .\
- MultiThreadedDLL
- true
- true
- false
- Level4
-
-
- shlwapi.lib;%(AdditionalDependencies)
- "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" %(AdditionalOptions)
- true
- false
- true
- false
- $(OutDir)\cppcheck.exe
- true
- Console
- true
-
-
- Unsigned
- None
- 0
-
-
- _CONSOLE;UNICODE;WIN32;QT_LARGEFILE_SUPPORT;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/cli/cppcheck.vcxproj.filters b/cli/cppcheck.vcxproj.filters
deleted file mode 100644
index cc6b67a5a..000000000
--- a/cli/cppcheck.vcxproj.filters
+++ /dev/null
@@ -1,302 +0,0 @@
-
-
-
-
- {71ED8ED8-ACB9-4CE9-BBE1-E00B30144E11}
- cpp;c;cxx;moc;h;def;odl;idl;res;
-
-
- {71ED8ED8-ACB9-4CE9-BBE1-E00B30144E11}
- cpp;c;cxx;moc;h;def;odl;idl;res;
-
-
- {93995380-89BD-4b04-88EB-625FBE52EBFB}
- h;hpp;hxx;hm;inl;inc;xsd
-
-
- {93995380-89BD-4b04-88EB-625FBE52EBFB}
- h;hpp;hxx;hm;inl;inc;xsd
-
-
- {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
- cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx
-
-
- {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
- cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx
-
-
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
-
-
- Generated Files
-
-
-
-
-
-
\ No newline at end of file
diff --git a/cppcheck_vs2010.sln b/cppcheck_vs2010.sln
index 0cd4fd1a5..080283497 100644
--- a/cppcheck_vs2010.sln
+++ b/cppcheck_vs2010.sln
@@ -1,29 +1,77 @@
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual C++ Express 2010
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cppcheck", "cli\cppcheck.vcxproj", "{00EC0553-4107-361D-9BF6-E01D402EDE8A}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cli", "cli\cli.vcxproj", "{35CBDF51-2456-3EC3-99ED-113C30858883}"
+ ProjectSection(ProjectDependencies) = postProject
+ {C183DB5B-AD6C-423D-80CA-1F9549555A1A} = {C183DB5B-AD6C-423D-80CA-1F9549555A1A}
+ EndProjectSection
EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testrunner", "test\testrunner.vcxproj", "{BFEBDA59-5448-3CF9-A3ED-7AAB0402CDE8}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testrunner", "test\testrunner.vcxproj", "{4F7DCE5E-6CDE-38C4-9EA7-27AF3B25CEB4}"
+ ProjectSection(ProjectDependencies) = postProject
+ {C183DB5B-AD6C-423D-80CA-1F9549555A1A} = {C183DB5B-AD6C-423D-80CA-1F9549555A1A}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cppcheck", "lib\cppcheck.vcxproj", "{C183DB5B-AD6C-423D-80CA-1F9549555A1A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Debug|x64 = Debug|x64
+ Debug-PCRE|Win32 = Debug-PCRE|Win32
+ Debug-PCRE|x64 = Debug-PCRE|x64
Release|Win32 = Release|Win32
Release|x64 = Release|x64
+ Release-PCRE|Win32 = Release-PCRE|Win32
+ Release-PCRE|x64 = Release-PCRE|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {00EC0553-4107-361D-9BF6-E01D402EDE8A}.Debug|Win32.ActiveCfg = Debug|Win32
- {00EC0553-4107-361D-9BF6-E01D402EDE8A}.Debug|Win32.Build.0 = Debug|Win32
- {00EC0553-4107-361D-9BF6-E01D402EDE8A}.Debug|x64.ActiveCfg = Debug|Win32
- {00EC0553-4107-361D-9BF6-E01D402EDE8A}.Release|Win32.ActiveCfg = Release|Win32
- {00EC0553-4107-361D-9BF6-E01D402EDE8A}.Release|Win32.Build.0 = Release|Win32
- {00EC0553-4107-361D-9BF6-E01D402EDE8A}.Release|x64.ActiveCfg = Release|Win32
- {BFEBDA59-5448-3CF9-A3ED-7AAB0402CDE8}.Debug|Win32.ActiveCfg = Debug|Win32
- {BFEBDA59-5448-3CF9-A3ED-7AAB0402CDE8}.Debug|Win32.Build.0 = Debug|Win32
- {BFEBDA59-5448-3CF9-A3ED-7AAB0402CDE8}.Debug|x64.ActiveCfg = Debug|Win32
- {BFEBDA59-5448-3CF9-A3ED-7AAB0402CDE8}.Release|Win32.ActiveCfg = Release|Win32
- {BFEBDA59-5448-3CF9-A3ED-7AAB0402CDE8}.Release|Win32.Build.0 = Release|Win32
- {BFEBDA59-5448-3CF9-A3ED-7AAB0402CDE8}.Release|x64.ActiveCfg = Release|Win32
+ {35CBDF51-2456-3EC3-99ED-113C30858883}.Debug|Win32.ActiveCfg = Debug|Win32
+ {35CBDF51-2456-3EC3-99ED-113C30858883}.Debug|Win32.Build.0 = Debug|Win32
+ {35CBDF51-2456-3EC3-99ED-113C30858883}.Debug|x64.ActiveCfg = Debug|x64
+ {35CBDF51-2456-3EC3-99ED-113C30858883}.Debug|x64.Build.0 = Debug|x64
+ {35CBDF51-2456-3EC3-99ED-113C30858883}.Debug-PCRE|Win32.ActiveCfg = Debug|Win32
+ {35CBDF51-2456-3EC3-99ED-113C30858883}.Debug-PCRE|Win32.Build.0 = Debug|Win32
+ {35CBDF51-2456-3EC3-99ED-113C30858883}.Debug-PCRE|x64.ActiveCfg = Debug|x64
+ {35CBDF51-2456-3EC3-99ED-113C30858883}.Debug-PCRE|x64.Build.0 = Debug|x64
+ {35CBDF51-2456-3EC3-99ED-113C30858883}.Release|Win32.ActiveCfg = Release|Win32
+ {35CBDF51-2456-3EC3-99ED-113C30858883}.Release|Win32.Build.0 = Release|Win32
+ {35CBDF51-2456-3EC3-99ED-113C30858883}.Release|x64.ActiveCfg = Release|x64
+ {35CBDF51-2456-3EC3-99ED-113C30858883}.Release|x64.Build.0 = Release|x64
+ {35CBDF51-2456-3EC3-99ED-113C30858883}.Release-PCRE|Win32.ActiveCfg = Release|Win32
+ {35CBDF51-2456-3EC3-99ED-113C30858883}.Release-PCRE|Win32.Build.0 = Release|Win32
+ {35CBDF51-2456-3EC3-99ED-113C30858883}.Release-PCRE|x64.ActiveCfg = Release|x64
+ {35CBDF51-2456-3EC3-99ED-113C30858883}.Release-PCRE|x64.Build.0 = Release|x64
+ {4F7DCE5E-6CDE-38C4-9EA7-27AF3B25CEB4}.Debug|Win32.ActiveCfg = Debug|Win32
+ {4F7DCE5E-6CDE-38C4-9EA7-27AF3B25CEB4}.Debug|Win32.Build.0 = Debug|Win32
+ {4F7DCE5E-6CDE-38C4-9EA7-27AF3B25CEB4}.Debug|x64.ActiveCfg = Debug|x64
+ {4F7DCE5E-6CDE-38C4-9EA7-27AF3B25CEB4}.Debug|x64.Build.0 = Debug|x64
+ {4F7DCE5E-6CDE-38C4-9EA7-27AF3B25CEB4}.Debug-PCRE|Win32.ActiveCfg = Debug|Win32
+ {4F7DCE5E-6CDE-38C4-9EA7-27AF3B25CEB4}.Debug-PCRE|Win32.Build.0 = Debug|Win32
+ {4F7DCE5E-6CDE-38C4-9EA7-27AF3B25CEB4}.Debug-PCRE|x64.ActiveCfg = Debug|x64
+ {4F7DCE5E-6CDE-38C4-9EA7-27AF3B25CEB4}.Debug-PCRE|x64.Build.0 = Debug|x64
+ {4F7DCE5E-6CDE-38C4-9EA7-27AF3B25CEB4}.Release|Win32.ActiveCfg = Release|Win32
+ {4F7DCE5E-6CDE-38C4-9EA7-27AF3B25CEB4}.Release|Win32.Build.0 = Release|Win32
+ {4F7DCE5E-6CDE-38C4-9EA7-27AF3B25CEB4}.Release|x64.ActiveCfg = Release|x64
+ {4F7DCE5E-6CDE-38C4-9EA7-27AF3B25CEB4}.Release|x64.Build.0 = Release|x64
+ {4F7DCE5E-6CDE-38C4-9EA7-27AF3B25CEB4}.Release-PCRE|Win32.ActiveCfg = Release|Win32
+ {4F7DCE5E-6CDE-38C4-9EA7-27AF3B25CEB4}.Release-PCRE|Win32.Build.0 = Release|Win32
+ {4F7DCE5E-6CDE-38C4-9EA7-27AF3B25CEB4}.Release-PCRE|x64.ActiveCfg = Release|x64
+ {4F7DCE5E-6CDE-38C4-9EA7-27AF3B25CEB4}.Release-PCRE|x64.Build.0 = Release|x64
+ {C183DB5B-AD6C-423D-80CA-1F9549555A1A}.Debug|Win32.ActiveCfg = Debug|Win32
+ {C183DB5B-AD6C-423D-80CA-1F9549555A1A}.Debug|Win32.Build.0 = Debug|Win32
+ {C183DB5B-AD6C-423D-80CA-1F9549555A1A}.Debug|x64.ActiveCfg = Debug|x64
+ {C183DB5B-AD6C-423D-80CA-1F9549555A1A}.Debug|x64.Build.0 = Debug|x64
+ {C183DB5B-AD6C-423D-80CA-1F9549555A1A}.Debug-PCRE|Win32.ActiveCfg = Debug-PCRE|Win32
+ {C183DB5B-AD6C-423D-80CA-1F9549555A1A}.Debug-PCRE|Win32.Build.0 = Debug-PCRE|Win32
+ {C183DB5B-AD6C-423D-80CA-1F9549555A1A}.Debug-PCRE|x64.ActiveCfg = Debug-PCRE|x64
+ {C183DB5B-AD6C-423D-80CA-1F9549555A1A}.Debug-PCRE|x64.Build.0 = Debug-PCRE|x64
+ {C183DB5B-AD6C-423D-80CA-1F9549555A1A}.Release|Win32.ActiveCfg = Release|Win32
+ {C183DB5B-AD6C-423D-80CA-1F9549555A1A}.Release|Win32.Build.0 = Release|Win32
+ {C183DB5B-AD6C-423D-80CA-1F9549555A1A}.Release|x64.ActiveCfg = Release|x64
+ {C183DB5B-AD6C-423D-80CA-1F9549555A1A}.Release|x64.Build.0 = Release|x64
+ {C183DB5B-AD6C-423D-80CA-1F9549555A1A}.Release-PCRE|Win32.ActiveCfg = Release-PCRE|Win32
+ {C183DB5B-AD6C-423D-80CA-1F9549555A1A}.Release-PCRE|Win32.Build.0 = Release-PCRE|Win32
+ {C183DB5B-AD6C-423D-80CA-1F9549555A1A}.Release-PCRE|x64.ActiveCfg = Release-PCRE|x64
+ {C183DB5B-AD6C-423D-80CA-1F9549555A1A}.Release-PCRE|x64.Build.0 = Release-PCRE|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/lib/check.h b/lib/check.h
index 3e03c27f3..f1d8013fd 100644
--- a/lib/check.h
+++ b/lib/check.h
@@ -19,6 +19,7 @@
#ifndef checkH
#define checkH
+#include "config.h"
#include "token.h"
#include "tokenize.h"
#include "settings.h"
@@ -35,7 +36,7 @@
* @brief Interface class that cppcheck uses to communicate with the checks.
* All checking classes must inherit from this class
*/
-class Check {
+class CPPCHECKLIB Check {
public:
/** This constructor is used when registering the CheckClass */
explicit Check(const std::string &aname);
diff --git a/lib/check64bit.h b/lib/check64bit.h
index 8ff3617c1..a60f09a3b 100644
--- a/lib/check64bit.h
+++ b/lib/check64bit.h
@@ -22,6 +22,7 @@
#define check64bitH
//---------------------------------------------------------------------------
+#include "config.h"
#include "check.h"
@@ -32,7 +33,7 @@
* @brief Check for 64-bit portability issues
*/
-class Check64BitPortability : public Check {
+class CPPCHECKLIB Check64BitPortability : public Check {
public:
/** This constructor is used when registering the Check64BitPortability */
Check64BitPortability() : Check(myName()) {
diff --git a/lib/checkassignif.h b/lib/checkassignif.h
index d4fdce5aa..508f1e743 100644
--- a/lib/checkassignif.h
+++ b/lib/checkassignif.h
@@ -22,6 +22,7 @@
#define checkassignifH
//---------------------------------------------------------------------------
+#include "config.h"
#include "check.h"
#include "mathlib.h"
@@ -32,7 +33,7 @@
* @brief Check for assignment / condition mismatches
*/
-class CheckAssignIf : public Check {
+class CPPCHECKLIB CheckAssignIf : public Check {
public:
/** This constructor is used when registering the CheckAssignIf */
CheckAssignIf() : Check(myName()) {
diff --git a/lib/checkautovariables.h b/lib/checkautovariables.h
index ad39ca789..ea3d499bb 100644
--- a/lib/checkautovariables.h
+++ b/lib/checkautovariables.h
@@ -22,6 +22,7 @@
#define CheckAutoVariablesH
//---------------------------------------------------------------------------
+#include "config.h"
#include "check.h"
#include "token.h"
@@ -29,7 +30,7 @@
/// @{
-class CheckAutoVariables : public Check {
+class CPPCHECKLIB CheckAutoVariables : public Check {
public:
/** This constructor is used when registering the CheckClass */
CheckAutoVariables() : Check(myName())
diff --git a/lib/checkboost.h b/lib/checkboost.h
index e7995f253..8908509a5 100644
--- a/lib/checkboost.h
+++ b/lib/checkboost.h
@@ -22,6 +22,7 @@
#define CHECKBOOST_H
//---------------------------------------------------------------------------
+#include "config.h"
#include "check.h"
class Token;
@@ -31,7 +32,7 @@ class Token;
/** @brief %Check Boost usage */
-class CheckBoost : public Check {
+class CPPCHECKLIB CheckBoost : public Check {
public:
/** This constructor is used when registering the CheckClass */
CheckBoost() : Check(myName())
diff --git a/lib/checkbufferoverrun.h b/lib/checkbufferoverrun.h
index f58e565e3..55861678e 100644
--- a/lib/checkbufferoverrun.h
+++ b/lib/checkbufferoverrun.h
@@ -22,6 +22,7 @@
#define CheckBufferOverrunH
//---------------------------------------------------------------------------
+#include "config.h"
#include "check.h"
#include "settings.h"
#include "mathlib.h"
@@ -46,7 +47,7 @@ class Variable;
* I generally use 'buffer overrun' if you for example call a strcpy or
* other function and pass a buffer and reads or writes too much data.
*/
-class CheckBufferOverrun : public Check {
+class CPPCHECKLIB CheckBufferOverrun : public Check {
public:
/** This constructor is used when registering the CheckClass */
@@ -109,7 +110,7 @@ public:
void negativeIndex();
/** Information about N-dimensional array */
- class ArrayInfo {
+ class CPPCHECKLIB ArrayInfo {
private:
/** number of elements of array */
std::vector _num;
diff --git a/lib/checkclass.h b/lib/checkclass.h
index ecff4c957..796fba57d 100644
--- a/lib/checkclass.h
+++ b/lib/checkclass.h
@@ -21,6 +21,7 @@
#define CheckClassH
//---------------------------------------------------------------------------
+#include "config.h"
#include "check.h"
class Token;
@@ -32,7 +33,7 @@ class Function;
/** @brief %Check classes. Uninitialized member variables, non-conforming operators, missing virtual destructor, etc */
-class CheckClass : public Check {
+class CPPCHECKLIB CheckClass : public Check {
public:
/** @brief This constructor is used when registering the CheckClass */
CheckClass() : Check(myName()), symbolDatabase(NULL)
diff --git a/lib/checkexceptionsafety.h b/lib/checkexceptionsafety.h
index fc8661f63..48a0145fc 100644
--- a/lib/checkexceptionsafety.h
+++ b/lib/checkexceptionsafety.h
@@ -21,6 +21,7 @@
#define checkexceptionsafetyH
//---------------------------------------------------------------------------
+#include "config.h"
#include "check.h"
#include "settings.h"
@@ -39,7 +40,7 @@ class Token;
* that certain variable values are corrupt.
*/
-class CheckExceptionSafety : public Check {
+class CPPCHECKLIB CheckExceptionSafety : public Check {
public:
/** This constructor is used when registering the CheckClass */
CheckExceptionSafety() : Check(myName())
diff --git a/lib/checkinternal.h b/lib/checkinternal.h
index 037f6dabb..ac02ab9b7 100644
--- a/lib/checkinternal.h
+++ b/lib/checkinternal.h
@@ -23,6 +23,7 @@
//---------------------------------------------------------------------------
#include "check.h"
+#include "config.h"
class Token;
@@ -31,7 +32,7 @@ class Token;
/** @brief %Check Internal cppcheck API usage */
-class CheckInternal : public Check {
+class CPPCHECKLIB CheckInternal : public Check {
public:
/** This constructor is used when registering the CheckClass */
CheckInternal() : Check(myName())
diff --git a/lib/checkio.h b/lib/checkio.h
index 7700fd9b8..002874c97 100644
--- a/lib/checkio.h
+++ b/lib/checkio.h
@@ -22,13 +22,14 @@
//---------------------------------------------------------------------------
#include "check.h"
+#include "config.h"
/// @addtogroup Checks
/// @{
/** @brief %Check input output operations. */
-class CheckIO : public Check {
+class CPPCHECKLIB CheckIO : public Check {
public:
/** @brief This constructor is used when registering CheckIO */
CheckIO() : Check(myName())
diff --git a/lib/checkleakautovar.h b/lib/checkleakautovar.h
index 949b11f65..303e658aa 100644
--- a/lib/checkleakautovar.h
+++ b/lib/checkleakautovar.h
@@ -22,10 +22,11 @@
#define checkleakautovarH
//---------------------------------------------------------------------------
+#include "config.h"
#include "check.h"
-class VarInfo {
+class CPPCHECKLIB VarInfo {
public:
std::map alloctype;
std::map possibleUsage;
@@ -63,7 +64,7 @@ public:
* @brief Check for leaks
*/
-class CheckLeakAutoVar : public Check {
+class CPPCHECKLIB CheckLeakAutoVar : public Check {
public:
/** This constructor is used when registering the CheckLeakAutoVar */
CheckLeakAutoVar() : Check(myName()) {
diff --git a/lib/checkmemoryleak.h b/lib/checkmemoryleak.h
index cc55d86b6..cb223decc 100644
--- a/lib/checkmemoryleak.h
+++ b/lib/checkmemoryleak.h
@@ -34,6 +34,7 @@
* - CheckMemoryLeakStructMember checks allocation/deallocation of structs and struct members
*/
+#include "config.h"
#include "check.h"
#include
@@ -48,7 +49,7 @@ class Variable;
/// @{
/** @brief Base class for memory leaks checking */
-class CheckMemoryLeak {
+class CPPCHECKLIB CheckMemoryLeak {
private:
/** For access to the tokens */
const Tokenizer * const tokenizer;
@@ -181,7 +182,7 @@ public:
* -# finally, check if the simplified token list contain any leaks.
*/
-class CheckMemoryLeakInFunction : private Check, public CheckMemoryLeak {
+class CPPCHECKLIB CheckMemoryLeakInFunction : private Check, public CheckMemoryLeak {
public:
/** @brief This constructor is used when registering this class */
CheckMemoryLeakInFunction() : Check(myName()), CheckMemoryLeak(0, 0, Standards()), symbolDatabase(NULL)
@@ -351,7 +352,7 @@ private:
* @brief %Check class variables, variables that are allocated in the constructor should be deallocated in the destructor
*/
-class CheckMemoryLeakInClass : private Check, private CheckMemoryLeak {
+class CPPCHECKLIB CheckMemoryLeakInClass : private Check, private CheckMemoryLeak {
public:
CheckMemoryLeakInClass() : Check(myName()), CheckMemoryLeak(0, 0, Standards())
{ }
@@ -394,7 +395,7 @@ private:
/** @brief detect simple memory leaks for struct members */
-class CheckMemoryLeakStructMember : private Check, private CheckMemoryLeak {
+class CPPCHECKLIB CheckMemoryLeakStructMember : private Check, private CheckMemoryLeak {
public:
CheckMemoryLeakStructMember() : Check(myName()), CheckMemoryLeak(0, 0, Standards())
{ }
@@ -433,7 +434,7 @@ private:
/** @brief detect simple memory leaks (address not taken) */
-class CheckMemoryLeakNoVar : private Check, private CheckMemoryLeak {
+class CPPCHECKLIB CheckMemoryLeakNoVar : private Check, private CheckMemoryLeak {
public:
CheckMemoryLeakNoVar() : Check(myName()), CheckMemoryLeak(0, 0, Standards())
{ }
diff --git a/lib/checknonreentrantfunctions.h b/lib/checknonreentrantfunctions.h
index 0ae0714e5..60326353b 100644
--- a/lib/checknonreentrantfunctions.h
+++ b/lib/checknonreentrantfunctions.h
@@ -22,6 +22,7 @@
#define CheckNonReentrantFunctionsH
//---------------------------------------------------------------------------
+#include "config.h"
#include "check.h"
#include
#include