summaryrefslogtreecommitdiff
path: root/Source/cmSourceFileLocation.h
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-02-01 12:50:28 +0100
committerSebastian Holtermann <sebholt@xwmw.org>2019-02-02 18:39:22 +0100
commitcd8a930d61f0aa6c139b1f81302c9258b4102012 (patch)
tree2bff1e4aef7736ee7655cf6b0053c50d541090ef /Source/cmSourceFileLocation.h
parent6d407ae439f1db086dd7a3675c8efce93a19fed3 (diff)
downloadcmake-cd8a930d61f0aa6c139b1f81302c9258b4102012.tar.gz
cmSourceFile: Refactor FindFullPath method
Refactors the cmSourceFile::FindFullPath method to use lambdas.
Diffstat (limited to 'Source/cmSourceFileLocation.h')
-rw-r--r--Source/cmSourceFileLocation.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmSourceFileLocation.h b/Source/cmSourceFileLocation.h
index cb35703f24..87040b882d 100644
--- a/Source/cmSourceFileLocation.h
+++ b/Source/cmSourceFileLocation.h
@@ -80,6 +80,11 @@ public:
const std::string& GetName() const { return this->Name; }
/**
+ * Get the full file path composed of GetDirectory() and GetName().
+ */
+ std::string GetFullPath() const;
+
+ /**
* Get the cmMakefile instance for which the source file was created.
*/
cmMakefile const* GetMakefile() const { return this->Makefile; }