diff --git a/libcodechecker/analyze/analyzers/analyzer_clang_tidy.py b/libcodechecker/analyze/analyzers/analyzer_clang_tidy.py index 40680c62b1..b42d746c85 100644 --- a/libcodechecker/analyze/analyzers/analyzer_clang_tidy.py +++ b/libcodechecker/analyze/analyzers/analyzer_clang_tidy.py @@ -102,11 +102,11 @@ def construct_analyzer_cmd(self, res_handler): analyzer_cmd.extend(self.buildaction.analyzer_options) - analyzer_cmd.extend(self.buildaction.compiler_includes) - extend_analyzer_cmd_with_resource_dir(analyzer_cmd, config.compiler_resource_dir) + analyzer_cmd.extend(self.buildaction.compiler_includes) + return analyzer_cmd except Exception as ex: diff --git a/libcodechecker/analyze/analyzers/analyzer_clangsa.py b/libcodechecker/analyze/analyzers/analyzer_clangsa.py index a8e9232c8d..385db65939 100644 --- a/libcodechecker/analyze/analyzers/analyzer_clangsa.py +++ b/libcodechecker/analyze/analyzers/analyzer_clangsa.py @@ -146,11 +146,11 @@ def construct_analyzer_cmd(self, result_handler): analyzer_cmd.extend(self.buildaction.analyzer_options) - analyzer_cmd.extend(self.buildaction.compiler_includes) - extend_analyzer_cmd_with_resource_dir(analyzer_cmd, config.compiler_resource_dir) + analyzer_cmd.extend(self.buildaction.compiler_includes) + analyzer_cmd.append(self.source_file) return analyzer_cmd diff --git a/libcodechecker/analyze/analyzers/ctu_triple_arch.py b/libcodechecker/analyze/analyzers/ctu_triple_arch.py index 2023ee2210..41c2571e87 100644 --- a/libcodechecker/analyze/analyzers/ctu_triple_arch.py +++ b/libcodechecker/analyze/analyzers/ctu_triple_arch.py @@ -19,9 +19,9 @@ def get_compile_command(action, config, source='', output=''): for other operations. """ cmd = [config.analyzer_binary] - cmd.extend(action.compiler_includes) extend_analyzer_cmd_with_resource_dir(cmd, config.compiler_resource_dir) + cmd.extend(action.compiler_includes) cmd.append('-c') cmd.extend(['-x', action.lang]) cmd.append(config.analyzer_extra_arguments)