NinaRanns / gcc

GNU General Public License v2.0
0 stars 0 forks source link

add mapping from a wrapper function to the checked function #10

Open NinaRanns opened 1 month ago

NinaRanns commented 1 month ago

When building a source location for the contract_violation object, we do DECL_ORIGIN (current_function_decl). For wrappers, this gives the invented wrapper name. We need to add a way of recognising wrapper functions (DECL_IS_WRAPPER_FN_P(NODE)) and add a mapping from the wrapper tot he checked function name.