aboutsummaryrefslogtreecommitdiff
path: root/rakelib
diff options
context:
space:
mode:
Diffstat (limited to 'rakelib')
-rw-r--r--rakelib/gcc.rake7
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