summaryrefslogtreecommitdiffstats
path: root/Source/cmSourceFileLocation.h
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-02-01 11:50:28 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2019-02-02 17:39:22 (GMT)
commitcd8a930d61f0aa6c139b1f81302c9258b4102012 (patch)
tree2bff1e4aef7736ee7655cf6b0053c50d541090ef /Source/cmSourceFileLocation.h
parent6d407ae439f1db086dd7a3675c8efce93a19fed3 (diff)
downloadCMake-cd8a930d61f0aa6c139b1f81302c9258b4102012.zip
CMake-cd8a930d61f0aa6c139b1f81302c9258b4102012.tar.gz
CMake-cd8a930d61f0aa6c139b1f81302c9258b4102012.tar.bz2
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 cb35703..87040b8 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; }