MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / AddDependency

Method AddDependency

src/core/cmdlineparser.cpp:346–355  ·  view source on GitHub ↗

////////////////////////////////////////////////////////////////////////// AddDependency //////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

344// AddDependency
345///////////////////////////////////////////////////////////////////////////////
346void cCmdLineParser::AddDependency(int argId1, int argId2, bool mutual)
347{
348 // again, no checking for duplicates... would a set
349 // prove to be a better container for this operation?
350 std::pair<int, int> Args(argId1, argId2);
351 std::pair<std::pair<int, int>, bool> Dep(Args, mutual);
352
353 ASSERT(argId1 != argId2);
354 mDependencyList.push_back(Dep);
355}
356
357///////////////////////////////////////////////////////////////////////////////
358// TraceContents

Callers 1

InitCmdLineParserMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected