diff options
Diffstat (limited to 'compiler_wrapper/command.go')
-rw-r--r-- | compiler_wrapper/command.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/compiler_wrapper/command.go b/compiler_wrapper/command.go index 6c5beae1..26f85568 100644 --- a/compiler_wrapper/command.go +++ b/compiler_wrapper/command.go @@ -91,7 +91,12 @@ func getAbsCmdPath(env env, cmd *command) string { func newCommandBuilder(env env, cfg *config, cmd *command) (*commandBuilder, error) { basename := filepath.Base(cmd.Path) - nameParts := strings.Split(basename, "-") + var nameParts []string + if basename == "clang-tidy" { + nameParts = []string{basename} + } else { + nameParts = strings.Split(basename, "-") + } target := builderTarget{} switch len(nameParts) { case 1: |