Skip to content

Commit 924c0f4

Browse files
committed
platform.h: made loadFromXmlDocument() private
1 parent 535341c commit 924c0f4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/platform.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ namespace tinyxml2 {
4444
* @brief Platform settings
4545
*/
4646
class CPPCHECKLIB Platform {
47+
friend class TestPlatform;
4748
private:
4849
static long long min_value(std::uint8_t bit) {
4950
assert(bit > 0);
@@ -68,6 +69,9 @@ class CPPCHECKLIB Platform {
6869

6970
/** provides list of defines specified by the limit.h/climits includes */
7071
std::string getLimitsDefines(bool c99) const;
72+
73+
/** load platform from xml document, primarily for testing */
74+
bool loadFromXmlDocument(const tinyxml2::XMLDocument *doc);
7175
public:
7276
Platform();
7377

@@ -144,8 +148,6 @@ class CPPCHECKLIB Platform {
144148
*/
145149
bool loadFromFile(const std::vector<std::string>& paths, const std::string &filename, bool debug = false);
146150

147-
/** load platform from xml document, primarily for testing */
148-
bool loadFromXmlDocument(const tinyxml2::XMLDocument *doc);
149151

150152
/**
151153
* @brief Returns true if platform type is Windows

0 commit comments

Comments
 (0)