mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Don't pass header files to Cppcheck
This commit is contained in:
@ -136,7 +136,10 @@ class CppcheckCheckTool(CheckToolBase):
|
||||
return fp.name
|
||||
|
||||
def _generate_src_file(self):
|
||||
return self._create_tmp_file("\n".join(self.get_project_src_files()))
|
||||
src_files = [
|
||||
f for f in self.get_project_src_files() if not f.endswith((".h", ".hpp"))
|
||||
]
|
||||
return self._create_tmp_file("\n".join(src_files))
|
||||
|
||||
def _generate_inc_file(self):
|
||||
return self._create_tmp_file("\n".join(self.cpp_includes))
|
||||
|
Reference in New Issue
Block a user