summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
* Added support for detected bad dereferences involving MemberExprs, e.g. x->f ↵Ted Kremenek2008-04-211-77/+123
| | | | | | where "x" is NULL. llvm-svn: 50071
* More semantics checks of properties. Property implementation can implicitly useFariborz Jahanian2008-04-211-5/+4
| | | | | | | ivar of same name. Better diagnostics to bring home this point. llvm-svn: 50065
* Support for @dynamic AST build.Fariborz Jahanian2008-04-212-8/+24
| | | | | | | More property semantics checking. First test case for ObjC2's property implementation. llvm-svn: 50057
* Fix pasto, thanks to Anders for pointing this out.Chris Lattner2008-04-211-1/+1
| | | | llvm-svn: 50055
* Continuation of work on ObjC2's properties.Fariborz Jahanian2008-04-212-36/+70
| | | | | | | | Added iterators, methods to find property and categories. Use them in doing semantic analysis on property implementation declarations. Fixed typos. llvm-svn: 50050
* add arm supportChris Lattner2008-04-211-0/+132
| | | | llvm-svn: 50049
* Clean up handling of function redeclarationsDouglas Gregor2008-04-213-10/+104
| | | | llvm-svn: 50021
* Fix improper dereference of end() iterator. Patch by Argiris Kirtzidis!Ted Kremenek2008-04-201-2/+5
| | | | llvm-svn: 50012
* Fix PR2236Nate Begeman2008-04-202-8/+19
| | | | | | | Add test Implement feedback from Chris re: PR1998 llvm-svn: 50001
* Two improvements to initializer parsing:Chris Lattner2008-04-201-5/+19
| | | | | | | | 1. If we hit a semantic error, try harder to recover to emit diagnostics for later initializer errors (PR2241). 2. Don't leak parsed initializers on an error. llvm-svn: 49998
* for exponent-related errors, emit the diagnostic on the 'e' or 'p'.Chris Lattner2008-04-201-4/+7
| | | | llvm-svn: 49997
* when emitting diagnostics about some character in a numericChris Lattner2008-04-201-20/+26
| | | | | | | | | | | literal, indicate what character the error is about or where it would be. For example: pr2241.c:1:17: error: exponent has no digits float f[] = { 1e , 1ee0 }; ^ llvm-svn: 49996
* Only generate code for static functions and global variables that are ↵Nate Begeman2008-04-202-5/+72
| | | | | | | | | actually used. Warn about unused static functions and variables. This fixes PR1998. llvm-svn: 49987
* Restructure and simplify Sema::ObjCQualifiedIdTypesAreCompatible,Chris Lattner2008-04-201-65/+64
| | | | | | | | | | deleting dead code, making other code more obvious, and fixing a bug. This fixes these (bogus) warnings in release mode: SemaExprObjC.cpp:383: warning: 'RHSProtoE' may be used uninitialized in this function SemaExprObjC.cpp:383: warning: 'RHSProtoI' may be used uninitialized in this function llvm-svn: 49984
* implement a fixme, add support for ++/-- on long double.Chris Lattner2008-04-201-5/+6
| | | | llvm-svn: 49980
* use simplified ConstantFP:get method.Chris Lattner2008-04-202-6/+4
| | | | llvm-svn: 49979
* replace form feeds with an <hr> tag.Chris Lattner2008-04-191-1/+5
| | | | llvm-svn: 49975
* simplify ownership of the predefines buffer.Chris Lattner2008-04-191-5/+1
| | | | llvm-svn: 49973
* Gracefully handle when the receiver of a message expression is not a pointer ↵Ted Kremenek2008-04-191-1/+5
| | | | | | type. llvm-svn: 49959
* Generate code for annotation attributes.Nate Begeman2008-04-193-8/+70
| | | | llvm-svn: 49951
* Add support to module codegen for adding and emitting annotationsNate Begeman2008-04-182-0/+20
| | | | llvm-svn: 49944
* Ignore qualifiers when attempting to match arguments to parameter types for Nate Begeman2008-04-181-3/+6
| | | | | | __builtin_overload llvm-svn: 49943
* OCUVector -> ExtVector, shorthand for extended vector, per feedback from Chris.Nate Begeman2008-04-1813-113/+116
| | | | llvm-svn: 49942
* Another bug fix in emitting warnings without a path: construct a unit ↵Ted Kremenek2008-04-181-17/+25
| | | | | | | | PathDiagnostic as we did before. This allows the HTMLDiagnostic object to retrieve the bug type, bug description, etc. llvm-svn: 49939
* fix __attribute__(format) for struct function pointer fieldsNuno Lopes2008-04-181-3/+7
| | | | llvm-svn: 49938
* Reenable using the PathDiagnosticClient for BugReports without paths.Ted Kremenek2008-04-181-2/+5
| | | | llvm-svn: 49934
* Generalize caching mechanism for bugs reports. Now individual BugTypesTed Kremenek2008-04-185-23/+23
| | | | | | | | can decide the policy on how to cache related bugs. This allows us to properly to handle warning about multiple leaks in the same location in the ref count checker (not yet done). llvm-svn: 49918
* Fixed more caching bugs related to the one fixed in r49914. SilenceTed Kremenek2008-04-182-14/+27
| | | | | | compiler warning introduced by a recent patch of mine. llvm-svn: 49917
* Fixed elusive caching bug that led to false positives.Ted Kremenek2008-04-181-1/+2
| | | | llvm-svn: 49914
* Added "GetErrorNodes()" to BugType so that -trim-egraph can recognize errorsTed Kremenek2008-04-182-9/+68
| | | | | | | | from registered BugTypes. This helps with debugging. Add detection of NULL values in ref count checker; this suppresses false positives. llvm-svn: 49912
* Added "EvalAssume" virtual method to GRTransferFuncs; this is for evaluatingTed Kremenek2008-04-181-7/+20
| | | | | | the checker-specific logic of symbolic assumptions. llvm-svn: 49910
* Tabs -> spacesNate Begeman2008-04-181-2/+2
| | | | llvm-svn: 49909
* Fixed bug in GREndPathNodeBuilder: only return a node if it wasn't in the ↵Ted Kremenek2008-04-182-1/+6
| | | | | | node cache. llvm-svn: 49907
* Initialize default double width and alignmentNate Begeman2008-04-181-0/+2
| | | | llvm-svn: 49899
* Allow targets to override double size, alignment, and semantics, and tie thisNate Begeman2008-04-181-1/+3
| | | | | | | information into the IR type codegen. This allows a target to codegen the C 'double' type as either double or float. llvm-svn: 49898
* Provide a version of html::HighlightMacros that takes a Preprocessor&.Ted Kremenek2008-04-181-16/+17
| | | | llvm-svn: 49896
* More grammar fixes.Ted Kremenek2008-04-181-2/+8
| | | | llvm-svn: 49895
* Fix plurality debacle.Ted Kremenek2008-04-181-1/+1
| | | | llvm-svn: 49894
* Added path diagnostics for reference counts.Ted Kremenek2008-04-181-9/+101
| | | | llvm-svn: 49892
* Make tab insertion really right: the number of spaces insertedChris Lattner2008-04-181-7/+17
| | | | | | depends on the column number of the start of the tab. llvm-svn: 49891
* BugReport::VisitNode now takes BugReporter& instead of ASTContext&.Ted Kremenek2008-04-182-101/+157
| | | | | | | | Shuffled around code in CFRefCount to better pair classes with implementation, and started adding subclasses of RangedBugReport to handle better diagnostics for reference count bugs. llvm-svn: 49889
* Use HTML5 doctype when generating HTML.Ted Kremenek2008-04-181-3/+2
| | | | llvm-svn: 49888
* Added null check.Ted Kremenek2008-04-181-0/+3
| | | | llvm-svn: 49887
* Updated CSS colors. Patch by Cedric Venet!Ted Kremenek2008-04-181-5/+5
| | | | llvm-svn: 49886
* Simplified internal logic of BugReporter, consolidating EmitWarning andTed Kremenek2008-04-184-50/+48
| | | | | | | | EmitPathWarning into one method. We now properly handle emitting warnings without a PathDiagnosticClient when the warning does not involve a particular statement. llvm-svn: 49884
* Fixed a bug in categories and properties.Fariborz Jahanian2008-04-181-1/+1
| | | | llvm-svn: 49883
* Initial work for property implementation declarations.Fariborz Jahanian2008-04-183-4/+126
| | | | | | | Mostly semantic checking in this patch. This is on going and incomplete. llvm-svn: 49882
* Modified BugReport::getEndPath() to handle the case where end path is atTed Kremenek2008-04-171-15/+43
| | | | | | the exit block of the CFG. llvm-svn: 49880
* Hook up reporting reference count memory leaks to the BugReporter mechanism.Ted Kremenek2008-04-171-0/+31
| | | | llvm-svn: 49879
* Fix a problem noticed by Nuno, where we wouldn't escape characters in Chris Lattner2008-04-171-2/+3
| | | | | | macro expansions. llvm-svn: 49877
OpenPOWER on IntegriCloud