| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
| |
The transfer functions for the checker don't do anything special yet in GC mode.
llvm-svn: 50394
|
| |
|
|
|
|
| |
Add corresponding enum in LangOptions.
llvm-svn: 50387
|
| |
|
|
|
|
|
|
|
| |
std::pair<CFGBlock*, CFGBlock*> that have an 8-byte alignment for use with
ProgramPoint. This fixes a bug reported by Argiris where using std::set<> on
Windows would result in a 4-byte alignment, not an 8-byte alignment.
Fixes: <rdar://problem/5892265>
llvm-svn: 50364
|
| |
|
|
|
|
| |
This is the same for functions and it's preferable to have the namespace as DeclContext during ActOnPopScope.
llvm-svn: 50322
|
| |
|
|
|
|
|
|
|
| |
-NamespaceDecl for the AST
-Checks for name clashes between namespaces and tag/normal declarations.
This commit doesn't implement proper name lookup for namespaces.
llvm-svn: 50321
|
| |
|
|
| |
llvm-svn: 50320
|
| |
|
|
|
|
| |
least an 8-byte alignment.
llvm-svn: 50310
|
| |
|
|
|
|
|
|
|
|
| |
empty CFGBlocks that only contained a terminator.
Added improved diagnostics for break and continue statements and default branches in switch statements.
This fixes <rdar://problem/5889244>.
llvm-svn: 50286
|
| |
|
|
|
|
|
| |
reimplemented in Sema someday. This is tracked in PR2236. Until then
disabling it removes some bogus diagnostics (see 2236).
llvm-svn: 50263
|
| |
|
|
|
|
| |
comments on the ML will follow
llvm-svn: 50262
|
| |
|
|
|
|
| |
function).
llvm-svn: 50246
|
| |
|
|
| |
llvm-svn: 50245
|
| |
|
|
|
|
| |
of a switch statement that has no label.
llvm-svn: 50242
|
| |
|
|
|
|
|
|
|
| |
Implemented support for better localized leaks in the CF reference count checker.
Now leaks should be flagged close to where they occur.
This should implement the desired functionality in <rdar://problem/5879592>, although the diagnostics still need to be improved.
llvm-svn: 50241
|
| |
|
|
|
|
| |
work yet).
llvm-svn: 50237
|
| |
|
|
|
|
| |
symbols.
llvm-svn: 50233
|
| |
|
|
|
|
| |
its super class. This patch is incomplete.
llvm-svn: 50228
|
| |
|
|
|
|
| |
function logic to act when symbols become dead.
llvm-svn: 50221
|
| |
|
|
|
|
|
|
|
| |
This fixes <rdar://problem/5886141>.
Part of this change resulted in creating sparser summaries. I also added
some more comments and did some minor code cleanups.
llvm-svn: 50214
|
| |
|
|
|
|
|
| |
when processing a constraint we don't understand. This allows the frontend
to gracefully fail.
llvm-svn: 50213
|
| |
|
|
|
|
|
|
| |
that say that we are jumping to "case a" instead of "case 0".
This is a feature implementation for <rdar://problem/5880430>.
llvm-svn: 50197
|
| |
|
|
| |
llvm-svn: 50195
|
| |
|
|
|
|
| |
ExplodedGraph with a single path that BugReport objects can safely walk and introspect.
llvm-svn: 50194
|
| |
|
|
|
|
|
|
|
|
| |
Problem:
In the recently refactored VisitDeref (which processes dereferences), we
were incorrectly skipping the node just generated for the subexpression
of the dereference. This was a horrible regression.
llvm-svn: 50176
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
when it is constructed via deserialization. This is done by recording a flag
indicating that this is the case, and it deletes these objects by getting
the references stored in the ASTContext object. This fixes some memory
leaks that occurs when we deserialize translation units from bitcode files.
The rationale between having TranslationUnit sometimes own these objects and
sometimes not is that a TranslationUnit object can be constructed from
state generated by the parser (Preprocessor; semantic analyzer, etc.), and thus
in these cases won't own the IdentifierTable or Selectors, etc. During
deserialization, there is no Preprocessor, so somebody needs to own these
objects in order for them to be properly reclaimed.
llvm-svn: 50149
|
| |
|
|
|
|
| |
always be taken even if it was not feasible.
llvm-svn: 50132
|
| |
|
|
| |
llvm-svn: 50126
|
| |
|
|
| |
llvm-svn: 50119
|
| |
|
|
|
|
| |
to print declaration from its AST.
llvm-svn: 50117
|
| |
|
|
|
|
| |
the line we are going to.
llvm-svn: 50113
|
| |
|
|
| |
llvm-svn: 50112
|
| |
|
|
| |
llvm-svn: 50109
|
| |
|
|
|
|
| |
integers, allowing us to track lvals when they are casted back to pointers.
llvm-svn: 50108
|
| |
|
|
|
|
|
|
|
|
|
| |
DeclContext *CtxDecl -> DeclContext *DeclCtx
DeclContext *CD -> DeclContext *DC
It makes the code more consistent."
Patch by Zhongxing Xu!
llvm-svn: 50105
|
| |
|
|
|
|
|
|
|
|
| |
them to not be stack-allocated.
HTMLDiagnostics now batches PathDiagnostics before emitting HTML in its dtor.
This is a workaround for a problem when we trampled the Preprocessor state
when highlighting macros (sometimes resulting in an assertion failure).
llvm-svn: 50102
|
| |
|
|
| |
llvm-svn: 50098
|
| |
|
|
| |
llvm-svn: 50091
|
| |
|
|
| |
llvm-svn: 50089
|
| |
|
|
| |
llvm-svn: 50085
|
| |
|
|
| |
llvm-svn: 50083
|
| |
|
|
|
|
| |
derived class.
llvm-svn: 50074
|
| |
|
|
|
|
| |
where "x" is NULL.
llvm-svn: 50071
|
| |
|
|
|
|
|
| |
ivar of same name.
Better diagnostics to bring home this point.
llvm-svn: 50065
|
| |
|
|
|
|
|
| |
More property semantics checking.
First test case for ObjC2's property implementation.
llvm-svn: 50057
|
| |
|
|
| |
llvm-svn: 50055
|
| |
|
|
|
|
|
|
| |
Added iterators, methods to find property and categories.
Use them in doing semantic analysis on property implementation
declarations. Fixed typos.
llvm-svn: 50050
|
| |
|
|
| |
llvm-svn: 50049
|
| |
|
|
| |
llvm-svn: 50021
|
| |
|
|
| |
llvm-svn: 50012
|
| |
|
|
|
|
|
| |
Add test
Implement feedback from Chris re: PR1998
llvm-svn: 50001
|