Skip to content

Commit 124d5ce

Browse files
committed
Fixes issue #57. Give out stdin for the cppcheck process on the console.
1 parent 0ca41c2 commit 124d5ce

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

com.googlecode.cppcheclipse.core/src/com/googlecode/cppcheclipse/core/command/AbstractCppcheckCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public abstract class AbstractCppcheckCommand {
3939

4040
private String binaryPath;
4141

42-
private final IConsole console;
42+
protected final IConsole console;
4343
private final String[] defaultArguments;
4444
private long startTime;
4545
private final Executor executor;

com.googlecode.cppcheclipse.core/src/com/googlecode/cppcheclipse/core/command/CppcheckCommand.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,12 @@ public void run(Checker checker, IProgressReporter progressReporter,
222222
filenames.add(FileUtils.relativizeFile(projectFolder, absoluteFile)
223223
.toString());
224224
}
225-
226225
// read filenames from stdin (separated by "\n")
227226
String input = Joiner.on("\n").join(filenames);
227+
console.println("=== Input stream for following process ===");
228+
console.println(input);
229+
console.println("=== End of input stream for process ==");
230+
228231
setProcessInputStream(new ByteArrayInputStream(input.getBytes(DEFAULT_CHARSET)));
229232
arguments.add("--file-list=-");
230233

0 commit comments

Comments
 (0)