MCPcopy Create free account
hub / github.com/Kitware/CMake / FlagMapUpdate

Method FlagMapUpdate

Source/cmIDEOptions.cxx:145–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145void cmIDEOptions::FlagMapUpdate(cmIDEFlagTable const* entry,
146 std::string const& new_value)
147{
148 if (entry->special & cmIDEFlagTable::UserIgnored) {
149 // Ignore the user-specified value.
150 this->FlagMap[entry->IDEName] = entry->value;
151 } else if (entry->special & cmIDEFlagTable::SemicolonAppendable) {
152 this->FlagMap[entry->IDEName].push_back(new_value);
153 } else if (entry->special & cmIDEFlagTable::SpaceAppendable) {
154 this->FlagMap[entry->IDEName].append_with_space(new_value);
155 } else if (entry->special & cmIDEFlagTable::CommaAppendable) {
156 this->FlagMap[entry->IDEName].append_with_comma(new_value);
157 } else {
158 // Use the user-specified value.
159 this->FlagMap[entry->IDEName] = new_value;
160 }
161}
162
163void cmIDEOptions::AddDefine(std::string const& def)
164{

Callers 2

HandleFlagMethod · 0.95
CheckFlagTableMethod · 0.95

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected