| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- New isDefined() function checks for deletedness
- isThisDeclarationADefinition checks for deletedness
- New doesThisDeclarationHaveABody() does what
isThisDeclarationADefinition() used to do
- The IsDeleted bit is not propagated across redeclarations
- isDeleted() now checks the canoncial declaration
- New isDeletedAsWritten() does what it says on the tin.
- isUserProvided() now correct (thanks Richard!)
This fixes the bug that we weren't catching
void foo() = delete;
void foo() {}
as being a redefinition.
llvm-svn: 131013
|
| |
|
|
|
|
| |
changes need to be made to properly support modeling of it since it potentially leaves strings non-null terminated.
llvm-svn: 130758
|
| |
|
|
|
|
| |
arguments to C++ constructors. This is a stop-gap measure for Objective-C++ code that uses smart pointers to manage reference counts.
llvm-svn: 130711
|
| |
|
|
|
|
| |
creating substrings if necessary and calling the appropriate StringRef::compare/compare_lower().
llvm-svn: 130708
|
| |
|
|
| |
llvm-svn: 130598
|
| |
|
|
|
|
| |
bounded version of StringRef::compare() because bounded version of StringRef::compare() is going to be removed.
llvm-svn: 130425
|
| |
|
|
|
|
|
|
| |
a cast was successful. If the value of an argument was unknown, the cast would result in a NULL pointer which was later being dereferenced.
This fixes Bugzilla #9806.
llvm-svn: 130422
|
| |
|
|
| |
llvm-svn: 130398
|
| |
|
|
|
|
|
|
| |
a size of 0 is equivalent to free(). The memory region should be marked as free and not used again.
Unit tests f2_realloc_0(), f6_realloc(), and f7_realloc() contributed by Marshall Clow <mclow.lists@gmail.com>. Thanks!
llvm-svn: 130303
|
| |
|
|
|
|
|
|
| |
direct lookup to values bound to expressions, without
resulting to lazy logic. This is critical for the OSAtomicChecker that does a simulated load on any arbitrary expression.
llvm-svn: 130292
|
| |
|
|
|
|
| |
bounds. Requires LLVM svn r129582.
llvm-svn: 130161
|
| |
|
|
| |
llvm-svn: 130068
|
| |
|
|
|
|
| |
pointers. Fixes PR9746.
llvm-svn: 129741
|
| |
|
|
| |
llvm-svn: 129567
|
| |
|
|
|
|
| |
Luis Felipe Strano Moraes!
llvm-svn: 129559
|
| |
|
|
|
|
| |
declared in protocols.
llvm-svn: 129395
|
| |
|
|
|
|
|
|
| |
active block on the worklist
impacts the results of the check.
llvm-svn: 129394
|
| |
|
|
|
|
| |
0-index of a symbolic region. In many cases that isn't really the base offset.
llvm-svn: 129366
|
| |
|
|
|
|
| |
inputs are not NULL and are real C strings, then does the comparison and binds the proper return value. Unit tests included.
llvm-svn: 129364
|
| |
|
|
|
|
| |
Validates inputs are not NULL, checks for overlapping strings, concatenates the strings checking for buffer overflow, sets the length of the destination string to the sum of the s1 length and the s2 length, binds the return value to the s1 value.
llvm-svn: 129215
|
| |
|
|
|
|
|
|
| |
generate a warning any time the strcat() function is used with a note suggesting to use a function which provides bounded buffers. CWE-119.
Also, brings the security syntax checker more inline with coding standards.
llvm-svn: 128916
|
| |
|
|
|
|
| |
doesn't get called for each CallExpr. Instead it does a switch and only runs the check for the proper identifier. Slight speed improvement (probably significant on very large ASTs), and should make it easier and more clear to add more checks for other CallExpr's later.
llvm-svn: 128785
|
| |
|
|
| |
llvm-svn: 128762
|
| |
|
|
|
|
| |
didn't know how to handle a specific Expr type.
llvm-svn: 128761
|
| |
|
|
|
|
| |
a given CFGBlock was analyzed too many times.
llvm-svn: 128760
|
| |
|
|
|
|
| |
generate a warning any time the strcpy() function is used with a note suggesting to use a function which provides bounded buffers.
llvm-svn: 128679
|
| |
|
|
|
|
| |
Models mempcpy() so that if length is NULL the destination pointer is returned. Otherwise, the source and destination are confirmed not to be NULL and not overlapping. Finally the copy is validated to not cause a buffer overrun and the return value is bound to the address of the byte after the last byte copied.
llvm-svn: 128677
|
| |
|
|
| |
llvm-svn: 128670
|
| |
|
|
| |
llvm-svn: 128512
|
| |
|
|
|
|
| |
packages, and which packages/checkers are hidden.
llvm-svn: 128511
|
| |
|
|
|
|
| |
commit r128474.
llvm-svn: 128475
|
| |
|
|
| |
llvm-svn: 128310
|
| |
|
|
| |
llvm-svn: 128187
|
| |
|
|
|
|
|
|
|
| |
This rename serves two purposes:
- It reflects the actual functionality of this analysis.
- We will have more than one reachability analysis.
llvm-svn: 127930
|
| |
|
|
| |
llvm-svn: 127798
|
| |
|
|
|
|
| |
variadic Objective-C methods.
llvm-svn: 127797
|
| |
|
|
|
|
| |
variadic Objective-C methods.
llvm-svn: 127719
|
| |
|
|
| |
llvm-svn: 127687
|
| |
|
|
|
|
|
|
| |
multiple warnings for the same message expression.
Also add a test case showing that we correctly report multiple warnings for the same message expression.
llvm-svn: 127605
|
| |
|
|
|
|
|
|
| |
variadic Objective-C methods are of Objective-C pointer types.
Ted or Argiris, I'd appreciate a review!
llvm-svn: 127572
|
| |
|
|
|
|
| |
DeadStores checker into the "deadcode" group.
llvm-svn: 127531
|
| |
|
|
|
|
| |
"cases."
llvm-svn: 127528
|
| |
|
|
|
|
|
|
|
| |
C++ iterators.
This checker was created by Jim Goodnow II, and I migrated it to the
new Checker interface (recent changes by Argiris).
llvm-svn: 127525
|
| |
|
|
|
|
|
| |
extending the existing support for sizeof and alignof. Original
patch by Guy Benyei.
llvm-svn: 127475
|
| |
|
|
|
|
| |
NSString and NSMutableString.
llvm-svn: 127268
|
| |
|
|
|
|
|
|
| |
conventional categories into Basic and AST. Update the self-init checker
to use this logic; CFRefCountChecker is complicated enough that I didn't
want to touch it.
llvm-svn: 126817
|
| |
|
|
|
|
|
|
|
| |
pointers instead of fresh CFGElements.
- Also, consoldiate getDtorKind() and getKind() into one "kind".
- Add empty getDestructorDecl() method to CFGImplicitDtor.
llvm-svn: 126738
|
| |
|
|
|
|
| |
stack frame.
llvm-svn: 126735
|
| |
|
|
|
|
| |
Decls. Suggestion by Ted!
llvm-svn: 126734
|
| |
|
|
|
|
|
|
| |
lib/StaticAnalyzer/Core
and hope the wrath of the buildbots will not descend upon me.
llvm-svn: 126728
|