summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
* Use 'free' to release PerIDCache since it was allocated using calloc().Ted Kremenek2008-12-041-1/+1
| | | | llvm-svn: 60556
* Fix bug in attribute(nonnull) processing where not all of the parameter ↵Ted Kremenek2008-12-041-1/+1
| | | | | | indices in nonnull(...) were actually processed. llvm-svn: 60546
* Fix some diagnostics and enhance test cases. Now tests member new and ↵Sebastian Redl2008-12-041-2/+4
| | | | | | ambiguous overloads. llvm-svn: 60542
* Several things...Steve Naroff2008-12-042-2/+2
| | | | | | | | | | | - Implement RewritePropertySetter(). While the routine is simple, there were some tricky changes to RewriteFunctionBodyOrGlobalInitializer(), the main rewriter loop. It also required some additional instance data to distinguish setters from getters, as well as some changes to RewritePropertyGetter(). - Implement FIXME: for pretty printing ObjCPropertyRefExpr's. - Changed ObjCPropertyRefExpr::getSourceRange() to point to the end of the property name (not the beginning). Also made a minor name change from "Loc"->"IdLoc" (to make it clear the Loc does not point to the "."). llvm-svn: 60540
* Mention an optimization opportunity pointed out by Chris.Daniel Dunbar2008-12-041-0/+12
| | | | llvm-svn: 60535
* Revamp RegionStoreManager::RemoveDeadBindings. This method now does a ↵Ted Kremenek2008-12-041-7/+131
| | | | | | complete mark-and-sweep of the store, removing dead regions and recording the set of live and dead symbols appropriately. llvm-svn: 60523
* Update comment.Ted Kremenek2008-12-041-0/+3
| | | | llvm-svn: 60520
* Add comments.Zhongxing Xu2008-12-041-0/+6
| | | | llvm-svn: 60516
* Correct CodeGen assumption that LongTy == Int32Ty in a few places. This ↵Sebastian Redl2008-12-041-2/+2
| | | | | | makes several CodeGenObjC tests pass on 64-bit by fixing assertions. This doesn't mean that the result is actually what the GNU runtime expects, though. llvm-svn: 60515
* Fix some type punning errors in SizeOfAlignOf and Typeid AST nodes. This ↵Sebastian Redl2008-12-033-5/+5
| | | | | | should satisfy compilers and language lawyers alike. llvm-svn: 60511
* Overload resolution for the operator new function. Member version is still ↵Sebastian Redl2008-12-033-11/+248
| | | | | | untested. llvm-svn: 60503
* BasicConstraintManager:Ted Kremenek2008-12-031-3/+23
| | | | | | | | | | | - Fix nonsensical logic in AssumeSymGE. When comparing 'sym >= constant' and the constant is the maximum integer value, add the constraint that 'sym == constant' when the path is deemed feasible. All other cases are feasible. - Improve AssumeSymGT. When comparing 'sym > constant' and constant is the maximum integer value we know the path is infeasible. - Add test case for this enhancement to AssumeSymGT. llvm-svn: 60490
* BasicConstraintManager:Ted Kremenek2008-12-031-6/+24
| | | | | | | | | | | | - Fix nonsensical logic in AssumeSymLE. When comparing 'sym <= constant' and the constant is the minimum integer value, add the constraint that 'sym == constant' when the path is deemed feasible. All other cases are feasible. - Improve AssumeSymLT to address <rdar://problem/6407949>. When comparing 'sym < constant' and constant is the minimum integer value we know the path is infeasible. - Add test case for <rdar://problem/6407949>. llvm-svn: 60489
* Fix typo in index operator overloading.Sebastian Redl2008-12-031-1/+1
| | | | llvm-svn: 60483
* If a global var decl has an initializer, make sure to always set its linkage ↵Anders Carlsson2008-12-031-0/+2
| | | | | | to external. llvm-svn: 60462
* PTH:Ted Kremenek2008-12-031-13/+23
| | | | | | Use an array instead of a DenseMap to cache persistent IDs -> IdentifierInfo*. This leads to a 4% speedup at -fsyntax-only using PTH. llvm-svn: 60452
* - Remove PTHManager.cpp. Move all of its functions to PTHLexer.cpp since ↵Ted Kremenek2008-12-032-255/+241
| | | | | | | | some of the internal methods are used by PTHLexer (their implementations are intertwined.) This enables some important inlining opportunities at -O3. - Don't construct an std::vector<Token> prior to feeding PTH tokens to the Preprocessor. Stream them off the PTH file directly. llvm-svn: 60447
* Correct pretty printing of array new expressions.Sebastian Redl2008-12-021-4/+9
| | | | llvm-svn: 60444
* Preprocessor:Ted Kremenek2008-12-021-2/+32
| | | | | | | | | - Added method "setPTHManager" that will be called by the driver to install a PTHManager for the Preprocessor. - Fixed some comments. - Added EnterSourceFileWithPTH to mirror EnterSourceFileWithLexer. llvm-svn: 60437
* Added PTHManager, a utility class that will be used by Preprocessor to ↵Ted Kremenek2008-12-021-0/+248
| | | | | | lazily create PTHLexer objects for pre-tokenized files. llvm-svn: 60436
* More type-checking of setter/getter methods. This is stillFariborz Jahanian2008-12-022-3/+42
| | | | | | work in prgress. llvm-svn: 60430
* Add better comments to ::new parsing. Thanks to Doug for the review.Sebastian Redl2008-12-022-2/+4
| | | | llvm-svn: 60423
* Make RegionStoreManager::InitializeArray safe against array sizes that don't ↵Sebastian Redl2008-12-021-1/+2
| | | | | | | | have pointer width. This may be the case on 64-bit systems. Whether that fact is a bug is a different question, but it's easy to cure the symptom. llvm-svn: 60422
* Make the parser handle ::new and ::delete correctly.Sebastian Redl2008-12-022-1/+12
| | | | llvm-svn: 60421
* Update cmake build; patch by Csaba Hruska.Eli Friedman2008-12-021-0/+1
| | | | llvm-svn: 60418
* Fix for PR3150: obvious copy-paste bug in Eli Friedman2008-12-021-2/+2
| | | | | | ScalarExprEmitter::VisitBinLOr. llvm-svn: 60415
* Handle new by passing the Declaration to the Action, not a processed type.Sebastian Redl2008-12-028-132/+155
| | | | llvm-svn: 60413
* Add FIXME.Ted Kremenek2008-12-021-0/+3
| | | | llvm-svn: 60390
* Disabling this code due to regression on test/CodeGen/bitfield.c. See Eli Friedman2008-12-021-1/+5
| | | | | | PR3152. llvm-svn: 60389
* A little more scaffolding for parsing templates:Douglas Gregor2008-12-021-38/+44
| | | | | | | | | - Template parameter scope to hold the template parameters - Template parameter context for parsing declarators - Actions for template type parameters and non-type template parameters llvm-svn: 60387
* This patch corrects problem in searching for a setter/getter method forFariborz Jahanian2008-12-022-27/+21
| | | | | | | | a property. Previous scheme of seaching in interface's list of methods would not work because this list is not yet constructed. This is in preparation for doing semantic check on viability of setter/getter method declarations. llvm-svn: 60386
* Basic support for parsing templates, from Andrew SuttonDouglas Gregor2008-12-013-3/+301
| | | | llvm-svn: 60384
* Improve error recovery when parsing a function definition failsDouglas Gregor2008-12-011-1/+1
| | | | llvm-svn: 60380
* Initialize storage class even if we got an erroneous mutableDouglas Gregor2008-12-011-0/+1
| | | | llvm-svn: 60377
* Objective-C keywords are not always identifiers. Some are also C++ keywordsDouglas Gregor2008-12-011-2/+3
| | | | llvm-svn: 60373
* -Add several ObjC types to Decl::getDeclKindName(), a useful debug hook.Steve Naroff2008-12-011-0/+3
| | | | | | -Start adding support for rewriting @synthesize. llvm-svn: 60368
* Use EmitInt, not Emit, to emit unsigned valuesDouglas Gregor2008-12-011-2/+2
| | | | llvm-svn: 60364
* Add LangOptions marker for assembler-with-cpp mode and use to defineDaniel Dunbar2008-12-011-1/+2
| | | | | | | __ASSEMBLER__ properly. Patch from Roman Divacky (with minor formatting changes). Thanks! llvm-svn: 60362
* Parse the exception-specification throw(...), a Microsoft extensionDouglas Gregor2008-12-011-5/+16
| | | | llvm-svn: 60359
* Define NULL to __null in C++, so that it's guaranteed to have the same size ↵Douglas Gregor2008-12-011-1/+1
| | | | | | as a pointer llvm-svn: 60355
* Generate the correct results for the comma expression. Fixes PR3123.Anders Carlsson2008-12-011-7/+10
| | | | llvm-svn: 60334
* Revert change that made isNullPointerConstant start emitting warnings. We ↵Anders Carlsson2008-12-013-35/+11
| | | | | | don't want that :) llvm-svn: 60333
* Change more code over to using the new Expr::EvaluateAnders Carlsson2008-12-011-6/+4
| | | | llvm-svn: 60324
* Change more code over to using the new Expr::EvaluateAnders Carlsson2008-12-011-16/+19
| | | | llvm-svn: 60323
* Use the new Expr::EvaluateAnders Carlsson2008-12-011-5/+5
| | | | llvm-svn: 60321
* Remove dead code.Anders Carlsson2008-12-011-3/+0
| | | | llvm-svn: 60320
* Add Sema::isNullPointerConstant which extwarns if necessary. Use it in ↵Anders Carlsson2008-12-012-3/+25
| | | | | | Sema::CheckConditionalOperands. llvm-svn: 60319
* Add a new variant of isNullConstantExpr that returns an EvalResult.Anders Carlsson2008-12-011-5/+15
| | | | llvm-svn: 60318
* Use VerifyIntegerConstantExpression for case values.Anders Carlsson2008-12-011-19/+4
| | | | llvm-svn: 60317
* Emit the correct diagnostic when a comma is in an ICE.Anders Carlsson2008-12-011-4/+4
| | | | llvm-svn: 60316
OpenPOWER on IntegriCloud