diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-08-02 17:05:34 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-08-02 17:05:34 +0200 |
| commit | 1c2fb173ea3b674207badc721556ad72962b266e (patch) | |
| tree | 950b1d58b719f3302045e114eee35a426af8b0dd /rakelib/gcc.rake | |
| parent | c07c43bf911f62ad6363c024b3f81ceb4f95b16c (diff) | |
| download | elna-1c2fb173ea3b674207badc721556ad72962b266e.tar.gz | |
Check array property accessbility at compile time
Diffstat (limited to 'rakelib/gcc.rake')
| -rw-r--r-- | rakelib/gcc.rake | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/rakelib/gcc.rake b/rakelib/gcc.rake index abdeb6d..558c8a2 100644 --- a/rakelib/gcc.rake +++ b/rakelib/gcc.rake @@ -159,9 +159,10 @@ namespace :gcc do compile_db = Pathname.new 'compile_commands.json' raise "#{compile_db} is missing. Run: bear -- rake gcc:make" unless compile_db.exist? - sources = FileList['boot/*.cc', 'include/elna/boot/*.h'].exclude do |f| - f.include?('generated/') - end + sources = FileList['boot/*.cc', 'gcc/gcc/*.cc', 'include/elna/**/*.h'] + .reject do |file| + ['/elna1.', '/elna-spec.'].any? { |pattern| file.include? pattern } + end sh 'clang-tidy', '-p', compile_db.to_path, '--extra-arg=-w', '--warnings-as-errors=*', *sources end |
