Silence warnings from clang
Many enumerator values were not handled in msbuild_objectmodel.cpp. For each unhandled value, add a case statement that simply breaks. Change-Id: I018fc5e641200568c88ccc6acb3f5b6ee6b3fd6f Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com> Reviewed-by: Olivier Goffart <ogoffart@woboq.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
This commit is contained in:
parent
9de6257657
commit
7ae1e39455
@ -761,6 +761,8 @@ void VCXProjectWriter::write(XmlOutput &xml, VCProject &tool)
|
|||||||
static inline QString toString(asmListingOption option)
|
static inline QString toString(asmListingOption option)
|
||||||
{
|
{
|
||||||
switch (option) {
|
switch (option) {
|
||||||
|
case asmListingNone:
|
||||||
|
break;
|
||||||
case asmListingAsmMachine:
|
case asmListingAsmMachine:
|
||||||
return "AssemblyAndMachineCode";
|
return "AssemblyAndMachineCode";
|
||||||
case asmListingAsmMachineSrc:
|
case asmListingAsmMachineSrc:
|
||||||
@ -791,6 +793,8 @@ static inline QString toString(basicRuntimeCheckOption option)
|
|||||||
static inline QString toString(callingConventionOption option)
|
static inline QString toString(callingConventionOption option)
|
||||||
{
|
{
|
||||||
switch (option) {
|
switch (option) {
|
||||||
|
case callConventionDefault:
|
||||||
|
break;
|
||||||
case callConventionCDecl:
|
case callConventionCDecl:
|
||||||
return "Cdecl";
|
return "Cdecl";
|
||||||
case callConventionFastCall:
|
case callConventionFastCall:
|
||||||
@ -804,6 +808,8 @@ static inline QString toString(callingConventionOption option)
|
|||||||
static inline QString toString(CompileAsOptions option)
|
static inline QString toString(CompileAsOptions option)
|
||||||
{
|
{
|
||||||
switch (option) {
|
switch (option) {
|
||||||
|
case compileAsDefault:
|
||||||
|
break;
|
||||||
case compileAsC:
|
case compileAsC:
|
||||||
return "CompileAsC";
|
return "CompileAsC";
|
||||||
case compileAsCPlusPlus:
|
case compileAsCPlusPlus:
|
||||||
@ -815,6 +821,9 @@ static inline QString toString(CompileAsOptions option)
|
|||||||
static inline QString toString(compileAsManagedOptions option)
|
static inline QString toString(compileAsManagedOptions option)
|
||||||
{
|
{
|
||||||
switch (option) {
|
switch (option) {
|
||||||
|
case managedDefault:
|
||||||
|
case managedAssemblySafe:
|
||||||
|
break;
|
||||||
case managedAssembly:
|
case managedAssembly:
|
||||||
return "true";
|
return "true";
|
||||||
case managedAssemblyPure:
|
case managedAssemblyPure:
|
||||||
@ -828,6 +837,10 @@ static inline QString toString(compileAsManagedOptions option)
|
|||||||
static inline QString toString(debugOption option)
|
static inline QString toString(debugOption option)
|
||||||
{
|
{
|
||||||
switch (option) {
|
switch (option) {
|
||||||
|
case debugUnknown:
|
||||||
|
case debugDisabled:
|
||||||
|
case debugLineInfoOnly:
|
||||||
|
break;
|
||||||
case debugOldStyleInfo:
|
case debugOldStyleInfo:
|
||||||
return "OldStyle";
|
return "OldStyle";
|
||||||
case debugEditAndContinue:
|
case debugEditAndContinue:
|
||||||
@ -841,6 +854,8 @@ static inline QString toString(debugOption option)
|
|||||||
static inline QString toString(enhancedInstructionSetOption option)
|
static inline QString toString(enhancedInstructionSetOption option)
|
||||||
{
|
{
|
||||||
switch (option) {
|
switch (option) {
|
||||||
|
case archNotSet:
|
||||||
|
break;
|
||||||
case archSSE:
|
case archSSE:
|
||||||
return "StreamingSIMDExtensions";
|
return "StreamingSIMDExtensions";
|
||||||
case archSSE2:
|
case archSSE2:
|
||||||
@ -852,6 +867,8 @@ static inline QString toString(enhancedInstructionSetOption option)
|
|||||||
static inline QString toString(exceptionHandling option)
|
static inline QString toString(exceptionHandling option)
|
||||||
{
|
{
|
||||||
switch (option) {
|
switch (option) {
|
||||||
|
case ehDefault:
|
||||||
|
break;
|
||||||
case ehNone:
|
case ehNone:
|
||||||
return "false";
|
return "false";
|
||||||
case ehNoSEH:
|
case ehNoSEH:
|
||||||
@ -865,6 +882,8 @@ static inline QString toString(exceptionHandling option)
|
|||||||
static inline QString toString(favorSizeOrSpeedOption option)
|
static inline QString toString(favorSizeOrSpeedOption option)
|
||||||
{
|
{
|
||||||
switch (option) {
|
switch (option) {
|
||||||
|
case favorNone:
|
||||||
|
break;
|
||||||
case favorSize:
|
case favorSize:
|
||||||
return "Size";
|
return "Size";
|
||||||
case favorSpeed:
|
case favorSpeed:
|
||||||
@ -876,6 +895,8 @@ static inline QString toString(favorSizeOrSpeedOption option)
|
|||||||
static inline QString toString(floatingPointModel option)
|
static inline QString toString(floatingPointModel option)
|
||||||
{
|
{
|
||||||
switch (option) {
|
switch (option) {
|
||||||
|
case floatingPointNotSet:
|
||||||
|
break;
|
||||||
case floatingPointFast:
|
case floatingPointFast:
|
||||||
return "Fast";
|
return "Fast";
|
||||||
case floatingPointPrecise:
|
case floatingPointPrecise:
|
||||||
@ -889,6 +910,8 @@ static inline QString toString(floatingPointModel option)
|
|||||||
static inline QString toString(inlineExpansionOption option)
|
static inline QString toString(inlineExpansionOption option)
|
||||||
{
|
{
|
||||||
switch (option) {
|
switch (option) {
|
||||||
|
case expandDefault:
|
||||||
|
break;
|
||||||
case expandDisable:
|
case expandDisable:
|
||||||
return "Disabled";
|
return "Disabled";
|
||||||
case expandOnlyInline:
|
case expandOnlyInline:
|
||||||
@ -902,6 +925,11 @@ static inline QString toString(inlineExpansionOption option)
|
|||||||
static inline QString toString(optimizeOption option)
|
static inline QString toString(optimizeOption option)
|
||||||
{
|
{
|
||||||
switch (option) {
|
switch (option) {
|
||||||
|
case optimizeDisabled:
|
||||||
|
case optimizeFull:
|
||||||
|
case optimizeCustom:
|
||||||
|
case optimizeDefault:
|
||||||
|
break;
|
||||||
case optimizeMinSpace:
|
case optimizeMinSpace:
|
||||||
return "MinSpace";
|
return "MinSpace";
|
||||||
case optimizeMaxSpeed:
|
case optimizeMaxSpeed:
|
||||||
@ -913,6 +941,9 @@ static inline QString toString(optimizeOption option)
|
|||||||
static inline QString toString(pchOption option)
|
static inline QString toString(pchOption option)
|
||||||
{
|
{
|
||||||
switch (option) {
|
switch (option) {
|
||||||
|
case pchUnset:
|
||||||
|
case pchGenerateAuto:
|
||||||
|
break;
|
||||||
case pchNone:
|
case pchNone:
|
||||||
return "NotUsing";
|
return "NotUsing";
|
||||||
case pchCreateUsingSpecific:
|
case pchCreateUsingSpecific:
|
||||||
@ -926,6 +957,10 @@ static inline QString toString(pchOption option)
|
|||||||
static inline QString toString(runtimeLibraryOption option)
|
static inline QString toString(runtimeLibraryOption option)
|
||||||
{
|
{
|
||||||
switch (option) {
|
switch (option) {
|
||||||
|
case rtUnknown:
|
||||||
|
case rtSingleThreaded:
|
||||||
|
case rtSingleThreadedDebug:
|
||||||
|
break;
|
||||||
case rtMultiThreaded:
|
case rtMultiThreaded:
|
||||||
return "MultiThreaded";
|
return "MultiThreaded";
|
||||||
case rtMultiThreadedDLL:
|
case rtMultiThreadedDLL:
|
||||||
@ -941,6 +976,8 @@ static inline QString toString(runtimeLibraryOption option)
|
|||||||
static inline QString toString(structMemberAlignOption option)
|
static inline QString toString(structMemberAlignOption option)
|
||||||
{
|
{
|
||||||
switch (option) {
|
switch (option) {
|
||||||
|
case alignNotSet:
|
||||||
|
break;
|
||||||
case alignSingleByte:
|
case alignSingleByte:
|
||||||
return "1Byte";
|
return "1Byte";
|
||||||
case alignTwoBytes:
|
case alignTwoBytes:
|
||||||
@ -958,6 +995,8 @@ static inline QString toString(structMemberAlignOption option)
|
|||||||
static inline QString toString(warningLevelOption option)
|
static inline QString toString(warningLevelOption option)
|
||||||
{
|
{
|
||||||
switch (option) {
|
switch (option) {
|
||||||
|
case warningLevelUnknown:
|
||||||
|
break;
|
||||||
case warningLevel_0:
|
case warningLevel_0:
|
||||||
return "TurnOffAllWarnings";
|
return "TurnOffAllWarnings";
|
||||||
case warningLevel_1:
|
case warningLevel_1:
|
||||||
@ -975,6 +1014,8 @@ static inline QString toString(warningLevelOption option)
|
|||||||
static inline QString toString(optLinkTimeCodeGenType option)
|
static inline QString toString(optLinkTimeCodeGenType option)
|
||||||
{
|
{
|
||||||
switch (option) {
|
switch (option) {
|
||||||
|
case optLTCGDefault:
|
||||||
|
break;
|
||||||
case optLTCGEnabled:
|
case optLTCGEnabled:
|
||||||
return "UseLinkTimeCodeGeneration";
|
return "UseLinkTimeCodeGeneration";
|
||||||
case optLTCGInstrument:
|
case optLTCGInstrument:
|
||||||
@ -990,6 +1031,8 @@ static inline QString toString(optLinkTimeCodeGenType option)
|
|||||||
static inline QString toString(subSystemOption option)
|
static inline QString toString(subSystemOption option)
|
||||||
{
|
{
|
||||||
switch (option) {
|
switch (option) {
|
||||||
|
case subSystemNotSet:
|
||||||
|
break;
|
||||||
case subSystemConsole:
|
case subSystemConsole:
|
||||||
return "Console";
|
return "Console";
|
||||||
case subSystemWindows:
|
case subSystemWindows:
|
||||||
@ -1001,6 +1044,8 @@ static inline QString toString(subSystemOption option)
|
|||||||
static inline QString toString(machineTypeOption option)
|
static inline QString toString(machineTypeOption option)
|
||||||
{
|
{
|
||||||
switch (option) {
|
switch (option) {
|
||||||
|
case machineNotSet:
|
||||||
|
break;
|
||||||
case machineX86:
|
case machineX86:
|
||||||
return "MachineX86";
|
return "MachineX86";
|
||||||
case machineX64:
|
case machineX64:
|
||||||
@ -1025,6 +1070,8 @@ static inline QString toString(midlCharOption option)
|
|||||||
static inline QString toString(midlErrorCheckOption option)
|
static inline QString toString(midlErrorCheckOption option)
|
||||||
{
|
{
|
||||||
switch (option) {
|
switch (option) {
|
||||||
|
case midlAlignNotSet:
|
||||||
|
break;
|
||||||
case midlDisableAll:
|
case midlDisableAll:
|
||||||
return "None";
|
return "None";
|
||||||
case midlEnableAll:
|
case midlEnableAll:
|
||||||
@ -1036,6 +1083,8 @@ static inline QString toString(midlErrorCheckOption option)
|
|||||||
static inline QString toString(midlStructMemberAlignOption option)
|
static inline QString toString(midlStructMemberAlignOption option)
|
||||||
{
|
{
|
||||||
switch (option) {
|
switch (option) {
|
||||||
|
case midlAlignNotSet:
|
||||||
|
break;
|
||||||
case midlAlignSingleByte:
|
case midlAlignSingleByte:
|
||||||
return "1";
|
return "1";
|
||||||
case midlAlignTwoBytes:
|
case midlAlignTwoBytes:
|
||||||
@ -1053,6 +1102,8 @@ static inline QString toString(midlStructMemberAlignOption option)
|
|||||||
static inline QString toString(midlTargetEnvironment option)
|
static inline QString toString(midlTargetEnvironment option)
|
||||||
{
|
{
|
||||||
switch (option) {
|
switch (option) {
|
||||||
|
case midlTargetNotSet:
|
||||||
|
break;
|
||||||
case midlTargetWin32:
|
case midlTargetWin32:
|
||||||
return "Win32";
|
return "Win32";
|
||||||
case midlTargetWin64:
|
case midlTargetWin64:
|
||||||
@ -1102,6 +1153,9 @@ static inline QString toString(charSet option)
|
|||||||
static inline QString toString(ConfigurationTypes option)
|
static inline QString toString(ConfigurationTypes option)
|
||||||
{
|
{
|
||||||
switch (option) {
|
switch (option) {
|
||||||
|
case typeUnknown:
|
||||||
|
case typeGeneric:
|
||||||
|
break;
|
||||||
case typeApplication:
|
case typeApplication:
|
||||||
return "Application";
|
return "Application";
|
||||||
case typeDynamicLibrary:
|
case typeDynamicLibrary:
|
||||||
@ -1115,6 +1169,8 @@ static inline QString toString(ConfigurationTypes option)
|
|||||||
static inline QString toString(useOfATL option)
|
static inline QString toString(useOfATL option)
|
||||||
{
|
{
|
||||||
switch (option) {
|
switch (option) {
|
||||||
|
case useATLNotSet:
|
||||||
|
break;
|
||||||
case useATLStatic:
|
case useATLStatic:
|
||||||
return "Static";
|
return "Static";
|
||||||
case useATLDynamic:
|
case useATLDynamic:
|
||||||
@ -1126,6 +1182,8 @@ static inline QString toString(useOfATL option)
|
|||||||
static inline QString toString(useOfMfc option)
|
static inline QString toString(useOfMfc option)
|
||||||
{
|
{
|
||||||
switch (option) {
|
switch (option) {
|
||||||
|
case useMfcStdWin:
|
||||||
|
break;
|
||||||
case useMfcStatic:
|
case useMfcStatic:
|
||||||
return "Static";
|
return "Static";
|
||||||
case useMfcDynamic:
|
case useMfcDynamic:
|
||||||
@ -1151,6 +1209,8 @@ static inline triState toTriState(preprocessOption option)
|
|||||||
{
|
{
|
||||||
switch (option)
|
switch (option)
|
||||||
{
|
{
|
||||||
|
case preprocessUnknown:
|
||||||
|
break;
|
||||||
case preprocessNo:
|
case preprocessNo:
|
||||||
return _False;
|
return _False;
|
||||||
case preprocessNoLineNumbers:
|
case preprocessNoLineNumbers:
|
||||||
@ -1164,6 +1224,8 @@ static inline triState toTriState(optFoldingType option)
|
|||||||
{
|
{
|
||||||
switch (option)
|
switch (option)
|
||||||
{
|
{
|
||||||
|
case optFoldingDefault:
|
||||||
|
break;
|
||||||
case optNoFolding:
|
case optNoFolding:
|
||||||
return _False;
|
return _False;
|
||||||
case optFolding:
|
case optFolding:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user