summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Accept Handler objects in parameters as references.Argyrios Kyrtzidis2009-07-295-9/+10
| | | | | | | Reinforces that they shouldn't be null and it's a bit more natural when they are passed as stack objects. llvm-svn: 77526
* Rename EntityHandler::HandleEntity to Handle.Argyrios Kyrtzidis2009-07-293-3/+3
| | | | llvm-svn: 77525
* -Make IndexProvider an abstract interface for getting indexing information.Argyrios Kyrtzidis2009-07-298-105/+201
| | | | | | -Introduce Indexer as an IndexProvider implementation. llvm-svn: 77524
* Make tag declarations redeclarable. This change has three purposes:Douglas Gregor2009-07-298-37/+73
| | | | | | | | | | | | | | | | 1) Allow the Index library (and any other interested client) to walk the set of declarations for a given tag (enum, union, class, whatever). At the moment, this information is not readily available. 2) Reduce our dependence on TagDecl::TypeForDecl being mapped down to a TagType (for which getDecl() will return the tag definition, if one exists). This property won't exist for class template partial specializations. 3) Make the canonical declaration of a TagDecl actually canonical, e.g., so that it does not change when the tag is defined. llvm-svn: 77523
* Eliminate an unused-variable warningDouglas Gregor2009-07-291-1/+0
| | | | llvm-svn: 77518
* Update for LLVM API change.Owen Anderson2009-07-2913-319/+314
| | | | llvm-svn: 77514
* Change uses of:Ted Kremenek2009-07-2950-424/+392
| | | | | | | | | | | | | | | | | | | | Type::getAsReferenceType() -> Type::getAs<ReferenceType>() Type::getAsRecordType() -> Type::getAs<RecordType>() Type::getAsPointerType() -> Type::getAs<PointerType>() Type::getAsBlockPointerType() -> Type::getAs<BlockPointerType>() Type::getAsLValueReferenceType() -> Type::getAs<LValueReferenceType>() Type::getAsRValueReferenceType() -> Type::getAs<RValueReferenceType>() Type::getAsMemberPointerType() -> Type::getAs<MemberPointerType>() Type::getAsReferenceType() -> Type::getAs<ReferenceType>() Type::getAsTagType() -> Type::getAs<TagType>() And remove Type::getAsReferenceType(), etc. This change is similar to one I made a couple weeks ago, but that was partly reverted pending some additional design discussion. With Doug's pending smart pointer changes for Types, it seemed natural to take this approach. llvm-svn: 77510
* Remove 'StoreManager::OldCastRegion()', TypedViewRegion (which onlyTed Kremenek2009-07-2962-312/+20
| | | | | | | OldCastRegion used), and the associated command line option '-analyzer-store=old-basic-cast'. llvm-svn: 77509
* Fixed test.Fariborz Jahanian2009-07-291-1/+1
| | | | llvm-svn: 77506
* Some refactoring of member access forFariborz Jahanian2009-07-292-16/+30
| | | | | | performace sake. Also added a test case. llvm-svn: 77502
* Refactor base/member initializers, and construct them correctly in cases Eli Friedman2009-07-293-83/+147
| | | | | | with dependent types. Fixes PR4621 and PR4627. llvm-svn: 77498
* Check accessibility when converting object to the baseFariborz Jahanian2009-07-292-5/+19
| | | | | | class. llvm-svn: 77497
* Update for LLVM API change.Owen Anderson2009-07-297-93/+93
| | | | llvm-svn: 77492
* No longer need to keep base class offsets in the offsetFariborz Jahanian2009-07-294-11/+1
| | | | | | table as it has its own place now. llvm-svn: 77491
* Patch to provide cast of objects in member accessFariborz Jahanian2009-07-294-18/+24
| | | | | | | excpression, if needed, and remove some ir-gen code now unnencessary. llvm-svn: 77490
* [llvm up]Douglas Gregor2009-07-298-24/+119
| | | | | | | | | A template name can refer to a set of overloaded function templates. Model this in TemplateName, which can now refer to an OverloadedFunctionDecl that contains function templates. This removes an unspeakable hack in Sema::isTemplateName. llvm-svn: 77488
* Add an XFAILed test case that currently crashes for RegionStore. This case willTed Kremenek2009-07-291-0/+66
| | | | | | be moved to misc-ps.m when it passes. llvm-svn: 77486
* Add another analyzer test case involving an OSAtomic function.Ted Kremenek2009-07-291-0/+6
| | | | llvm-svn: 77485
* Remove some uses of TypedViewRegion, and use getBaseRegion() in a context whereTed Kremenek2009-07-292-9/+6
| | | | | | we don't care about ElementRegions layered on top of a base region. llvm-svn: 77484
* Make StoreManager::InvalidateRegion() virtual, move the current implementationTed Kremenek2009-07-294-95/+132
| | | | | | | | | | in StoreManager to RegionStoreManager, and create a special, highly reduced version in BasicStoreManager. These changes are in preparation for future RegionStore-specific changes to InvalidateRegion. llvm-svn: 77483
* Add 'MemRegion::getBaseRegion()', a utility method to strip ElementRegions withTed Kremenek2009-07-294-2/+30
| | | | | | index 0. This will be used for refinements to InvalidateRegion and CastRegion. llvm-svn: 77481
* canSymbolicate() should only return true for integer types that are scalars.Ted Kremenek2009-07-291-1/+1
| | | | llvm-svn: 77479
* Check for identical types in C++ catch expression. Patch by Erik Verbruggen.Sebastian Redl2009-07-293-5/+87
| | | | llvm-svn: 77475
* Don't use a formatted ostream when writing .ll either.Daniel Dunbar2009-07-291-1/+1
| | | | llvm-svn: 77474
* Don't use a formatted ostream when writing .bc files. I don't really understandDaniel Dunbar2009-07-291-1/+1
| | | | | | this interface design, Chris please check. llvm-svn: 77473
* When lookup of an identifier preceding a '<' finds a set of overloadedDouglas Gregor2009-07-291-9/+35
| | | | | | | | functions, only return those overloaded functions that are actually function templates. Note that there is still a glaring problem with treating an OverloadedFunctionDecl as a TemplateName. llvm-svn: 77472
* scan-build: Don't try to index plist-html output directoriesDaniel Dunbar2009-07-291-5/+5
| | | | llvm-svn: 77465
* Remove an obsolete kludge based on the previous, completely broken handling ↵Douglas Gregor2009-07-292-8/+3
| | | | | | of function templates llvm-svn: 77464
* Test redefinition of class template partial specializationsDouglas Gregor2009-07-291-1/+8
| | | | llvm-svn: 77463
* Use the new statement/expression profiling code to unique dependentDouglas Gregor2009-07-299-28/+63
| | | | | | | | template arguments, as in template specialization types. This permits matching out-of-line definitions of members for class templates that involve non-type template parameters. llvm-svn: 77462
* Use the existing API for base offset. Use suitable llvm typeFariborz Jahanian2009-07-291-20/+4
| | | | | | for offset ir-gen. llvm-svn: 77458
* Make the Python TestRunner work for individual testsDouglas Gregor2009-07-291-1/+5
| | | | llvm-svn: 77456
* Remove an ObjC-specific XFAIL (and tweak test).Steve Naroff2009-07-291-2/+1
| | | | llvm-svn: 77454
* Fix <rdar://problem/7100524> regression: "error: incompatible operand types ↵Steve Naroff2009-07-292-9/+30
| | | | | | | | | ('void *' and 'NSString *')". Remove XFAIL from 'conditional-expr-4.m' test case (which would have caught this). Also tweaked several aspects of the test to jive with the current type checking. llvm-svn: 77453
* Incorporate feedback from Chris (on r76979).Steve Naroff2009-07-292-3/+4
| | | | llvm-svn: 77452
* Make functional-style casts emit correct messages, and fix a crash-on-invalid.Sebastian Redl2009-07-297-11/+310
| | | | llvm-svn: 77451
* add a fixmeZhongxing Xu2009-07-291-2/+4
| | | | llvm-svn: 77447
* delete an undefined method.Zhongxing Xu2009-07-291-2/+1
| | | | llvm-svn: 77446
* MultiTestRunner: Reenable --vg option.Daniel Dunbar2009-07-292-7/+16
| | | | | | | - Simplified from before and using --error-exitcode so failures show up as failures. llvm-svn: 77424
* Destroy the ASTConsumer prior to the Context, HTMLPrinter for example wants toDaniel Dunbar2009-07-291-5/+7
| | | | | | | do a significant amount of work in its destructor, which may access the context. (PR4642). llvm-svn: 77423
* BlockScopeInfo::hasPrototype was uninitialized.Daniel Dunbar2009-07-291-0/+1
| | | | llvm-svn: 77421
* CharLiteralParser::IsMultiChar was sometimes uninitialized.Daniel Dunbar2009-07-291-1/+2
| | | | llvm-svn: 77420
* Add missing '"'Daniel Dunbar2009-07-291-1/+1
| | | | llvm-svn: 77416
* Code refactoring to define getCXXRecordDeclForPointerTypeFariborz Jahanian2009-07-294-23/+23
| | | | | | and use it in several places. llvm-svn: 77411
* Be sure to turn on -fblocks.Mike Stump2009-07-292-2/+2
| | | | llvm-svn: 77406
* Some minor cleanups, thanks Chris.Mike Stump2009-07-283-21/+10
| | | | llvm-svn: 77402
* Some style fixes, thanks Chris.Mike Stump2009-07-282-16/+14
| | | | llvm-svn: 77400
* Add support for -Wmissing-noreturn.Mike Stump2009-07-284-2/+41
| | | | llvm-svn: 77391
* Refactor the code that produces a TemplateSpecializationType, so thatDouglas Gregor2009-07-284-114/+103
| | | | | | | | canonicalization for dependent TemplateSpecializationTypes occurs within ASTContext::getTemplateSpecializationType. Also, move template argument canonicalization into ASTContext::getCanonicalTemplateArgument. llvm-svn: 77388
* remove extraneous bracesChris Lattner2009-07-281-5/+2
| | | | llvm-svn: 77386
OpenPOWER on IntegriCloud