http://llvm.org/bugs/show_bug.cgi?id=14963
Bug #: 14963
Summary: scan-build report errors on stdout and fails to set
exit code
Product: clang
Version: 3.2
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Static Analyzer
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
In the following command, scan-build reports an error on stdout (instead of
stderr) and fails to adjust $? to signal the problem.
% scan-build ./configure --prefix ~/usr && scan-build make -j2
scan-build: error: Cannot find an executable 'clang' relative to scan-build.
Consider using --use-analyzer to pick a version of 'clang' to use for static
analysis.
scan-build: error: Cannot find an executable 'clang' relative to scan-build.
Consider using --use-analyzer to pick a version of 'clang' to use for static
analysis.
% echo $?
0
I would expect (1) that the error is output on stderr, and (2) that $? is set
to a non-zero value so that the "scan-build make" is not even started.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs