Export interfaces from cppcheck-core.dll used from testrunner. In turn remove ctu sources from testrunner which are obsolete now.

This commit is contained in:
amai2012 2018-12-28 23:09:44 +01:00
parent 22504975b9
commit 03ed4afc70
4 changed files with 7 additions and 15 deletions

View File

@ -93,7 +93,7 @@ public:
static void reportError(const ErrorLogger::ErrorMessage &errmsg);
/** Base class used for whole-program analysis */
class FileInfo {
class CPPCHECKLIB FileInfo {
public:
FileInfo() {}
virtual ~FileInfo() {}

View File

@ -31,7 +31,7 @@
/** @brief Whole program analysis (ctu=Cross Translation Unit) */
namespace CTU {
class FileInfo : public Check::FileInfo {
class CPPCHECKLIB FileInfo : public Check::FileInfo {
public:
std::string toString() const override;
@ -100,16 +100,16 @@ namespace CTU {
const FunctionCall * * const functionCallPtr) const;
};
std::string toString(const std::list<FileInfo::UnsafeUsage> &unsafeUsage);
CPPCHECKLIB std::string toString(const std::list<FileInfo::UnsafeUsage> &unsafeUsage);
std::string getFunctionId(const Tokenizer *tokenizer, const Function *function);
CPPCHECKLIB std::string getFunctionId(const Tokenizer *tokenizer, const Function *function);
/** @brief Parse current TU and extract file info */
FileInfo *getFileInfo(const Tokenizer *tokenizer);
CPPCHECKLIB FileInfo *getFileInfo(const Tokenizer *tokenizer);
std::list<FileInfo::UnsafeUsage> getUnsafeUsage(const Tokenizer *tokenizer, const Settings *settings, const Check *check, bool (*isUnsafeUsage)(const Check *check, const Token *argtok));
CPPCHECKLIB std::list<FileInfo::UnsafeUsage> getUnsafeUsage(const Tokenizer *tokenizer, const Settings *settings, const Check *check, bool (*isUnsafeUsage)(const Check *check, const Token *argtok));
std::list<FileInfo::UnsafeUsage> loadUnsafeUsageListFromXml(const tinyxml2::XMLElement *xmlElement);
CPPCHECKLIB std::list<FileInfo::UnsafeUsage> loadUnsafeUsageListFromXml(const tinyxml2::XMLElement *xmlElement);
}
/// @}

View File

@ -29,7 +29,6 @@
<ClCompile Include="..\cli\filelister.cpp" />
<ClCompile Include="..\cli\threadexecutor.cpp" />
<ClCompile Include="..\lib\astutils.cpp" />
<ClCompile Include="..\lib\ctu.cpp" />
<ClCompile Include="options.cpp" />
<ClCompile Include="test64bit.cpp" />
<ClCompile Include="testassert.cpp" />
@ -100,7 +99,6 @@
<ClInclude Include="..\cli\filelister.h" />
<ClInclude Include="..\cli\threadexecutor.h" />
<ClInclude Include="..\lib\config.h" />
<ClInclude Include="..\lib\ctu.h" />
<ClInclude Include="options.h" />
<ClInclude Include="redirect.h" />
<ClInclude Include="testsuite.h" />

View File

@ -211,9 +211,6 @@
<ClCompile Include="..\lib\astutils.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\lib\ctu.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="options.h">
@ -240,8 +237,5 @@
<ClInclude Include="..\lib\config.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\lib\ctu.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
</Project>