libabigail
|
The context of the diff. This type holds various bits of information that is going to be used throughout the diffing of two entities and the reporting that follows. More...
#include <abg-comparison.h>
Classes | |
struct | priv |
The private member (pimpl) for diff_context. More... | |
Public Member Functions | |
void | add_diff_filter (filtering::filter_base_sptr) |
Setter for the diff filters to apply to a given diff sub-tree. More... | |
void | add_suppression (const suppr::suppression_sptr suppr) |
Add a new suppression specification that specifies which diff node reports should be dropped on the floor. More... | |
void | add_suppressions (const suppr::suppressions_type &supprs) |
Add new suppression specifications that specify which diff node reports should be dropped on the floor. More... | |
void | clear_last_diffs_visited_per_class_of_equivalence () |
ostream * | default_output_stream () |
Getter for the default output stream used by code of the comparison engine. By default the default output stream is a NULL pointer. More... | |
void | default_output_stream (ostream *) |
Setter for the default output stream used by code of the comparison engine. By default the default output stream is a NULL pointer. More... | |
const filtering::filters & | diff_filters () const |
Getter for the diff tree nodes filters to apply to diff sub-trees. More... | |
diff * | diff_has_been_visited (const diff *) const |
Test if a diff node has been traversed. More... | |
diff_sptr | diff_has_been_visited (const diff_sptr) const |
Test if a diff node has been traversed. More... | |
const suppr::suppressions_type & | direct_suppressions () const |
Getter of the direct suppression specification (those that are not negated) comprised in the general vector of suppression specifications returned by diff_context::suppression(). More... | |
void | do_dump_diff_tree (const corpus_diff_sptr) const |
Emit a textual representation of a corpus_diff tree to the error output stream of the current context, for debugging purposes. More... | |
void | do_dump_diff_tree (const diff_sptr) const |
Emit a textual representation of a diff tree to the error output stream of the current context, for debugging purposes. More... | |
bool | do_log () const |
Test if logging was requested. More... | |
void | do_log (bool) |
Set logging as requested. More... | |
bool | dump_diff_tree () const |
Test if the comparison engine should dump the diff tree for the changed functions and variables it has. More... | |
void | dump_diff_tree (bool f) |
Set if the comparison engine should dump the diff tree for the changed functions and variables it has. More... | |
ostream * | error_output_stream () const |
Getter for the errror output stream used by code of the comparison engine. By default the error output stream is a NULL pointer. More... | |
void | error_output_stream (ostream *) |
Setter for the errror output stream used by code of the comparison engine. By default the error output stream is a NULL pointer. More... | |
void | forbid_visiting_a_node_twice (bool f) |
This sets a flag that, if it's true, then during the traversing of a diff nodes tree each node is visited at most once. More... | |
void | forbid_visiting_a_node_twice_per_interface (bool) |
This function sets a flag os that if forbid_visiting_a_node_twice() returns true, then each time the node visitor starts visiting a new interface, it resets the memory the systems has about already visited node. More... | |
void | forget_visited_diffs () |
Unmark all the diff nodes that were marked as being traversed. More... | |
diff_category | get_allowed_category () const |
Getter for the bitmap that represents the set of categories that the user wants to see reported. More... | |
diff_sptr | get_canonical_diff_for (const diff_sptr d) const |
Getter for the canonical diff node for the diff represented by the two subjects of a given diff node. More... | |
diff_sptr | get_canonical_diff_for (const type_or_decl_base_sptr first, const type_or_decl_base_sptr second) const |
Getter for the canonical diff node for the diff represented by their two subjects. More... | |
const corpus_diff_sptr & | get_corpus_diff () const |
Get the corpus diff for the current context. More... | |
corpus_sptr | get_first_corpus () const |
Getter for the first corpus of the corpus diff of the current context. More... | |
const diff * | get_last_visited_diff_of_class_of_equivalence (const diff *) |
reporter_base_sptr | get_reporter () const |
Getter of the reporter to be used in this context. More... | |
corpus_sptr | get_second_corpus () const |
Getter for the second corpus of the corpus diff of the current context. More... | |
void | initialize_canonical_diff (const diff_sptr diff) |
Set the canonical diff node property of a given diff node appropriately. More... | |
void | keep_diff_alive (diff_sptr &) |
Add a diff node to the set of diff nodes that are kept alive for the life time of the current instance of diff_context. More... | |
void | mark_diff_as_visited (const diff *) |
Mark a diff node as traversed by a traversing algorithm. More... | |
void | mark_last_diff_visited_per_class_of_equivalence (const diff *) |
void | maybe_apply_filters (corpus_diff_sptr diff) |
Apply the diff filters to the diff nodes of a corpus_diff instance. More... | |
void | maybe_apply_filters (diff_sptr diff) |
Apply the diff filters to a given diff sub-tree. More... | |
const suppr::suppressions_type & | negated_suppressions () const |
Getter of the negated suppression specifications that are comprised in the general vector of suppression specifications returned by diff_context::suppressions(). More... | |
bool | perform_change_categorization () const |
Test if it's requested to perform diff node categorization. More... | |
void | perform_change_categorization (bool) |
Request change categorization or not. More... | |
void | set_allowed_category (diff_category c) |
Setter for the bitmap that represents the set of categories that the user wants to see reported. More... | |
void | set_corpus_diff (const corpus_diff_sptr &) |
Set the corpus diff relevant to this context. More... | |
void | set_reporter (reporter_base_sptr &) |
Setter of the reporter to be used in this context. More... | |
bool | show_added_fns () const |
void | show_added_fns (bool f) |
Set a flag saying to show the added functions. More... | |
bool | show_added_symbols_unreferenced_by_debug_info () const |
Getter for the flag that indicates if symbols not referenced by any debug info and that got added are to be reported about. More... | |
void | show_added_symbols_unreferenced_by_debug_info (bool f) |
Setter for the flag that indicates if symbols not referenced by any debug info and that got added are to be reported about. More... | |
bool | show_added_vars () const |
void | show_added_vars (bool f) |
Set a flag saying to show the added variables. More... | |
bool | show_architecture_change () const |
Getter for the property that says if the comparison module should show the architecture changes in its report. More... | |
void | show_architecture_change (bool f) |
Setter for the property that says if the comparison module should show the architecture changes in its report. More... | |
bool | show_changed_fns () const |
void | show_changed_fns (bool f) |
Set a flag saying to show the changed functions. More... | |
bool | show_changed_vars () const |
void | show_changed_vars (bool f) |
Set a flag saying to show the changed variables. More... | |
bool | show_deleted_fns () const |
void | show_deleted_fns (bool f) |
Set a flag saying to show the deleted functions. More... | |
bool | show_deleted_vars () const |
void | show_deleted_vars (bool f) |
Set a flag saying to show the deleted variables. More... | |
bool | show_hex_values () const |
Get the flag that indicates if the diff reports using this context should show sizes and offsets in an hexadecimal base or not. If not, then they are to be shown in a decimal base. More... | |
void | show_hex_values (bool f) |
Set the flag that indicates if diff reports using this context should show sizes and offsets in an hexadecimal base or not. If not, then they are to be shown in a decimal base. More... | |
bool | show_impacted_interfaces () const |
Getter of the flag that indicates if the leaf reporter should display a summary of the interfaces impacted by a given leaf change or not. More... | |
void | show_impacted_interfaces (bool f) |
Setter of the flag that indicates if the leaf reporter should display a summary of the interfaces impacted by a given leaf change or not. More... | |
bool | show_leaf_changes_only () const |
Get the flag that indicates if the diff using this context should show only leaf changes or not. More... | |
void | show_leaf_changes_only (bool f) |
Set the flag that indicates if the diff using this context should show only leaf changes or not. More... | |
bool | show_linkage_names () const |
void | show_linkage_names (bool f) |
bool | show_locs () const |
void | show_locs (bool f) |
Set a flag saying to show location information. More... | |
bool | show_offsets_sizes_in_bits () const |
Get the flag that indicates if diff reports using this context should show sizes and offsets in bits, rather than bytes. More... | |
void | show_offsets_sizes_in_bits (bool f) |
Set the flag that indicates if diff reports using this context should show sizes and offsets in bits, rather than bytes. More... | |
bool | show_redundant_changes () const |
A getter for the flag that says if we should report about functions or variables diff nodes that have *exclusively* redundant diff tree children nodes. More... | |
void | show_redundant_changes (bool f) |
A setter for the flag that says if we should report about functions or variables diff nodes that have *exclusively* redundant diff tree children nodes. More... | |
void | show_relative_offset_changes (bool f) |
Set a flag saying if offset changes should be reported in a relative way. That is, if the report should say how of many bits a class/struct data member did move. More... | |
bool | show_relative_offset_changes (void) |
Get the flag saying if offset changes should be reported in a relative way. That is, if the report should say how of many bits a class/struct data member did move. More... | |
bool | show_soname_change () const |
Getter for the property that says if the comparison module should show the soname changes in its report. More... | |
void | show_soname_change (bool f) |
Setter for the property that says if the comparison module should show the soname changes in its report. More... | |
bool | show_stats_only () const |
Test if the comparison module should only show the diff stats. More... | |
void | show_stats_only (bool f) |
Set a flag saying if the comparison module should only show the diff stats. More... | |
bool | show_symbols_unreferenced_by_debug_info () const |
Getter for the flag that indicates if symbols not referenced by any debug info are to be compared and reported about. More... | |
void | show_symbols_unreferenced_by_debug_info (bool f) |
Setter for the flag that indicates if symbols not referenced by any debug info are to be compared and reported about. More... | |
bool | show_unreachable_types () |
Getter for the flag that indicates if changes on types unreachable from global functions and variables are to be reported. More... | |
void | show_unreachable_types (bool f) |
Setter for the flag that indicates if changes on types unreachable from global functions and variables are to be reported. More... | |
suppr::suppressions_type & | suppressions () |
Getter for the vector of suppressions that specify which diff node reports should be dropped on the floor. More... | |
const suppr::suppressions_type & | suppressions () const |
Getter for the vector of suppressions that specify which diff node reports should be dropped on the floor. More... | |
void | switch_categories_off (diff_category c) |
Setter for the bitmap that represents the set of categories that the user wants to see reported. More... | |
void | switch_categories_on (diff_category c) |
Setter for the bitmap that represents the set of categories that the user wants to see reported. More... | |
bool | visiting_a_node_twice_is_forbidden () const |
Return a flag that, if true, then during the traversing of a diff nodes tree each node is visited at most once. More... | |
bool | visiting_a_node_twice_is_forbidden_per_interface () const |
Return a flag that, if true, then during the traversing of a diff nodes tree each node is visited at most once, while visiting the diff tree underneath a given interface (public function or variable). Each time a new interface is visited, the nodes visited while visiting previous interfaces can be visited again. More... | |
Friends | |
class_diff_sptr | compute_diff (const class_decl_sptr first, const class_decl_sptr second, diff_context_sptr ctxt) |
Compute the set of changes between two instances of class_decl. More... | |
The context of the diff. This type holds various bits of information that is going to be used throughout the diffing of two entities and the reporting that follows.
Definition at line 613 of file abg-comparison.h.
void add_diff_filter | ( | filtering::filter_base_sptr | f | ) |
Setter for the diff filters to apply to a given diff sub-tree.
f | the new diff filter to add to the vector of diff filters to apply to diff sub-trees. |
Definition at line 1367 of file abg-comparison.cc.
void add_suppression | ( | const suppr::suppression_sptr | suppr | ) |
Add a new suppression specification that specifies which diff node reports should be dropped on the floor.
suppr | the new suppression specification to add to the existing set of suppressions specifications of the diff context. |
Definition at line 1524 of file abg-comparison.cc.
void add_suppressions | ( | const suppr::suppressions_type & | supprs | ) |
Add new suppression specifications that specify which diff node reports should be dropped on the floor.
supprs | the new suppression specifications to add to the existing set of suppression specifications of the diff context. |
Definition at line 1539 of file abg-comparison.cc.
ostream * default_output_stream | ( | ) |
Getter for the default output stream used by code of the comparison engine. By default the default output stream is a NULL pointer.
Definition at line 1892 of file abg-comparison.cc.
void default_output_stream | ( | ostream * | o | ) |
Setter for the default output stream used by code of the comparison engine. By default the default output stream is a NULL pointer.
o | a pointer to the default output stream. |
Definition at line 1883 of file abg-comparison.cc.
const filtering::filters & diff_filters | ( | ) | const |
Getter for the diff tree nodes filters to apply to diff sub-trees.
Definition at line 1359 of file abg-comparison.cc.
Test if a diff node has been traversed.
d | the diff node to consider. |
d
is redundant. Definition at line 1260 of file abg-comparison.cc.
Test if a diff node has been traversed.
d | the diff node to consider. |
d
is redundant. Definition at line 1279 of file abg-comparison.cc.
const suppr::suppressions_type & direct_suppressions | ( | ) | const |
Getter of the direct suppression specification (those that are not negated) comprised in the general vector of suppression specifications returned by diff_context::suppression().
Note that the first invocation of this function scans the vector returned by diff_context::suppressions() and caches the direct suppressions from there.
Subsequent invocations of this function just return the cached direct suppressions.
Definition at line 1507 of file abg-comparison.cc.
void do_dump_diff_tree | ( | const corpus_diff_sptr | d | ) | const |
Emit a textual representation of a corpus_diff tree to the error output stream of the current context, for debugging purposes.
d | the corpus_diff tree to serialize to the error output associated to the current instance of diff_context. |
Definition at line 1947 of file abg-comparison.cc.
void do_dump_diff_tree | ( | const diff_sptr | d | ) | const |
Emit a textual representation of a diff tree to the error output stream of the current context, for debugging purposes.
d | the diff tree to serialize to the error output associated to the current instance of diff_context. |
Definition at line 1935 of file abg-comparison.cc.
bool do_log | ( | ) | const |
Test if logging was requested.
Definition at line 934 of file abg-comparison.cc.
void do_log | ( | bool | f | ) |
bool dump_diff_tree | ( | ) | const |
Test if the comparison engine should dump the diff tree for the changed functions and variables it has.
Definition at line 1917 of file abg-comparison.cc.
void dump_diff_tree | ( | bool | f | ) |
Set if the comparison engine should dump the diff tree for the changed functions and variables it has.
f | true if after the comparison, the engine should dump the diff tree for the changed functions and variables it has. |
Definition at line 1926 of file abg-comparison.cc.
ostream * error_output_stream | ( | ) | const |
Getter for the errror output stream used by code of the comparison engine. By default the error output stream is a NULL pointer.
Definition at line 1908 of file abg-comparison.cc.
void error_output_stream | ( | ostream * | o | ) |
Setter for the errror output stream used by code of the comparison engine. By default the error output stream is a NULL pointer.
o | a pointer to the error output stream. |
Definition at line 1900 of file abg-comparison.cc.
void forbid_visiting_a_node_twice | ( | bool | f | ) |
This sets a flag that, if it's true, then during the traversing of a diff nodes tree each node is visited at most once.
f | if true then during the traversing of a diff nodes tree each node is visited at most once. |
Definition at line 1318 of file abg-comparison.cc.
void forbid_visiting_a_node_twice_per_interface | ( | bool | f | ) |
This function sets a flag os that if forbid_visiting_a_node_twice() returns true, then each time the node visitor starts visiting a new interface, it resets the memory the systems has about already visited node.
f | the flag to set. |
Definition at line 1328 of file abg-comparison.cc.
void forget_visited_diffs | ( | ) |
Unmark all the diff nodes that were marked as being traversed.
Definition at line 1308 of file abg-comparison.cc.
diff_category get_allowed_category | ( | ) | const |
Getter for the bitmap that represents the set of categories that the user wants to see reported.
Definition at line 1063 of file abg-comparison.cc.
Getter for the canonical diff node for the diff represented by the two subjects of a given diff node.
d | the diff node to get the canonical node for. |
d
. If no canonical diff node was registered for these subjects, then a nil node is returned. Definition at line 1163 of file abg-comparison.cc.
diff_sptr get_canonical_diff_for | ( | const type_or_decl_base_sptr | first, |
const type_or_decl_base_sptr | second | ||
) | const |
Getter for the canonical diff node for the diff represented by their two subjects.
first | the first subject of the diff. |
second | the second subject of the diff. |
first
and second
. If no canonical diff node was registered for these subjects, then a nil node is returned. Definition at line 1150 of file abg-comparison.cc.
const corpus_diff_sptr & get_corpus_diff | ( | ) | const |
Get the corpus diff for the current context.
Definition at line 955 of file abg-comparison.cc.
corpus_sptr get_first_corpus | ( | ) | const |
Getter for the first corpus of the corpus diff of the current context.
Definition at line 963 of file abg-comparison.cc.
reporter_base_sptr get_reporter | ( | ) | const |
Getter of the reporter to be used in this context.
Definition at line 987 of file abg-comparison.cc.
corpus_sptr get_second_corpus | ( | ) | const |
Getter for the second corpus of the corpus diff of the current context.
Definition at line 976 of file abg-comparison.cc.
void initialize_canonical_diff | ( | const diff_sptr | diff | ) |
Set the canonical diff node property of a given diff node appropriately.
For a given diff node that has no canonical diff node, retrieve the canonical diff node (by looking at its diff subjects and at the current context) and set the canonical diff node property of the diff node to that canonical diff node. If no canonical diff node has been registered to the diff context for the subjects of the diff node then, register the canonical diff node as being the diff node itself; and set its canonical diff node property as such. Otherwise, if the diff node already has a canonical diff node, do nothing.
diff | the diff node to initialize the canonical diff node property for. |
Definition at line 1230 of file abg-comparison.cc.
void keep_diff_alive | ( | diff_sptr & | d | ) |
Add a diff node to the set of diff nodes that are kept alive for the life time of the current instance of diff_context.
Note that diff added to the diff cache are kept alive as well, and don't need to be passed to this function to be kept alive.
d | the diff node to be kept alive during the life time of the current instance of diff_context. |
Definition at line 1251 of file abg-comparison.cc.
void mark_diff_as_visited | ( | const diff * | d | ) |
Mark a diff node as traversed by a traversing algorithm.
Actually, it's the canonical diff of this node that is marked as traversed.
Subsequent invocations of diff_has_been_visited() on the diff node will yield true.
Definition at line 1293 of file abg-comparison.cc.
void maybe_apply_filters | ( | corpus_diff_sptr | diff | ) |
Apply the diff filters to the diff nodes of a corpus_diff instance.
If the current context is instructed to filter out some categories then this function walks the diff tree and categorizes its nodes by using the filters held by the context.
diff | the corpus diff to apply the filters to. |
Definition at line 1433 of file abg-comparison.cc.
void maybe_apply_filters | ( | diff_sptr | diff | ) |
Apply the diff filters to a given diff sub-tree.
If the current context is instructed to filter out some categories then this function walks the given sub-tree and categorizes its nodes by using the filters held by the context.
diff | the diff sub-tree to apply the filters to. |
Definition at line 1378 of file abg-comparison.cc.
const suppr::suppressions_type & negated_suppressions | ( | ) | const |
Getter of the negated suppression specifications that are comprised in the general vector of suppression specifications returned by diff_context::suppressions().
Note that the first invocation of this function scans the vector returned by diff_context::suppressions() and caches the negated suppressions from there.
Subsequent invocations of this function just return the cached negated suppressions.
Definition at line 1484 of file abg-comparison.cc.
bool perform_change_categorization | ( | ) | const |
Test if it's requested to perform diff node categorization.
Definition at line 1550 of file abg-comparison.cc.
void perform_change_categorization | ( | bool | f | ) |
Request change categorization or not.
f | true iff change categorization is requested. |
Definition at line 1557 of file abg-comparison.cc.
void set_allowed_category | ( | diff_category | c | ) |
Setter for the bitmap that represents the set of categories that the user wants to see reported.
c | a bitmap that represents the set of categories that the user wants to see represented. |
Definition at line 1072 of file abg-comparison.cc.
void set_corpus_diff | ( | const corpus_diff_sptr & | d | ) |
Set the corpus diff relevant to this context.
d | the corpus_diff we are interested in. |
Definition at line 948 of file abg-comparison.cc.
void set_reporter | ( | reporter_base_sptr & | r | ) |
Setter of the reporter to be used in this context.
r | the reporter to be used in this context. |
Definition at line 1004 of file abg-comparison.cc.
bool show_added_fns | ( | ) | const |
Definition at line 1723 of file abg-comparison.cc.
void show_added_fns | ( | bool | f | ) |
Set a flag saying to show the added functions.
f | true to show the added functions. |
Definition at line 1717 of file abg-comparison.cc.
bool show_added_symbols_unreferenced_by_debug_info | ( | ) | const |
Getter for the flag that indicates if symbols not referenced by any debug info and that got added are to be reported about.
Definition at line 1825 of file abg-comparison.cc.
void show_added_symbols_unreferenced_by_debug_info | ( | bool | f | ) |
Setter for the flag that indicates if symbols not referenced by any debug info and that got added are to be reported about.
f | the new flag that says if symbols not referenced by any debug info and that got added are to be reported about. |
Definition at line 1834 of file abg-comparison.cc.
bool show_added_vars | ( | ) | const |
Definition at line 1761 of file abg-comparison.cc.
void show_added_vars | ( | bool | f | ) |
Set a flag saying to show the added variables.
f | true to show the added variables. |
Definition at line 1755 of file abg-comparison.cc.
bool show_architecture_change | ( | ) | const |
Getter for the property that says if the comparison module should show the architecture changes in its report.
Definition at line 1685 of file abg-comparison.cc.
void show_architecture_change | ( | bool | f | ) |
Setter for the property that says if the comparison module should show the architecture changes in its report.
f | the new value of the property. |
Definition at line 1677 of file abg-comparison.cc.
bool show_changed_fns | ( | ) | const |
Definition at line 1710 of file abg-comparison.cc.
void show_changed_fns | ( | bool | f | ) |
Set a flag saying to show the changed functions.
f | true to show the changed functions. |
Definition at line 1705 of file abg-comparison.cc.
bool show_changed_vars | ( | ) | const |
Definition at line 1748 of file abg-comparison.cc.
void show_changed_vars | ( | bool | f | ) |
Set a flag saying to show the changed variables.
f | true to show the changed variables. |
Definition at line 1743 of file abg-comparison.cc.
bool show_deleted_fns | ( | ) | const |
Definition at line 1698 of file abg-comparison.cc.
void show_deleted_fns | ( | bool | f | ) |
Set a flag saying to show the deleted functions.
f | true to show deleted functions. |
Definition at line 1692 of file abg-comparison.cc.
bool show_deleted_vars | ( | ) | const |
Definition at line 1736 of file abg-comparison.cc.
void show_deleted_vars | ( | bool | f | ) |
Set a flag saying to show the deleted variables.
f | true to show the deleted variables. |
Definition at line 1730 of file abg-comparison.cc.
bool show_hex_values | ( | ) | const |
Get the flag that indicates if the diff reports using this context should show sizes and offsets in an hexadecimal base or not. If not, then they are to be shown in a decimal base.
Definition at line 1591 of file abg-comparison.cc.
void show_hex_values | ( | bool | f | ) |
Set the flag that indicates if diff reports using this context should show sizes and offsets in an hexadecimal base or not. If not, then they are to be shown in a decimal base.
f | if true then sizes and offsets are to be shown in an hexadecimal base. |
Definition at line 1601 of file abg-comparison.cc.
bool show_impacted_interfaces | ( | ) | const |
Getter of the flag that indicates if the leaf reporter should display a summary of the interfaces impacted by a given leaf change or not.
Definition at line 1863 of file abg-comparison.cc.
void show_impacted_interfaces | ( | bool | f | ) |
Setter of the flag that indicates if the leaf reporter should display a summary of the interfaces impacted by a given leaf change or not.
f | the new value of the flag that indicates if the leaf reporter should display a summary of the interfaces impacted by a given leaf change or not. |
Definition at line 1874 of file abg-comparison.cc.
bool show_leaf_changes_only | ( | ) | const |
Get the flag that indicates if the diff using this context should show only leaf changes or not.
Definition at line 1581 of file abg-comparison.cc.
void show_leaf_changes_only | ( | bool | f | ) |
Set the flag that indicates if the diff using this context should show only leaf changes or not.
f | the new value of the flag that indicates if the diff using this context should show only leaf changes or not. |
Definition at line 1566 of file abg-comparison.cc.
bool show_locs | ( | ) | const |
Definition at line 1782 of file abg-comparison.cc.
void show_locs | ( | bool | f | ) |
Set a flag saying to show location information.
f | true to show location information. |
Definition at line 1776 of file abg-comparison.cc.
bool show_offsets_sizes_in_bits | ( | ) | const |
Get the flag that indicates if diff reports using this context should show sizes and offsets in bits, rather than bytes.
Definition at line 1610 of file abg-comparison.cc.
void show_offsets_sizes_in_bits | ( | bool | f | ) |
Set the flag that indicates if diff reports using this context should show sizes and offsets in bits, rather than bytes.
f | if true then sizes and offsets are to be shown in bits. Otherwise they are to be shown in bytes. |
Definition at line 1619 of file abg-comparison.cc.
bool show_redundant_changes | ( | ) | const |
A getter for the flag that says if we should report about functions or variables diff nodes that have *exclusively* redundant diff tree children nodes.
Definition at line 1791 of file abg-comparison.cc.
void show_redundant_changes | ( | bool | f | ) |
A setter for the flag that says if we should report about functions or variables diff nodes that have *exclusively* redundant diff tree children nodes.
f | the flag to set. |
Definition at line 1800 of file abg-comparison.cc.
void show_relative_offset_changes | ( | bool | f | ) |
Set a flag saying if offset changes should be reported in a relative way. That is, if the report should say how of many bits a class/struct data member did move.
f | the new boolean value of the flag. |
Definition at line 1628 of file abg-comparison.cc.
bool show_relative_offset_changes | ( | void | ) |
Get the flag saying if offset changes should be reported in a relative way. That is, if the report should say how of many bits a class/struct data member did move.
Definition at line 1637 of file abg-comparison.cc.
bool show_soname_change | ( | ) | const |
Getter for the property that says if the comparison module should show the soname changes in its report.
Definition at line 1669 of file abg-comparison.cc.
void show_soname_change | ( | bool | f | ) |
Setter for the property that says if the comparison module should show the soname changes in its report.
f | the new value of the property. |
Definition at line 1661 of file abg-comparison.cc.
bool show_stats_only | ( | ) | const |
Test if the comparison module should only show the diff stats.
Definition at line 1653 of file abg-comparison.cc.
void show_stats_only | ( | bool | f | ) |
Set a flag saying if the comparison module should only show the diff stats.
f | the flag to set. |
Definition at line 1645 of file abg-comparison.cc.
bool show_symbols_unreferenced_by_debug_info | ( | ) | const |
Getter for the flag that indicates if symbols not referenced by any debug info are to be compared and reported about.
Definition at line 1808 of file abg-comparison.cc.
void show_symbols_unreferenced_by_debug_info | ( | bool | f | ) |
Setter for the flag that indicates if symbols not referenced by any debug info are to be compared and reported about.
f | the new flag to set. |
Definition at line 1816 of file abg-comparison.cc.
bool show_unreachable_types | ( | ) |
Getter for the flag that indicates if changes on types unreachable from global functions and variables are to be reported.
Definition at line 1852 of file abg-comparison.cc.
void show_unreachable_types | ( | bool | f | ) |
Setter for the flag that indicates if changes on types unreachable from global functions and variables are to be reported.
f | if true, then changes on types unreachable from global functions and variables are to be reported. |
Definition at line 1843 of file abg-comparison.cc.
suppr::suppressions_type & suppressions | ( | ) |
Getter for the vector of suppressions that specify which diff node reports should be dropped on the floor.
Definition at line 1461 of file abg-comparison.cc.
const suppressions_type & suppressions | ( | ) | const |
Getter for the vector of suppressions that specify which diff node reports should be dropped on the floor.
Definition at line 1453 of file abg-comparison.cc.
void switch_categories_off | ( | diff_category | c | ) |
Setter for the bitmap that represents the set of categories that the user wants to see reported.
This function actually unsets bits from the current categories.
c | a bitmap that represents the set of categories to unset from the current categories. |
Definition at line 1096 of file abg-comparison.cc.
void switch_categories_on | ( | diff_category | c | ) |
Setter for the bitmap that represents the set of categories that the user wants to see reported.
This function perform a bitwise or between the new set of categories and the current ones, and then sets the current categories to the result of the or.
c | a bitmap that represents the set of categories that the user wants to see represented. |
Definition at line 1085 of file abg-comparison.cc.
bool visiting_a_node_twice_is_forbidden | ( | ) | const |
Return a flag that, if true, then during the traversing of a diff nodes tree each node is visited at most once.
Definition at line 1336 of file abg-comparison.cc.
bool visiting_a_node_twice_is_forbidden_per_interface | ( | ) | const |
Return a flag that, if true, then during the traversing of a diff nodes tree each node is visited at most once, while visiting the diff tree underneath a given interface (public function or variable). Each time a new interface is visited, the nodes visited while visiting previous interfaces can be visited again.
Definition at line 1349 of file abg-comparison.cc.
|
friend |
Compute the set of changes between two instances of class_decl.
Note that the two types must have been created in the same environment, otherwise, this function aborts.
first | the first class_decl to consider. |
second | the second class_decl to consider. |
ctxt | the diff context to use. |
Definition at line 6070 of file abg-comparison.cc.