From f0da9098b9381306d7cfa3069395780043dafb84 Mon Sep 17 00:00:00 2001 From: amai2012 Date: Tue, 22 Dec 2020 10:24:25 +0100 Subject: [PATCH] Set language compatibility to C++14 in Visual Studio (#2967) There is no C++11 flag --- cli/cli.vcxproj | 8 ++++---- lib/cppcheck.vcxproj | 10 +++++----- test/testrunner.vcxproj | 10 +++++----- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/cli/cli.vcxproj b/cli/cli.vcxproj index acf2c7635..5fb4003e4 100644 --- a/cli/cli.vcxproj +++ b/cli/cli.vcxproj @@ -166,7 +166,7 @@ 4018;4127;4244;4251;4267;4389;4482;4512;4701;4706;4800 true true - stdcpplatest + stdcpp14 /Zc:throwingNew /Zc:__cplusplus %(AdditionalOptions) @@ -220,7 +220,7 @@ 4018;4127;4244;4251;4267;4389;4482;4512;4701;4706;4800 true true - stdcpplatest + stdcpp14 /Zc:throwingNew /Zc:__cplusplus %(AdditionalOptions) @@ -277,7 +277,7 @@ true /Zc:throwingNew /Zc:__cplusplus %(AdditionalOptions) true - stdcpplatest + stdcpp14 shlwapi.lib;%(AdditionalDependencies) @@ -348,7 +348,7 @@ true /Zc:throwingNew /Zc:__cplusplus %(AdditionalOptions) true - stdcpplatest + stdcpp14 shlwapi.lib;%(AdditionalDependencies) diff --git a/lib/cppcheck.vcxproj b/lib/cppcheck.vcxproj index 10437c25b..e896329ce 100644 --- a/lib/cppcheck.vcxproj +++ b/lib/cppcheck.vcxproj @@ -302,7 +302,7 @@ precompiled.h precompiled.h true - stdcpplatest + stdcpp14 /Zc:throwingNew /Zc:__cplusplus %(AdditionalOptions) @@ -364,7 +364,7 @@ xcopy "$(SolutionDir)platforms" "$(OutDir)platforms" /E /I /D /Y precompiled.h precompiled.h true - stdcpplatest + stdcpp14 /Zc:throwingNew /Zc:__cplusplus %(AdditionalOptions) @@ -432,7 +432,7 @@ xcopy "$(SolutionDir)platforms" "$(OutDir)platforms" /E /I /D /Y precompiled.h /Zc:throwingNew /Zc:__cplusplus %(AdditionalOptions) true - stdcpplatest + stdcpp14 ../externals;%(AdditionalLibraryDirectories) @@ -513,7 +513,7 @@ xcopy "$(SolutionDir)platforms" "$(OutDir)platforms" /E /I /D /Y precompiled.h /Zc:throwingNew /Zc:__cplusplus %(AdditionalOptions) true - stdcpplatest + stdcpp14 ../externals;%(AdditionalLibraryDirectories) @@ -571,4 +571,4 @@ xcopy "$(SolutionDir)platforms" "$(OutDir)platforms" /E /I /D /Y - + \ No newline at end of file diff --git a/test/testrunner.vcxproj b/test/testrunner.vcxproj index 2c82f24f8..fb7be2815 100755 --- a/test/testrunner.vcxproj +++ b/test/testrunner.vcxproj @@ -189,7 +189,7 @@ precompiled.h precompiled.h true - stdcpplatest + stdcpp14 /Zc:throwingNew /Zc:__cplusplus %(AdditionalOptions) EnableFastChecks @@ -219,7 +219,7 @@ precompiled.h precompiled.h true - stdcpplatest + stdcpp14 /Zc:throwingNew /Zc:__cplusplus %(AdditionalOptions) @@ -255,7 +255,7 @@ precompiled.h /Zc:throwingNew /Zc:__cplusplus %(AdditionalOptions) true - stdcpplatest + stdcpp14 shlwapi.lib;%(AdditionalDependencies) @@ -294,7 +294,7 @@ precompiled.h /Zc:throwingNew /Zc:__cplusplus %(AdditionalOptions) true - stdcpplatest + stdcpp14 shlwapi.lib;%(AdditionalDependencies) @@ -313,4 +313,4 @@ - + \ No newline at end of file