Caller QN of the first raw-pass call to `callee`, or "" when there is none. */
| 7834 | |
| 7835 | /* Caller QN of the first raw-pass call to `callee`, or "" when there is none. */ |
| 7836 | static const char *c1_call_scope(CBMFileResult *r, const char *callee) { |
| 7837 | for (int i = 0; i < r->calls.count; i++) { |
| 7838 | const CBMCall *c = &r->calls.items[i]; |
| 7839 | if (c->callee_name && strcmp(c->callee_name, callee) == 0 && |
| 7840 | c->source_origin == CBM_SOURCE_ORIGIN_RAW) { |
| 7841 | return c->enclosing_func_qn ? c->enclosing_func_qn : ""; |
| 7842 | } |
| 7843 | } |
| 7844 | return ""; |
| 7845 | } |
| 7846 | |
| 7847 | /* Caller QN of the first C-LSP resolution whose callee QN ends in ".<leaf>". */ |
| 7848 | static const char *c1_lsp_caller(CBMFileResult *r, const char *leaf) { |