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); static void reportError(const ErrorLogger::ErrorMessage &errmsg);
/** Base class used for whole-program analysis */ /** Base class used for whole-program analysis */
class FileInfo { class CPPCHECKLIB FileInfo {
public: public:
FileInfo() {} FileInfo() {}
virtual ~FileInfo() {} virtual ~FileInfo() {}

View File

@ -31,7 +31,7 @@
/** @brief Whole program analysis (ctu=Cross Translation Unit) */ /** @brief Whole program analysis (ctu=Cross Translation Unit) */
namespace CTU { namespace CTU {
class FileInfo : public Check::FileInfo { class CPPCHECKLIB FileInfo : public Check::FileInfo {
public: public:
std::string toString() const override; std::string toString() const override;
@ -100,16 +100,16 @@ namespace CTU {
const FunctionCall * * const functionCallPtr) const; 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 */ /** @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\filelister.cpp" />
<ClCompile Include="..\cli\threadexecutor.cpp" /> <ClCompile Include="..\cli\threadexecutor.cpp" />
<ClCompile Include="..\lib\astutils.cpp" /> <ClCompile Include="..\lib\astutils.cpp" />
<ClCompile Include="..\lib\ctu.cpp" />
<ClCompile Include="options.cpp" /> <ClCompile Include="options.cpp" />
<ClCompile Include="test64bit.cpp" /> <ClCompile Include="test64bit.cpp" />
<ClCompile Include="testassert.cpp" /> <ClCompile Include="testassert.cpp" />
@ -100,7 +99,6 @@
<ClInclude Include="..\cli\filelister.h" /> <ClInclude Include="..\cli\filelister.h" />
<ClInclude Include="..\cli\threadexecutor.h" /> <ClInclude Include="..\cli\threadexecutor.h" />
<ClInclude Include="..\lib\config.h" /> <ClInclude Include="..\lib\config.h" />
<ClInclude Include="..\lib\ctu.h" />
<ClInclude Include="options.h" /> <ClInclude Include="options.h" />
<ClInclude Include="redirect.h" /> <ClInclude Include="redirect.h" />
<ClInclude Include="testsuite.h" /> <ClInclude Include="testsuite.h" />

View File

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