add macro substitution awareness to unused function inspection

add macro substitution awareness to remove function quickfix and
export function quickfix