[llvm-bugs] [Bug 51027] New: False-positives from scan-build clang 12
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jul 8 08:30:18 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=51027
Bug ID: 51027
Summary: False-positives from scan-build clang 12
Product: clang
Version: 12.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C
Assignee: unassignedclangbugs at nondot.org
Reporter: jorge_goias at hotmail.com
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
I used scan-build with clang 12 and I believe that has a lots of
"false-positive".
The problem is with operator &.
Simplified example:
int main(void) {
int v;
foo(&v);
printf("v=%d\n", v); /* clang reports uninitialized var used here */
}
Of course, that code analyzed is more complex.
But I think that code that analyze the operator &, need be revised.
thanks.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210708/95317490/attachment.html>
More information about the llvm-bugs
mailing list