Allow scoping rules through subninja
authorMohamed Bamakhrama <mohamed.bamakhrama@intel.com>
Sun, 1 Mar 2015 23:57:33 +0000 (00:57 +0100)
committerMohamed Bamakhrama <mohamed.bamakhrama@intel.com>
Sun, 1 Mar 2015 23:57:33 +0000 (00:57 +0100)
commitf8f293730de2e12f6575c5d890a16504340f75fe
treef4544bb3ab1fea478c57a2892616a5761c5769f6
parentc406d1c8adfedc1982e2c08ab95d581f65eb65de
Allow scoping rules through subninja

Ninja didn't support scoping rules through subninja and assumed
a unique rule name in the whole namespace. With this change, this
behavior is changed to allow scoping rules. Two rules can have the
same name if they belong to two different scopes. However, two
rules can NOT have the same name in the same scope.
src/clean.cc
src/eval_env.cc
src/eval_env.h
src/graph.cc
src/graph.h
src/manifest_parser.cc
src/manifest_parser_test.cc
src/state.cc
src/state.h
src/state_test.cc