summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-09-25 14:12:20 (GMT)
committerBrad King <brad.king@kitware.com>2020-09-28 13:49:08 (GMT)
commit727ed0c403ad87c5cae84222d7d69b95b665b63f (patch)
treed932b888f9e3196d956ffc62e7fb77b6a09030ea /Source/cmMakefile.h
parente456dae6693dc3a79e2708481a969b43cda188cf (diff)
downloadCMake-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.h7
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