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

Method WriteDirect

Source/cmTarget.cxx:830–846  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

828
829template <typename ValueType>
830void UsageRequirementProperty::WriteDirect(
831 cmTargetInternals const* impl, cm::optional<cmListFileBacktrace> const& bt,
832 ValueType value, Action action)
833{
834 if (action == Action::Set) {
835 this->Entries.clear();
836 }
837 if (value) {
838 cmListFileBacktrace lfbt = impl->GetBacktrace(bt);
839 if (action == Action::Prepend) {
840 this->Entries.emplace(this->Entries.begin(), value, lfbt);
841 } else if (action == Action::Set || cmNonempty(value) ||
842 this->AppendBehavior == AppendEmpty::Yes) {
843 this->Entries.emplace_back(value, lfbt);
844 }
845 }
846}
847
848void UsageRequirementProperty::WriteDirect(BT<std::string> value,
849 Action action)

Callers 9

WriteMethod · 0.95
AddTracedSourcesMethod · 0.80
AddSourceMethod · 0.80
InsertIncludeMethod · 0.80
InsertCompileOptionMethod · 0.80
InsertLinkOptionMethod · 0.80
InsertLinkDirectoryMethod · 0.80

Calls 7

cmNonemptyFunction · 0.85
moveFunction · 0.85
emplaceMethod · 0.80
emplace_backMethod · 0.80
clearMethod · 0.45
GetBacktraceMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected