mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Merge topic 'revert-definition-map-lookup'
d1b62185Merge branch 'parent-scope-tests' into variable-pull-failure5f414cefRevert "cmDefinitions: Don't store parent lookups"e0c0b1actest: add a test for PARENT_SCOPE with multiple scopes064c415dtest: add test for PARENT_SCOPE behavior
This commit is contained in:
@@ -36,11 +36,9 @@ public:
|
||||
/** Returns the parent scope, if any. */
|
||||
cmDefinitions* GetParent() const { return this->Up; }
|
||||
|
||||
/** Get the value associated with a key; null if none. */
|
||||
const char* Get(const std::string& key) const;
|
||||
|
||||
/** Pull a variable from the parent. */
|
||||
void Pull(const std::string& key);
|
||||
/** Get the value associated with a key; null if none.
|
||||
Store the result locally if it came from a parent. */
|
||||
const char* Get(const std::string& key);
|
||||
|
||||
/** Set (or unset if null) a value associated with a key. */
|
||||
const char* Set(const std::string& key, const char* value);
|
||||
@@ -82,7 +80,7 @@ private:
|
||||
MapType Map;
|
||||
|
||||
// Internal query and update methods.
|
||||
Def const& GetInternal(const std::string& key) const;
|
||||
Def const& GetInternal(const std::string& key);
|
||||
Def const& SetInternal(const std::string& key, Def const& def);
|
||||
|
||||
// Implementation of Closure() method.
|
||||
|
||||
Reference in New Issue
Block a user