summaryrefslogtreecommitdiffstats
path: root/Source/cmSourceFile.h
diff options
context:
space:
mode:
authorDaniel Eiband <daniel.eiband@brainlab.com>2019-08-29 15:31:44 (GMT)
committerDaniel Eiband <daniel.eiband@brainlab.com>2019-08-29 20:51:58 (GMT)
commit2d888e339064d39ae894b4df567441539c8c65da (patch)
tree759702a363c9204ea9c1b072f4c4260d5694324b /Source/cmSourceFile.h
parent3ec986ce8e8df269eb6b6b9f37e12b02194168fd (diff)
downloadCMake-2d888e339064d39ae894b4df567441539c8c65da.zip
CMake-2d888e339064d39ae894b4df567441539c8c65da.tar.gz
CMake-2d888e339064d39ae894b4df567441539c8c65da.tar.bz2
cmSourceFile: Rename mutating GetFullPath() overload
Rename mutating GetFullPath() overload to ResolveFullPath().
Diffstat (limited to 'Source/cmSourceFile.h')
-rw-r--r--Source/cmSourceFile.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/Source/cmSourceFile.h b/Source/cmSourceFile.h
index ccd5b62..774cb28 100644
--- a/Source/cmSourceFile.h
+++ b/Source/cmSourceFile.h
@@ -63,14 +63,15 @@ public:
bool GetIsGenerated() const { return this->IsGenerated; }
/**
- * The full path to the file. The non-const version of this method
- * may attempt to locate the file on disk and finalize its location.
- * The const version of this method may return an empty string if
- * the non-const version has not yet been called (yes this is a
- * horrible interface, but is necessary for backwards
- * compatibility).
+ * Resolves the full path to the file. Attempts to locate the file on disk
+ * and finalizes its location.
+ */
+ std::string const& ResolveFullPath(std::string* error = nullptr);
+
+ /**
+ * The resolved full path to the file. The returned file name might be empty
+ * if the path has not yet been resolved.
*/
- std::string const& GetFullPath(std::string* error = nullptr);
std::string const& GetFullPath() const;
/**