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 609 of file abg-comparison.h.
diff_context | ( | ) |
Definition at line 954 of file abg-comparison.cc.
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 1409 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 1563 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 1578 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 1931 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 1922 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 1401 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 1302 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 1321 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 1546 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 1986 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 1974 of file abg-comparison.cc.
bool do_log | ( | ) | const |
Test if logging was requested.
Definition at line 976 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 1956 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 1965 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 1947 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 1939 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 1360 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 1370 of file abg-comparison.cc.
void forget_visited_diffs | ( | ) |
Unmark all the diff nodes that were marked as being traversed.
Definition at line 1350 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 1105 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 1205 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 1192 of file abg-comparison.cc.
const corpus_diff_sptr & get_corpus_diff | ( | ) | const |
Get the corpus diff for the current context.
Definition at line 997 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 1005 of file abg-comparison.cc.
reporter_base_sptr get_reporter | ( | ) | const |
Getter of the reporter to be used in this context.
Definition at line 1029 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 1018 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 1272 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 1293 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 1335 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 1472 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 1420 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 1523 of file abg-comparison.cc.
bool perform_change_categorization | ( | ) | const |
Test if it's requested to perform diff node categorization.
Definition at line 1589 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 1596 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 1114 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 990 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 1046 of file abg-comparison.cc.
bool show_added_fns | ( | ) | const |
Definition at line 1762 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 1756 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 1864 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 1873 of file abg-comparison.cc.
bool show_added_vars | ( | ) | const |
Definition at line 1800 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 1794 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 1724 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 1716 of file abg-comparison.cc.
bool show_changed_fns | ( | ) | const |
Definition at line 1749 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 1744 of file abg-comparison.cc.
bool show_changed_vars | ( | ) | const |
Definition at line 1787 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 1782 of file abg-comparison.cc.
bool show_deleted_fns | ( | ) | const |
Definition at line 1737 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 1731 of file abg-comparison.cc.
bool show_deleted_vars | ( | ) | const |
Definition at line 1775 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 1769 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 1630 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 1640 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 1902 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 1913 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 1620 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 1605 of file abg-comparison.cc.
bool show_linkage_names | ( | ) | const |
Definition at line 1804 of file abg-comparison.cc.
void show_linkage_names | ( | bool | f | ) |
Definition at line 1808 of file abg-comparison.cc.
bool show_locs | ( | ) | const |
Definition at line 1821 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 1815 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 1649 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 1658 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 1830 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 1839 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 1667 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 1676 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 1708 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 1700 of file abg-comparison.cc.
bool show_stats_only | ( | ) | const |
Test if the comparison module should only show the diff stats.
Definition at line 1692 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 1684 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 1847 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 1855 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 1891 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 1882 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 1500 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 1492 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 1138 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 1127 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 1378 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 1391 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 6373 of file abg-comparison.cc.