From 820e00c0bae11be1c06b8dc4d995b9029228b4a2 Mon Sep 17 00:00:00 2001 From: Rob1103 Date: Mon, 2 Jan 2023 16:02:41 +0100 Subject: [PATCH] added config files argument --- srcs/dependtool/static_analyser.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/srcs/dependtool/static_analyser.go b/srcs/dependtool/static_analyser.go index d465e7c..c54ae7f 100644 --- a/srcs/dependtool/static_analyser.go +++ b/srcs/dependtool/static_analyser.go @@ -209,7 +209,8 @@ func findSourcesFiles(workspace string) ([]string, error) { } ext := filepath.Ext(info.Name()) - if ext == ".c" || ext == ".cpp" { + if ext == ".c" || ext == ".cpp" || ext == ".cc" || ext == ".h" || ext == ".hpp" || + ext == ".hcc" { filenames = append(filenames, path) } return nil