diff options
| author | ruki <[email protected]> | 2023-02-03 22:34:12 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-02-03 22:34:12 +0800 |
| commit | d81daf1e42dcdbce27f5e833c1d8a749369295ee (patch) | |
| tree | d935e66eaf8244f49bbd501a93eae7d18fa2b5e4 /xmake/plugins/check/checkers/api/api_checker.lua | |
| parent | c3b0e85ebcc5583deaa87a7391b3dd09fa48ccf7 (diff) | |
show target sourceinfo
Diffstat (limited to 'xmake/plugins/check/checkers/api/api_checker.lua')
| -rw-r--r-- | xmake/plugins/check/checkers/api/api_checker.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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()) |
