Skip to content

Commit 5565441

Browse files
author
Daniel Kroening
committed
add documentation to read_goto_binary and read_object_and_link
1 parent f9a09d8 commit 5565441

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/goto-programs/read_goto_binary.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ Module: Read Goto Programs
2727
#include "elf_reader.h"
2828
#include "osx_fat_reader.h"
2929

30+
/// Read given goto binary
31+
/// Does not update config
3032
bool read_goto_binary(
3133
const std::string &filename,
3234
goto_modelt &dest,
@@ -36,6 +38,8 @@ bool read_goto_binary(
3638
filename, dest.symbol_table, dest.goto_functions, message_handler);
3739
}
3840

41+
/// Read given goto binary
42+
/// Does not update config
3943
optionalt<goto_modelt>
4044
read_goto_binary(const std::string &filename, message_handlert &message_handler)
4145
{
@@ -50,6 +54,8 @@ read_goto_binary(const std::string &filename, message_handlert &message_handler)
5054
return std::move(dest);
5155
}
5256

57+
/// Read given goto binary
58+
/// Does not update config
5359
bool read_goto_binary(
5460
const std::string &filename,
5561
symbol_tablet &symbol_table,
@@ -206,7 +212,7 @@ bool is_goto_binary(const std::string &filename)
206212
return false;
207213
}
208214

209-
/// reads an object file
215+
/// reads an object file, and also updates config
210216
/// \par parameters: a file_name
211217
/// \return true on error, false otherwise
212218
bool read_object_and_link(
@@ -241,7 +247,7 @@ bool read_object_and_link(
241247
return false;
242248
}
243249

244-
/// reads an object file
250+
/// reads an object file, and also updates the config
245251
/// \par parameters: a file_name
246252
/// \return true on error, false otherwise
247253
bool read_object_and_link(

0 commit comments

Comments
 (0)