Skip to content

Doxygen fixes #1478

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 13, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 15 additions & 59 deletions src/goto-instrument/dump_c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -631,45 +631,24 @@ void dump_ct::cleanup_decl(
decl.swap(b.op0());
}

/*******************************************************************\

Function: dump_ct::collect_typedefs

Inputs:
type Type to inspect for ID_C_typedef entry
early Set to true to enforce that typedef is dumped before any
function declarations or struct definitions

Outputs:

Purpose: Find any typedef names contained in the input type and store
their declaration strings in typedef_map for eventual output.

\*******************************************************************/

/// Find any typedef names contained in the input type and store their
/// declaration strings in typedef_map for eventual output.
/// \param type: type to inspect for ID_C_typedef entry
/// \param early: set to true to enforce that typedef is dumped before any
/// function declarations or struct definitions
void dump_ct::collect_typedefs(const typet &type, bool early)
{
std::unordered_set<irep_idt, irep_id_hash> deps;
collect_typedefs_rec(type, early, deps);
}

/*******************************************************************\

Function: dump_ct::collect_typedefs_rec

Inputs:
type Type to inspect for ID_C_typedef entry
early Set to true to enforce that typedef is dumped before any
function declarations or struct definitions
dependencies Typedefs used in the declaration of a given typedef

Outputs:

Purpose: Find any typedef names contained in the input type and store
their declaration strings in typedef_map for eventual output.

\*******************************************************************/

/// Find any typedef names contained in the input type and store their
/// declaration strings in typedef_map for eventual output.
/// \param type: type to inspect for ID_C_typedef entry
/// \param early: set to true to enforce that typedef is dumped before any
/// function declarations or struct definitions
/// \param [out] dependencies: typedefs used in the declaration of a given
/// typedef
void dump_ct::collect_typedefs_rec(
const typet &type,
bool early,
Expand Down Expand Up @@ -745,19 +724,7 @@ void dump_ct::collect_typedefs_rec(
dependencies.insert(local_deps.begin(), local_deps.end());
}

/*******************************************************************\

Function: dump_ct::gather_global_typedefs

Inputs:

Outputs:

Purpose: find all global typdefs in the symbol table and store them
in typedef_types

\*******************************************************************/

/// Find all global typdefs in the symbol table and store them in typedef_types
void dump_ct::gather_global_typedefs()
{
// sort the symbols first to ensure deterministic replacement in
Expand Down Expand Up @@ -787,19 +754,8 @@ void dump_ct::gather_global_typedefs()
}
}

/*******************************************************************\

Function: dump_ct::dump_typedefs

Inputs:

Outputs: os output stream

Purpose: print all typedefs that are not covered via
typedef struct xyz { ... } name;

\*******************************************************************/

/// Print all typedefs that are not covered via typedef struct xyz { ... } name;
/// \param [out] os: output stream
void dump_ct::dump_typedefs(std::ostream &os) const
{
// we need to compute a topological sort; we do so by picking all
Expand Down
12 changes: 0 additions & 12 deletions src/util/std_expr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,18 +165,6 @@ extractbits_exprt::extractbits_exprt(
lower()=from_integer(_lower, integer_typet());
}

/*******************************************************************\

Function: address_of_exprt::address_of_exprt

Inputs:

Outputs:

Purpose:

\*******************************************************************/

address_of_exprt::address_of_exprt(const exprt &_op):
unary_exprt(ID_address_of, _op, pointer_type(_op.type()))
{
Expand Down