summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-10-02 21:28:55 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-10-02 21:28:55 (GMT)
commit8591786867111568298394242a80ddc0a321f5ad (patch)
treedd9b0251953724c9189d6d7bc103567573dbc6a0 /Source/cmSystemTools.h
parentc9caf2390c86b98bbeca1e4e52d04fbbb563f083 (diff)
downloadCMake-8591786867111568298394242a80ddc0a321f5ad.zip
CMake-8591786867111568298394242a80ddc0a321f5ad.tar.gz
CMake-8591786867111568298394242a80ddc0a321f5ad.tar.bz2
ENH: add better error reports in parsing cmake files, like what file has the error
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r--Source/cmSystemTools.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index b724bc7..2f03f47 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -122,11 +122,13 @@ public:
/**
* Read a CMake command (or function) from an input file. This
* returns the name of the function and a list of its
- * arguments.
+ * arguments. The last argument is the name of the file that
+ * the ifstream points to, and is used for debug info only.
*/
static bool ParseFunction(std::ifstream&,
std::string& name,
- std::vector<std::string>& arguments);
+ std::vector<std::string>& arguments,
+ const char* filename);
/**
* Extract white-space separated arguments from a string.