summaryrefslogtreecommitdiffstats
path: root/Source/cmSourceFile.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-12-17 15:12:19 (GMT)
committerBrad King <brad.king@kitware.com>2007-12-17 15:12:19 (GMT)
commit99d57b3c8cc84f40dee02036cc6c3e12510aa08c (patch)
tree72a6b3ec6c168b2df1aba10b9c29e7e2989685a1 /Source/cmSourceFile.cxx
parentff8d2a664720e1b48a59e34ac30fd3a9dd76f2bc (diff)
downloadCMake-99d57b3c8cc84f40dee02036cc6c3e12510aa08c.zip
CMake-99d57b3c8cc84f40dee02036cc6c3e12510aa08c.tar.gz
CMake-99d57b3c8cc84f40dee02036cc6c3e12510aa08c.tar.bz2
ENH: Added cmSourceFile::GetLocation method to get a read-only reference to the Location ivar. This partially addresses issue #6137.
Diffstat (limited to 'Source/cmSourceFile.cxx')
-rw-r--r--Source/cmSourceFile.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmSourceFile.cxx b/Source/cmSourceFile.cxx
index 549ff28..a685435 100644
--- a/Source/cmSourceFile.cxx
+++ b/Source/cmSourceFile.cxx
@@ -76,6 +76,12 @@ const char* cmSourceFile::GetLanguage() const
}
//----------------------------------------------------------------------------
+cmSourceFileLocation const& cmSourceFile::GetLocation() const
+{
+ return this->Location;
+}
+
+//----------------------------------------------------------------------------
std::string const& cmSourceFile::GetFullPath()
{
if(this->FullPath.empty())