File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ namespace tinyxml2 {
44
44
* @brief Platform settings
45
45
*/
46
46
class CPPCHECKLIB Platform {
47
+ friend class TestPlatform ;
47
48
private:
48
49
static long long min_value (std::uint8_t bit) {
49
50
assert (bit > 0 );
@@ -68,6 +69,9 @@ class CPPCHECKLIB Platform {
68
69
69
70
/* * provides list of defines specified by the limit.h/climits includes */
70
71
std::string getLimitsDefines (bool c99) const ;
72
+
73
+ /* * load platform from xml document, primarily for testing */
74
+ bool loadFromXmlDocument (const tinyxml2::XMLDocument *doc);
71
75
public:
72
76
Platform ();
73
77
@@ -144,8 +148,6 @@ class CPPCHECKLIB Platform {
144
148
*/
145
149
bool loadFromFile (const std::vector<std::string>& paths, const std::string &filename, bool debug = false );
146
150
147
- /* * load platform from xml document, primarily for testing */
148
- bool loadFromXmlDocument (const tinyxml2::XMLDocument *doc);
149
151
150
152
/* *
151
153
* @brief Returns true if platform type is Windows
You can’t perform that action at this time.
0 commit comments