[llvm-bugs] [Bug 46142] Assertion failed: R, file llvm\clang\lib\StaticAnalyzer\Checkers\WebKit\PtrTypesSemantics.cpp, line 64

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jun 3 21:53:21 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=46142

Zufu Liu <zufuliu at 163.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|FIXED                       |---
             Status|RESOLVED                    |REOPENED

--- Comment #14 from Zufu Liu <zufuliu at 163.com> ---
This seems not fixed, it works when source file is checked as C++, not C.

// test.c
struct Opaque;
struct Wrapper {
    const struct Opaque *opaque;
};

with clang-tidy built from ab6779bbd8f895153c4409e8f2c0ff26f33e1404

clang-tidy --checks=clang-analyzer-webkit.WebKitNoUncountedMemberChecker test.c
-- -xc++
// nothing

clang-tidy --checks=clang-analyzer-webkit.WebKitNoUncountedMemberChecker test.c
-- -xc
Assertion failed: R, file
H:\llvm\llvm\clang\lib\StaticAnalyzer\Checkers\WebKit\PtrTypesSemantics.cpp,
line 147

-- 
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/20200604/16837322/attachment.html>


More information about the llvm-bugs mailing list