Skip to content

Commit 3d83b9e

Browse files
committed
Added flag --platform=native to avoid performing platform specific code
1 parent d6751a7 commit 3d83b9e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

cli/cmdlineparser.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,8 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[])
719719
_settings->platform(Settings::Unix32);
720720
else if (platform == "unix64")
721721
_settings->platform(Settings::Unix64);
722+
else if (platform == "native")
723+
_settings->platform(Settings::Unspecified);
722724
else {
723725
std::string message("cppcheck: error: unrecognized platform: \"");
724726
message += platform;
@@ -941,6 +943,9 @@ void CmdLineParser::PrintHelp()
941943
" 32 bit Windows UNICODE character encoding\n"
942944
" * win64\n"
943945
" 64 bit Windows\n"
946+
" * native\n"
947+
" Unspecified platform. Type sizes of host system\n"
948+
" is assumed, but no further assumptions.\n"
944949
" -q, --quiet Only print error messages.\n"
945950
" -rp, --relative-paths\n"
946951
" -rp=<paths>, --relative-paths=<paths>\n"

0 commit comments

Comments
 (0)