From d81daf1e42dcdbce27f5e833c1d8a749369295ee Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 3 Feb 2023 22:34:12 +0800 Subject: show target sourceinfo --- xmake/plugins/check/checkers/api/api_checker.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/plugins/check/checkers/api/api_checker.lua') diff --git a/xmake/plugins/check/checkers/api/api_checker.lua b/xmake/plugins/check/checkers/api/api_checker.lua index 5ebd7094f..60bdeac8c 100644 --- a/xmake/plugins/check/checkers/api/api_checker.lua +++ b/xmake/plugins/check/checkers/api/api_checker.lua @@ -52,7 +52,7 @@ function _show(apiname, value, target, opt) local sourceinfo = target:sourceinfo(apiname, value) or {} local sourcetips = sourceinfo.file or "" if sourceinfo.line then - sourcetips = sourcetips .. ":" .. sourceinfo.line .. ": " + sourcetips = sourcetips .. ":" .. (sourceinfo.line or -1) .. ": " end if #sourcetips == 0 then sourcetips = string.format("target(%s)", target:name()) -- cgit v1.3.1