summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* handle fatal errors, rely on warnings to point out missing cases.Chris Lattner2009-02-062-2/+4
| | | | llvm-svn: 63913
* Use ASTContext's allocator to deallocate Stmt objects instead of using ↵Ted Kremenek2009-02-061-3/+5
| | | | | | 'delete'. This fixes <rdar://problem/6561143>. llvm-svn: 63905
* ccc: Give explicit error on @ style argument lists (not yet supported).Daniel Dunbar2009-02-061-1/+3
| | | | llvm-svn: 63903
* ccc: Implement special language recognition handling for -.Daniel Dunbar2009-02-052-14/+32
| | | | | | - <rdar://problem/6551577> [ccc] require -x with - llvm-svn: 63901
* Improve the representation of template type parameters. We nowDouglas Gregor2009-02-059-65/+103
| | | | | | | | | | | canonicalize by template parameter depth, index, and name, and the unnamed version of a template parameter serves as the canonical. TemplateTypeParmDecl no longer needs to inherit from TemplateParmPosition, since depth and index information is present within the type. llvm-svn: 63899
* Updated checker build.Ted Kremenek2009-02-051-1/+1
| | | | llvm-svn: 63897
* allow mapping errors to fatal.Chris Lattner2009-02-051-1/+2
| | | | llvm-svn: 63896
* document fatalChris Lattner2009-02-051-2/+4
| | | | llvm-svn: 63895
* add support to the diagnostics machinery for mapping warnings andChris Lattner2009-02-052-9/+17
| | | | | | errors to 'fatal' error severity. llvm-svn: 63894
* Add 'AppendValue' to the list of magic CF function names that cause a ↵Ted Kremenek2009-02-052-1/+18
| | | | | | tracked object to escape. Fixes <rdar://problem/6560661>. llvm-svn: 63891
* objc2's nonfragile-abi - API selection for when receiver is a classFariborz Jahanian2009-02-051-10/+59
| | | | llvm-svn: 63881
* Follow Eli's advice and store the VLA size with the native size_t type. ↵Anders Carlsson2009-02-053-8/+10
| | | | | | Fixes PR3491. llvm-svn: 63879
* More objc2's API chanes.Fariborz Jahanian2009-02-051-1/+3
| | | | llvm-svn: 63878
* Improvements and fixes for name lookup with using directives, from Piotr Rak!Douglas Gregor2009-02-055-208/+275
| | | | | | | | Also, put Objective-C protocols into their own identifier namespace. Otherwise, we find protocols when we don't want to in C++ (but not in C). llvm-svn: 63877
* I didn't mean to change this.Chris Lattner2009-02-051-1/+1
| | | | llvm-svn: 63875
* Add Debian gcc 4.3 header search directories.Torok Edwin2009-02-051-0/+6
| | | | llvm-svn: 63872
* #ifdef'out out objc2 API selection which is not done in gcc (unlikeFariborz Jahanian2009-02-051-2/+10
| | | | | | the documentation to the contrary). llvm-svn: 63871
* Update checker build.Ted Kremenek2009-02-051-1/+1
| | | | llvm-svn: 63869
* Fix the symptom of the regression, by having the CXXConditionDeclExpr not ↵Sebastian Redl2009-02-052-2/+6
| | | | | | | | destroy its Decl. However, the cause still remains: the Decl is linked into the chain of its DeclContext and remains there despite being deleted. llvm-svn: 63868
* Put the invalid flag of OwningResult into the Action pointer.Sebastian Redl2009-02-059-198/+114
| | | | | | | | This shrinks OwningResult by one pointer. Since it is no longer larger than OwningPtr, merge the two. This leads to simpler client code and speeds up my benchmark by 2.7%. For some reason, this exposes a previously hidden bug, causing a regression in SemaCXX/condition.cpp. llvm-svn: 63867
* Remove some non-ASCII in comment.Sebastian Redl2009-02-051-2/+2
| | | | llvm-svn: 63866
* Add bare bones test that parameter passing is consistent forDaniel Dunbar2009-02-051-0/+45
| | | | | | | | scalar/complex/aggregate cases. - Currently disabled for x86_64, triggering a misoptimization (PR3489). llvm-svn: 63864
* Implement Direct ABIInfo semantics.Daniel Dunbar2009-02-051-17/+29
| | | | | | | | - No intended functionality change, this is essentially enabling direct passing of complex and aggregate values, which no ABI is using. llvm-svn: 63863
* Simplify test for whether we need an alloca to hold an indirect returnDaniel Dunbar2009-02-051-11/+1
| | | | | | | value. - No functionality change. llvm-svn: 63859
* Implement ABI Indirect sematics for arguments.Daniel Dunbar2009-02-051-6/+32
| | | | | | | | - No intended functionality change, all current ABI implementations were only using indirect for complex/aggregate types, which were being passed indirectly with the Direct ABIInfo kind. llvm-svn: 63858
* Merge ABIInfo StructRet/ByVal into Indirect. Daniel Dunbar2009-02-052-66/+41
| | | | | | - No (intended) functionality change, the semantic changes are to come. llvm-svn: 63850
* make clang agree with gcc 4.2's x86-64 predefines and settings.Chris Lattner2009-02-051-0/+4
| | | | llvm-svn: 63849
* correct and generalize computation of __INTMAX_MAX__.Chris Lattner2009-02-051-4/+16
| | | | llvm-svn: 63848
* privatize some stuff.Chris Lattner2009-02-051-6/+9
| | | | llvm-svn: 63847
* fix some differences between apple gcc and clang on darwin/x86-32.Chris Lattner2009-02-053-3/+13
| | | | llvm-svn: 63846
* Pull CodeGenFunction::GetUndefRValue() out of EmitUnsupportedRValue.Daniel Dunbar2009-02-053-19/+20
| | | | llvm-svn: 63845
* Make SymbolicRegion subclass TypedRegion, for symbols usually have types, so Zhongxing Xu2009-02-055-48/+75
| | | | | | | | | | | | | | do the symblic regions associated with them and we need them to be typed. Current SymbolicRegion::getRValueType() method is very restricting. It may be modified when we are more clear about what could be the types of symblic regions. BasicConstraintManager::Assume() is changed due to that now SymblicRegion is a subclass of SubRegion. llvm-svn: 63844
* Remove a bunch of obscene double-buffering of BugReports in the retain/releaseTed Kremenek2009-02-051-181/+137
| | | | | | | | | | checker. This was previously needed because BugReport objects were previously allocated on the stack and not owned by BugReporter. Now we can just issue them on the fly. This change was motivated because we were seeing some weird cases where some really long paths would get issued for bugs (particularly leaks) because of some double-caching. llvm-svn: 63840
* ccc: Translate -O to -O1 for clang, and only pass last -O option.Daniel Dunbar2009-02-052-1/+12
| | | | llvm-svn: 63816
* Reapply Daniel's patch to match up with llvm 63765.Dale Johannesen2009-02-051-6/+3
| | | | | | Untested, Daniel or Nate please review. llvm-svn: 63814
* x86-32: Use Ignore to avoid passing empty structs (instead of Expand).Daniel Dunbar2009-02-051-2/+2
| | | | llvm-svn: 63813
* Honor ByVal alignment. Patch by Nate Begeman!Daniel Dunbar2009-02-051-2/+3
| | | | llvm-svn: 63811
* This patch generates messaging code for objc2's non-fragile abi.Fariborz Jahanian2009-02-051-4/+21
| | | | llvm-svn: 63810
* Initialize alignment field for ByVal ABIInfo correctly.Daniel Dunbar2009-02-051-1/+1
| | | | llvm-svn: 63809
* Fix regression: Leak (BugType) object should have 'isLeak()' return true.Ted Kremenek2009-02-051-0/+2
| | | | llvm-svn: 63803
* Unbreak CGFunctionInfo::Profile method and reenable caching of ABIDaniel Dunbar2009-02-052-3/+2
| | | | | | information. llvm-svn: 63799
* Overhaul BugReporter interface and implementation. The new interface cleans upTed Kremenek2009-02-0422-909/+805
| | | | | | | | | | | | | | | | | | | | | the ownership of BugTypes and BugReports. Now BugReports are owned by BugTypes, and BugTypes are owned by the BugReporter object. The major functionality change in this patch is that reports are not immediately emitted by a call to BugReporter::EmitWarning (now called EmitReport), but instead of queued up in report "equivalence classes". When BugReporter::FlushReports() is called, it emits one diagnostic per report equivalence class. This provides a nice cleanup with the caching of reports as well as enables the BugReporter engine to select the "best" path for reporting a path-sensitive bug based on all the locations in the ExplodedGraph that the same bug could occur. Along with this patch, Leaks are now coalesced into a common equivalence class by their allocation site, and the "summary" diagnostic for leaks now reports the allocation site as the location of the bug (this may later be augmented to also provide an example location where the leak occurs). llvm-svn: 63796
* Chase LLVM TOT in circles (i.e., revert r63773 to match revert ofDaniel Dunbar2009-02-041-3/+6
| | | | | | r63765). llvm-svn: 63795
* Add ABIArgInfo::dump()Daniel Dunbar2009-02-042-0/+33
| | | | llvm-svn: 63794
* Implement semantic analysis for the GNU flexible array initializationDouglas Gregor2009-02-046-39/+186
| | | | | | | | | | | | | extension. The interaction with designated initializers is a bit... interesting... but we follow GNU's lead and don't permit too much crazy code in this area. Also, make the "excess initializers" error message a bit more informative. Addresses PR2561: http://llvm.org/bugs/show_bug.cgi?id=2561 llvm-svn: 63785
* Add support for blocks with explicit return types.Mike Stump2009-02-0411-52/+206
| | | | llvm-svn: 63784
* Use correct signature for calling enumeration mutation function.Daniel Dunbar2009-02-041-1/+1
| | | | llvm-svn: 63782
* Temporarily disable caching of ABI results; this is going horriblyDaniel Dunbar2009-02-041-1/+3
| | | | | | wrong in some cases. llvm-svn: 63780
* Implement taking address of member functions, including overloaded ones.Sebastian Redl2009-02-044-12/+60
| | | | llvm-svn: 63779
* ccc: Forward -femit-all-decls to clang and use an option group toDaniel Dunbar2009-02-042-25/+15
| | | | | | simplify handling of -f options clang recognizes. llvm-svn: 63778
OpenPOWER on IntegriCloud