diff options
author | Brad King <brad.king@kitware.com> | 2020-09-25 14:12:20 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-09-28 13:49:08 (GMT) |
commit | 727ed0c403ad87c5cae84222d7d69b95b665b63f (patch) | |
tree | d932b888f9e3196d956ffc62e7fb77b6a09030ea /Source/cmMakefile.h | |
parent | e456dae6693dc3a79e2708481a969b43cda188cf (diff) | |
download | CMake-727ed0c403ad87c5cae84222d7d69b95b665b63f.zip CMake-727ed0c403ad87c5cae84222d7d69b95b665b63f.tar.gz CMake-727ed0c403ad87c5cae84222d7d69b95b665b63f.tar.bz2 |
cmMakefile: Simplify ExpandArguments signature
The only call sites that pass the explicit file name argument are in
function blocker `ArgumentsMatch` methods for `function` and `macro`.
We already ensure that they are balanced within a file scope, and the
RAII helpers `BuildsystemFileScope` and `ListFileScope` ensure that the
backtrace and execution list file stacks unwind to the matching level.
Therefore we can assume that the file name where we are checking for
matching arguments matches starting file name where those arguments
first appeared, and do not need to pass it explicitly.
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r-- | Source/cmMakefile.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index bd7753a..022c029 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -732,12 +732,9 @@ public: * variable replacement and list expansion. */ bool ExpandArguments(std::vector<cmListFileArgument> const& inArgs, - std::vector<std::string>& outArgs, - const char* filename = nullptr) const; - + std::vector<std::string>& outArgs) const; bool ExpandArguments(std::vector<cmListFileArgument> const& inArgs, - std::vector<cmExpandedCommandArgument>& outArgs, - const char* filename = nullptr) const; + std::vector<cmExpandedCommandArgument>& outArgs) const; /** * Get the instance |