diff --git a/include/abg-corpus.h b/include/abg-corpus.h index be10b9dc..ed7f34fc 100644 --- a/include/abg-corpus.h +++ b/include/abg-corpus.h @@ -61,10 +61,10 @@ public: drop_translation_units(); string& - get_file_path() const; + get_path() const; void - set_file_path(const string&); + set_path(const string&); bool is_empty() const; diff --git a/src/abg-corpus.cc b/src/abg-corpus.cc index 0929c50d..cf31cba8 100644 --- a/src/abg-corpus.cc +++ b/src/abg-corpus.cc @@ -239,7 +239,7 @@ corpus::drop_translation_units() /// @return the file path associated to the current corpus. string& - corpus::get_file_path() const + corpus::get_path() const { return m_priv->path; } @@ -252,7 +252,7 @@ corpus::drop_translation_units() /// the corpus object into the on-disk file at this path. /// @param the new file path to assciate to the current corpus. void -corpus::set_file_path(const string& path) +corpus::set_path(const string& path) { m_priv->path = path; } @@ -267,7 +267,7 @@ corpus::set_file_path(const string& path) } /// Serialize the current corpus to disk in a file which path is given - /// by corpus::get_file_path. + /// by corpus::get_path. /// /// @return true upon successful completion, false otherwise. bool @@ -285,7 +285,7 @@ corpus::write() const return true; } -/// Open the archive which path is given by corpus::get_file_path and +/// Open the archive which path is given by corpus::get_path and /// de-serialize each of the translation units it contains. /// /// @return the number of entries read and properly de-serialized, diff --git a/tests/test-write-read-archive.cc b/tests/test-write-read-archive.cc index 35dc6cf7..384793fa 100644 --- a/tests/test-write-read-archive.cc +++ b/tests/test-write-read-archive.cc @@ -112,7 +112,7 @@ main() if (!abi_corpus.write()) { - cerr << "failed to write archive file: " << abi_corpus.get_file_path(); + cerr << "failed to write archive file: " << abi_corpus.get_path(); return 1; } @@ -126,7 +126,7 @@ main() if (abi_corpus.get_translation_units().size()) { cerr << "In-memory object of abi corpus at '" - << abi_corpus.get_file_path() + << abi_corpus.get_path() << "' still has translation units after call to " "corpus::drop_translation_units!"; return false; @@ -135,7 +135,7 @@ main() if (!abi_corpus.read()) { cerr << "Failed to load the abi corpus from path '" - << abi_corpus.get_file_path() + << abi_corpus.get_path() << "'"; return 1; } @@ -144,7 +144,7 @@ main() { cerr << "Read " << abi_corpus.get_translation_units().size() << " elements from the abi corpus at " - << abi_corpus.get_file_path() + << abi_corpus.get_path() << " instead of " << NUM_ARCHIVES_ELEMENTS; return 1;