diff options
Diffstat (limited to 'compiler_wrapper/clang_tidy_flag.go')
-rw-r--r-- | compiler_wrapper/clang_tidy_flag.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler_wrapper/clang_tidy_flag.go b/compiler_wrapper/clang_tidy_flag.go index 5bd67064..616ff47c 100644 --- a/compiler_wrapper/clang_tidy_flag.go +++ b/compiler_wrapper/clang_tidy_flag.go @@ -77,8 +77,10 @@ func runClangTidy(env env, clangCmd *command, cSrcFile string) error { EnvUpdates: clangCmd.EnvUpdates, } + // Note: We pass nil as stdin as we checked before that the compiler + // was invoked with a source file argument. exitCode, err := wrapSubprocessErrorWithSourceLoc(clangTidyCmd, - env.run(clangTidyCmd, env.stdout(), env.stderr())) + env.run(clangTidyCmd, nil, env.stdout(), env.stderr())) if err == nil && exitCode != 0 { // Note: We continue on purpose when clang-tidy fails // to maintain compatibility with the previous wrapper. |