diff options
author | Brad King <brad.king@kitware.com> | 2012-08-06 14:07:58 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-08-08 17:26:27 (GMT) |
commit | 0546484e4b7856c417f30a5b8ff6af6a5a080f0d (patch) | |
tree | 3ef8308e1115129bf5777a65a0525b0e81ff58e4 /Source/cmVariableWatchCommand.cxx | |
parent | 28685ade7a8f60e8519b6bf8a824e6a01365c181 (diff) | |
download | CMake-0546484e4b7856c417f30a5b8ff6af6a5a080f0d.zip CMake-0546484e4b7856c417f30a5b8ff6af6a5a080f0d.tar.gz CMake-0546484e4b7856c417f30a5b8ff6af6a5a080f0d.tar.bz2 |
cmListFileArgument: Generalize 'Quoted' bool to 'Delimeter' enum
Replace the boolean value that indicates whether an argument is unquoted
or quoted with a generalized enumeration of possible argument types.
For now "Quoted" and "Unquoted" remain the only types.
Diffstat (limited to 'Source/cmVariableWatchCommand.cxx')
-rw-r--r-- | Source/cmVariableWatchCommand.cxx | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/Source/cmVariableWatchCommand.cxx b/Source/cmVariableWatchCommand.cxx index 297a92b..70c6524 100644 --- a/Source/cmVariableWatchCommand.cxx +++ b/Source/cmVariableWatchCommand.cxx @@ -86,15 +86,20 @@ void cmVariableWatchCommand::VariableAccessed(const std::string& variable, std::string command = *it; newLFF.Arguments.clear(); newLFF.Arguments.push_back( - cmListFileArgument(variable, true, "unknown", 9999)); + cmListFileArgument(variable, cmListFileArgument::Quoted, + "unknown", 9999)); newLFF.Arguments.push_back( - cmListFileArgument(accessString, true, "unknown", 9999)); + cmListFileArgument(accessString, cmListFileArgument::Quoted, + "unknown", 9999)); newLFF.Arguments.push_back( - cmListFileArgument(newValue?newValue:"", true, "unknown", 9999)); + cmListFileArgument(newValue?newValue:"", cmListFileArgument::Quoted, + "unknown", 9999)); newLFF.Arguments.push_back( - cmListFileArgument(currentListFile, true, "unknown", 9999)); + cmListFileArgument(currentListFile, cmListFileArgument::Quoted, + "unknown", 9999)); newLFF.Arguments.push_back( - cmListFileArgument(stack, true, "unknown", 9999)); + cmListFileArgument(stack, cmListFileArgument::Quoted, + "unknown", 9999)); newLFF.Name = command; newLFF.FilePath = "Some weird path"; newLFF.Line = 9999; |