Fixed #8158 (Custom platform configuration seems to be not used)
This commit is contained in:
parent
c0890b5255
commit
7a9d4b820f
|
@ -220,5 +220,7 @@ bool cppcheck::Platform::platformFile(const std::string &filename)
|
||||||
long_bit = char_bit * sizeof_long;
|
long_bit = char_bit * sizeof_long;
|
||||||
long_long_bit = char_bit * sizeof_long_long;
|
long_long_bit = char_bit * sizeof_long_long;
|
||||||
|
|
||||||
|
platformType = PlatformFile;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,7 +87,8 @@ namespace cppcheck {
|
||||||
Win64,
|
Win64,
|
||||||
Unix32,
|
Unix32,
|
||||||
Unix64,
|
Unix64,
|
||||||
AVR8
|
AVR8,
|
||||||
|
PlatformFile
|
||||||
};
|
};
|
||||||
|
|
||||||
/** platform type */
|
/** platform type */
|
||||||
|
@ -127,6 +128,8 @@ namespace cppcheck {
|
||||||
return "unix64";
|
return "unix64";
|
||||||
case AVR8:
|
case AVR8:
|
||||||
return "avr8";
|
return "avr8";
|
||||||
|
case PlatformFile:
|
||||||
|
return "platformFile";
|
||||||
default:
|
default:
|
||||||
return "unknown";
|
return "unknown";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue