From 1c2fb173ea3b674207badc721556ad72962b266e Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sun, 2 Aug 2026 17:05:34 +0200 Subject: Check array property accessbility at compile time --- rakelib/gcc.rake | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'rakelib') 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 -- cgit v1.2.3