summaryrefslogtreecommitdiffstats
path: root/Source/cmVS11CLFlagTable.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-04-01 18:59:20 (GMT)
committerBrad King <brad.king@kitware.com>2014-04-01 18:59:20 (GMT)
commite8633e66785eb2f3618d7b31bfd22f26e7a38055 (patch)
tree91f3109d05fdaa32ff9a5343a6d153a5c8355880 /Source/cmVS11CLFlagTable.h
parent650199e7ca5821c160e5124e79aaf81141a7918f (diff)
downloadCMake-e8633e66785eb2f3618d7b31bfd22f26e7a38055.zip
CMake-e8633e66785eb2f3618d7b31bfd22f26e7a38055.tar.gz
CMake-e8633e66785eb2f3618d7b31bfd22f26e7a38055.tar.bz2
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.
Diffstat (limited to 'Source/cmVS11CLFlagTable.h')
-rw-r--r--Source/cmVS11CLFlagTable.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/Source/cmVS11CLFlagTable.h b/Source/cmVS11CLFlagTable.h
index 5ab8ebb..a61ab16 100644
--- a/Source/cmVS11CLFlagTable.h
+++ b/Source/cmVS11CLFlagTable.h
@@ -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}
};