diff options
| author | ruki <[email protected]> | 2024-09-09 23:58:40 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-09-09 23:58:40 +0800 |
| commit | d2f67fb9a524fb9d78a54a7998252ec72ebe4583 (patch) | |
| tree | c8e992bee96ca4a9cd86c772375e850be4f62f52 | |
| parent | f8a5e10a581b3314773e3e43fde892c2d5dc0325 (diff) | |
fix sourcebatches #5584
| -rw-r--r-- | xmake/modules/private/check/checkers/clang/tidy.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/check/checkers/clang/tidy.lua b/xmake/modules/private/check/checkers/clang/tidy.lua index 975693f0d..ff7bda432 100644 --- a/xmake/modules/private/check/checkers/clang/tidy.lua +++ b/xmake/modules/private/check/checkers/clang/tidy.lua @@ -70,7 +70,7 @@ end -- add sourcefiles in target function _add_target_files(sourcefiles, target) - for _, sourcebatch in pairs(sourcebatches) do + for _, sourcebatch in pairs(target:sourcebatches()) do -- we can only use rulename to filter them because sourcekind may be bound to multiple rules local rulename = sourcebatch.rulename if rulename == "c.build" or rulename == "c++.build" |
