cmDefinitions: Inline GetClosureKeys implementation.
This commit is contained in:
parent
78e1454ea0
commit
ca9fa77d5d
@ -123,14 +123,7 @@ std::set<std::string> cmDefinitions::ClosureKeys() const
|
|||||||
{
|
{
|
||||||
std::set<std::string> defined;
|
std::set<std::string> defined;
|
||||||
std::set<std::string> undefined;
|
std::set<std::string> undefined;
|
||||||
this->ClosureKeys(defined, undefined);
|
|
||||||
return defined;
|
|
||||||
}
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
|
||||||
void cmDefinitions::ClosureKeys(std::set<std::string>& defined,
|
|
||||||
std::set<std::string>& undefined) const
|
|
||||||
{
|
|
||||||
cmDefinitions const* up = this;
|
cmDefinitions const* up = this;
|
||||||
|
|
||||||
while (up)
|
while (up)
|
||||||
@ -149,4 +142,5 @@ void cmDefinitions::ClosureKeys(std::set<std::string>& defined,
|
|||||||
}
|
}
|
||||||
up = up->Up;
|
up = up->Up;
|
||||||
}
|
}
|
||||||
|
return defined;
|
||||||
}
|
}
|
||||||
|
@ -86,10 +86,6 @@ private:
|
|||||||
cmDefinitions(ClosureTag const&, cmDefinitions const* root);
|
cmDefinitions(ClosureTag const&, cmDefinitions const* root);
|
||||||
void ClosureImpl(std::set<std::string>& undefined,
|
void ClosureImpl(std::set<std::string>& undefined,
|
||||||
cmDefinitions const* defs);
|
cmDefinitions const* defs);
|
||||||
|
|
||||||
// Implementation of ClosureKeys() method.
|
|
||||||
void ClosureKeys(std::set<std::string>& defined,
|
|
||||||
std::set<std::string>& undefined) const;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user