VS: Fix /analyze:log flag mapping (#14858)
Fix the VS 11 and VS 12 flag table entries for this flag. It requires a value in the following argument. Also drop the general "/analyze:" flag table entry so that such flags will be passed through as plain additional options. This is necessary because some such options have following values and some do not but not all have .vcxproj elements to hold the values.
This commit is contained in:
parent
650199e7ca
commit
e8633e6678
|
@ -248,9 +248,9 @@ static cmVS7FlagTable cmVS11CLFlagTable[] =
|
|||
{"ForcedUsingFiles", "FU",
|
||||
"Forced #using File",
|
||||
"", cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable},
|
||||
{"PREfastAdditionalOptions", "analyze:",
|
||||
"Additional Code Analysis Native options",
|
||||
"", cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable},
|
||||
{"PREfastLog", "analyze:log",
|
||||
"Code Analysis Log",
|
||||
"", cmVS7FlagTable::UserFollowing},
|
||||
{"PREfastAdditionalPlugins", "analyze:plugin",
|
||||
"Additional Code Analysis Native plugins",
|
||||
"", cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable},
|
||||
|
@ -283,9 +283,6 @@ static cmVS7FlagTable cmVS11CLFlagTable[] =
|
|||
"", cmVS7FlagTable::UserValue},
|
||||
// Skip [XMLDocumentationFileName] - no command line Switch.
|
||||
// Skip [BrowseInformationFile] - no command line Switch.
|
||||
{"PREfastLog", "analyze:log ",
|
||||
"Code Analysis Log",
|
||||
"", cmVS7FlagTable::UserValue},
|
||||
// Skip [AdditionalOptions] - no command line Switch.
|
||||
{0,0,0,0,0}
|
||||
};
|
||||
|
|
|
@ -254,9 +254,9 @@ static cmVS7FlagTable cmVS12CLFlagTable[] =
|
|||
{"ForcedUsingFiles", "FU",
|
||||
"Forced #using File",
|
||||
"", cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable},
|
||||
{"PREfastAdditionalOptions", "analyze:",
|
||||
"Additional Code Analysis Native options",
|
||||
"", cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable},
|
||||
{"PREfastLog", "analyze:log",
|
||||
"Code Analysis Log",
|
||||
"", cmVS7FlagTable::UserFollowing},
|
||||
{"PREfastAdditionalPlugins", "analyze:plugin",
|
||||
"Additional Code Analysis Native plugins",
|
||||
"", cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable},
|
||||
|
@ -289,9 +289,6 @@ static cmVS7FlagTable cmVS12CLFlagTable[] =
|
|||
"", cmVS7FlagTable::UserValue},
|
||||
// Skip [XMLDocumentationFileName] - no command line Switch.
|
||||
// Skip [BrowseInformationFile] - no command line Switch.
|
||||
{"PREfastLog", "analyze:log ",
|
||||
"Code Analysis Log",
|
||||
"", cmVS7FlagTable::UserValue},
|
||||
// Skip [AdditionalOptions] - no command line Switch.
|
||||
{0,0,0,0,0}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue