Devin Coughlin
Devin Coughlin
This is by design. The static analyzer trusts asserts (in verification terms, it treats an assert like an "assume"). This means that rather than warning when it detects an assertion...
A proposed patch addressing the false positive is up for review at https://reviews.llvm.org/D27773
I looked into this a bit using Alexander's reproducer and the gtest sources on GitHub. There are two separate confounders to reasoning about AssertionResult. (1) As Alexander notes, the implementation...
Thanks for the reproducer!
It looks like this is happening because the configure script requires GCC 4.7+ and clang only claims to be compatible (via the preprocessor defines in InitPreprocessor.cpp) with GCC 4.2.1. I...
> > Did you do a 'make clean' between the two runs of scan-build? > Makefile is able to detect changes in source files, so I argue that > scan-build...
Leslie, Did you do a 'make clean' between the two runs of scan-build? scan-build interposes the build system to analyze files as they are compiled. This means that if you...
Alex: Your test looks like it is crashing from the same root cause -- no need to file a new bug.
This is tracked internally by rdar://problem/29938368
Note: Miklos thinks this was introduced by r289618.