]> granicus.if.org Git - clang/log
clang
15 years ago[llvm up]
Douglas Gregor [Wed, 29 Jul 2009 18:26:50 +0000 (18:26 +0000)]
[llvm up]

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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77488 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAdd an XFAILed test case that currently crashes for RegionStore. This case will
Ted Kremenek [Wed, 29 Jul 2009 18:19:16 +0000 (18:19 +0000)]
Add an XFAILed test case that currently crashes for RegionStore. This case will
be moved to misc-ps.m when it passes.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77486 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAdd another analyzer test case involving an OSAtomic function.
Ted Kremenek [Wed, 29 Jul 2009 18:18:25 +0000 (18:18 +0000)]
Add another analyzer test case involving an OSAtomic function.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77485 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoRemove some uses of TypedViewRegion, and use getBaseRegion() in a context where
Ted Kremenek [Wed, 29 Jul 2009 18:17:40 +0000 (18:17 +0000)]
Remove some uses of TypedViewRegion, and use getBaseRegion() in a context where
we don't care about ElementRegions layered on top of a base region.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77484 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoMake StoreManager::InvalidateRegion() virtual, move the current implementation
Ted Kremenek [Wed, 29 Jul 2009 18:16:25 +0000 (18:16 +0000)]
Make StoreManager::InvalidateRegion() virtual, move the current implementation
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77483 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAdd 'MemRegion::getBaseRegion()', a utility method to strip ElementRegions with
Ted Kremenek [Wed, 29 Jul 2009 18:14:27 +0000 (18:14 +0000)]
Add 'MemRegion::getBaseRegion()', a utility method to strip ElementRegions with
index 0.  This will be used for refinements to InvalidateRegion and CastRegion.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77481 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agocanSymbolicate() should only return true for integer types that are scalars.
Ted Kremenek [Wed, 29 Jul 2009 18:12:48 +0000 (18:12 +0000)]
canSymbolicate() should only return true for integer types that are scalars.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77479 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoCheck for identical types in C++ catch expression. Patch by Erik Verbruggen.
Sebastian Redl [Wed, 29 Jul 2009 17:15:45 +0000 (17:15 +0000)]
Check for identical types in C++ catch expression. Patch by Erik Verbruggen.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77475 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoDon't use a formatted ostream when writing .ll either.
Daniel Dunbar [Wed, 29 Jul 2009 17:12:55 +0000 (17:12 +0000)]
Don't use a formatted ostream when writing .ll either.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77474 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoDon't use a formatted ostream when writing .bc files. I don't really understand
Daniel Dunbar [Wed, 29 Jul 2009 17:10:26 +0000 (17:10 +0000)]
Don't use a formatted ostream when writing .bc files. I don't really understand
this interface design, Chris please check.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77473 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoWhen lookup of an identifier preceding a '<' finds a set of overloaded
Douglas Gregor [Wed, 29 Jul 2009 16:56:42 +0000 (16:56 +0000)]
When lookup of an identifier preceding a '<' finds a set of overloaded
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77472 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoscan-build: Don't try to index plist-html output directories
Daniel Dunbar [Wed, 29 Jul 2009 16:21:23 +0000 (16:21 +0000)]
scan-build: Don't try to index plist-html output directories

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77465 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoRemove an obsolete kludge based on the previous, completely broken handling of functi...
Douglas Gregor [Wed, 29 Jul 2009 16:15:53 +0000 (16:15 +0000)]
Remove an obsolete kludge based on the previous, completely broken handling of function templates

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77464 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoTest redefinition of class template partial specializations
Douglas Gregor [Wed, 29 Jul 2009 16:13:25 +0000 (16:13 +0000)]
Test redefinition of class template partial specializations

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77463 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoUse the new statement/expression profiling code to unique dependent
Douglas Gregor [Wed, 29 Jul 2009 16:09:57 +0000 (16:09 +0000)]
Use the new statement/expression profiling code to unique dependent
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77462 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoUse the existing API for base offset. Use suitable llvm type
Fariborz Jahanian [Wed, 29 Jul 2009 15:54:56 +0000 (15:54 +0000)]
Use the existing API for base offset. Use suitable llvm type
for offset ir-gen.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77458 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoMake the Python TestRunner work for individual tests
Douglas Gregor [Wed, 29 Jul 2009 15:32:08 +0000 (15:32 +0000)]
Make the Python TestRunner work for individual tests

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77456 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoRemove an ObjC-specific XFAIL (and tweak test).
Steve Naroff [Wed, 29 Jul 2009 15:24:47 +0000 (15:24 +0000)]
Remove an ObjC-specific XFAIL (and tweak test).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77454 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoFix <rdar://problem/7100524> regression: "error: incompatible operand types ('void...
Steve Naroff [Wed, 29 Jul 2009 15:09:39 +0000 (15:09 +0000)]
Fix <rdar://problem/7100524> regression: "error: incompatible operand types ('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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77453 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoIncorporate feedback from Chris (on r76979).
Steve Naroff [Wed, 29 Jul 2009 14:06:03 +0000 (14:06 +0000)]
Incorporate feedback from Chris (on r76979).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77452 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoMake functional-style casts emit correct messages, and fix a crash-on-invalid.
Sebastian Redl [Wed, 29 Jul 2009 13:50:23 +0000 (13:50 +0000)]
Make functional-style casts emit correct messages, and fix a crash-on-invalid.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77451 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoadd a fixme
Zhongxing Xu [Wed, 29 Jul 2009 08:13:37 +0000 (08:13 +0000)]
add a fixme

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77447 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agodelete an undefined method.
Zhongxing Xu [Wed, 29 Jul 2009 08:00:02 +0000 (08:00 +0000)]
delete an undefined method.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77446 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoMultiTestRunner: Reenable --vg option.
Daniel Dunbar [Wed, 29 Jul 2009 02:57:25 +0000 (02:57 +0000)]
MultiTestRunner: Reenable --vg option.
 - Simplified from before and using --error-exitcode so failures show up as
   failures.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77424 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoDestroy the ASTConsumer prior to the Context, HTMLPrinter for example wants to
Daniel Dunbar [Wed, 29 Jul 2009 02:40:09 +0000 (02:40 +0000)]
Destroy the ASTConsumer prior to the Context, HTMLPrinter for example wants to
do a significant amount of work in its destructor, which may access the
context. (PR4642).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77423 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoBlockScopeInfo::hasPrototype was uninitialized.
Daniel Dunbar [Wed, 29 Jul 2009 01:59:17 +0000 (01:59 +0000)]
BlockScopeInfo::hasPrototype was uninitialized.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77421 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoCharLiteralParser::IsMultiChar was sometimes uninitialized.
Daniel Dunbar [Wed, 29 Jul 2009 01:46:05 +0000 (01:46 +0000)]
CharLiteralParser::IsMultiChar was sometimes uninitialized.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77420 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAdd missing '"'
Daniel Dunbar [Wed, 29 Jul 2009 01:10:25 +0000 (01:10 +0000)]
Add missing '"'

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77416 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoCode refactoring to define getCXXRecordDeclForPointerType
Fariborz Jahanian [Wed, 29 Jul 2009 00:44:13 +0000 (00:44 +0000)]
Code refactoring to define getCXXRecordDeclForPointerType
and use it in several places.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77411 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoBe sure to turn on -fblocks.
Mike Stump [Wed, 29 Jul 2009 00:17:20 +0000 (00:17 +0000)]
Be sure to turn on -fblocks.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77406 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoSome minor cleanups, thanks Chris.
Mike Stump [Tue, 28 Jul 2009 23:57:15 +0000 (23:57 +0000)]
Some minor cleanups, thanks Chris.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77402 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoSome style fixes, thanks Chris.
Mike Stump [Tue, 28 Jul 2009 23:47:15 +0000 (23:47 +0000)]
Some style fixes, thanks Chris.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77400 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAdd support for -Wmissing-noreturn.
Mike Stump [Tue, 28 Jul 2009 23:11:12 +0000 (23:11 +0000)]
Add support for -Wmissing-noreturn.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77391 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoRefactor the code that produces a TemplateSpecializationType, so that
Douglas Gregor [Tue, 28 Jul 2009 23:00:59 +0000 (23:00 +0000)]
Refactor the code that produces a TemplateSpecializationType, so that
canonicalization for dependent TemplateSpecializationTypes occurs
within ASTContext::getTemplateSpecializationType. Also, move template
argument canonicalization into ASTContext::getCanonicalTemplateArgument.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77388 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoremove extraneous braces
Chris Lattner [Tue, 28 Jul 2009 22:49:34 +0000 (22:49 +0000)]
remove extraneous braces

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77386 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAdd noreturn support for blocks.
Mike Stump [Tue, 28 Jul 2009 22:04:01 +0000 (22:04 +0000)]
Add noreturn support for blocks.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77377 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoir-gen derived-to-base conversion in implicit casts.
Fariborz Jahanian [Tue, 28 Jul 2009 22:00:58 +0000 (22:00 +0000)]
ir-gen derived-to-base conversion in implicit casts.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77374 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoUpdate for LLVM API change.
Owen Anderson [Tue, 28 Jul 2009 21:22:35 +0000 (21:22 +0000)]
Update for LLVM API change.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77368 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoRemove the old RecordOrganizer.
Anders Carlsson [Tue, 28 Jul 2009 21:03:34 +0000 (21:03 +0000)]
Remove the old RecordOrganizer.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77365 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoFix PR 4631. The compound initializers of unions were not being evaluated, which
Ted Kremenek [Tue, 28 Jul 2009 20:46:55 +0000 (20:46 +0000)]
Fix PR 4631. The compound initializers of unions were not being evaluated, which
could cause false positives if any the subexpressions had side-effects. These
initializers weren't evaluated because the StoreManager would need to handle
them, but that's an orthogonal problem of whether or not the StoreManager can
handle the binding.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77361 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAdd missing break statement.
Ted Kremenek [Tue, 28 Jul 2009 19:34:30 +0000 (19:34 +0000)]
Add missing break statement.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77356 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoUpdate comments.
Mike Stump [Tue, 28 Jul 2009 19:31:47 +0000 (19:31 +0000)]
Update comments.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77355 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoFix regression in attribute 'nonnull' checking when a transition node
Ted Kremenek [Tue, 28 Jul 2009 19:24:31 +0000 (19:24 +0000)]
Fix regression in attribute 'nonnull' checking when a transition node
was created but not added to the destination NodeSet.  This fixes PR 4630.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77353 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAdd a field for C++ specific data to ASTRecordLayout. Use it to store the non-virtual...
Anders Carlsson [Tue, 28 Jul 2009 19:24:15 +0000 (19:24 +0000)]
Add a field for C++ specific data to ASTRecordLayout. Use it to store the non-virtual size and alignment + base offsets.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77352 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoMore cleanup of data member access and then some.
Fariborz Jahanian [Tue, 28 Jul 2009 18:54:57 +0000 (18:54 +0000)]
More cleanup of data member access and then some.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77351 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoUpdate for LLVM API change.
Owen Anderson [Tue, 28 Jul 2009 18:33:04 +0000 (18:33 +0000)]
Update for LLVM API change.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77349 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agofix PR4633: cast to void should silence the 'unused expression' warning.
Chris Lattner [Tue, 28 Jul 2009 18:25:28 +0000 (18:25 +0000)]
fix PR4633: cast to void should silence the 'unused expression' warning.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77344 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoadd some fixme's
Chris Lattner [Tue, 28 Jul 2009 18:25:06 +0000 (18:25 +0000)]
add some fixme's

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77343 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agothis test crashes, disable it harder.
Chris Lattner [Tue, 28 Jul 2009 18:22:50 +0000 (18:22 +0000)]
this test crashes, disable it harder.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77342 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoSome code cleanup.
Fariborz Jahanian [Tue, 28 Jul 2009 18:09:28 +0000 (18:09 +0000)]
Some code cleanup.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77339 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoMore CGRecordLayoutBuilder cleanup.
Anders Carlsson [Tue, 28 Jul 2009 17:56:36 +0000 (17:56 +0000)]
More CGRecordLayoutBuilder cleanup.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77335 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoMore work toward data member access ir-gen.
Fariborz Jahanian [Tue, 28 Jul 2009 17:38:28 +0000 (17:38 +0000)]
More work toward data member access ir-gen.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77332 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAdd two more tests.
Anders Carlsson [Tue, 28 Jul 2009 17:14:18 +0000 (17:14 +0000)]
Add two more tests.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77330 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAdd a template test that requires canonical expression comparison
Douglas Gregor [Tue, 28 Jul 2009 16:39:54 +0000 (16:39 +0000)]
Add a template test that requires canonical expression comparison

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77325 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoFix a typo in a comment
Douglas Gregor [Tue, 28 Jul 2009 16:39:25 +0000 (16:39 +0000)]
Fix a typo in a comment

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77324 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoProfiling the pointer of a canonical type is sufficient to uniquely identify the...
Douglas Gregor [Tue, 28 Jul 2009 15:32:17 +0000 (15:32 +0000)]
Profiling the pointer of a canonical type is sufficient to uniquely identify the type

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77321 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoFinish profile support for statements.
Douglas Gregor [Tue, 28 Jul 2009 15:27:13 +0000 (15:27 +0000)]
Finish profile support for statements.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77320 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoComplete profile support for C++ and Objective-C expressions
Douglas Gregor [Tue, 28 Jul 2009 14:44:31 +0000 (14:44 +0000)]
Complete profile support for C++ and Objective-C expressions

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77318 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoBounds checking for address spaces.
John McCall [Tue, 28 Jul 2009 06:52:18 +0000 (06:52 +0000)]
Bounds checking for address spaces.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77303 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoCallExpr's SubExprs sometimes were allocated in the wrong place.
Daniel Dunbar [Tue, 28 Jul 2009 06:29:46 +0000 (06:29 +0000)]
CallExpr's SubExprs sometimes were allocated in the wrong place.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77302 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoReimplement QualifierSet using a single word, as requested by dgregor.
John McCall [Tue, 28 Jul 2009 05:41:20 +0000 (05:41 +0000)]
Reimplement QualifierSet using a single word, as requested by dgregor.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77299 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoImplement ObjCMethodDecl::getCanonicalDecl().
Argyrios Kyrtzidis [Tue, 28 Jul 2009 05:11:17 +0000 (05:11 +0000)]
Implement ObjCMethodDecl::getCanonicalDecl().

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77298 91177308-0d34-0410-b5e6-96231b3b80d8

15 years ago-Add ObjCCategoryImplDecl::getCategoryClass() which returns the category interface...
Argyrios Kyrtzidis [Tue, 28 Jul 2009 05:11:05 +0000 (05:11 +0000)]
-Add ObjCCategoryImplDecl::getCategoryClass() which returns the category interface decl.
-Correct ObjCMethodDecl::getNextRedeclaration(); A method in a ObjCCategoryImplDecl should point to
a method in the associated ObjCCategoryDecl, not the ObjCInterfaceDecl.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77297 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoUse ObjCImplDecl in place of ObjCCategoryImplDecl/ObjCImplementationDecl.
Argyrios Kyrtzidis [Tue, 28 Jul 2009 05:10:52 +0000 (05:10 +0000)]
Use ObjCImplDecl in place of ObjCCategoryImplDecl/ObjCImplementationDecl.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77296 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoMake longjmp a real builtin.
Mike Stump [Tue, 28 Jul 2009 02:25:19 +0000 (02:25 +0000)]
Make longjmp a real builtin.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77291 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAllow functions to be marked "implicit return zero" and so mark main().
John McCall [Tue, 28 Jul 2009 01:00:58 +0000 (01:00 +0000)]
Allow functions to be marked "implicit return zero" and so mark main().
Codegen by initializing the return value with its LLVM type's null value.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77288 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAdd a Profile function for statements so that we can (eventually) determine
Douglas Gregor [Tue, 28 Jul 2009 00:33:38 +0000 (00:33 +0000)]
Add a Profile function for statements so that we can (eventually) determine
when statements and expressions are equivalent.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77284 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoOnly generate preprocessed files during crashes using Clang, not GCC.
Ted Kremenek [Tue, 28 Jul 2009 00:14:21 +0000 (00:14 +0000)]
Only generate preprocessed files during crashes using Clang, not GCC.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77281 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoFix helper function GetNextStmt() to look for the first statement that has a
Ted Kremenek [Tue, 28 Jul 2009 00:07:15 +0000 (00:07 +0000)]
Fix helper function GetNextStmt() to look for the first statement that has a
valid SourceLocation.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77280 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoMake sure to move the comment with the code.
Mike Stump [Tue, 28 Jul 2009 00:07:08 +0000 (00:07 +0000)]
Make sure to move the comment with the code.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77279 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoPatch for objc's zero-const exception to not assume
Fariborz Jahanian [Mon, 27 Jul 2009 23:12:41 +0000 (23:12 +0000)]
Patch for objc's zero-const exception to not assume
that @catch(...) cathces all exceptions (c++ objects
are not cought by that).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77270 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoUpdate for LLVM API change.
Owen Anderson [Mon, 27 Jul 2009 22:29:56 +0000 (22:29 +0000)]
Update for LLVM API change.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77267 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoEnsure we can work through typedefs.
Mike Stump [Mon, 27 Jul 2009 22:25:19 +0000 (22:25 +0000)]
Ensure we can work through typedefs.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77265 91177308-0d34-0410-b5e6-96231b3b80d8

15 years ago(1) Enable PlistDiagnostics to take an option "PathDiagnosticClientFactory"
Ted Kremenek [Mon, 27 Jul 2009 22:13:39 +0000 (22:13 +0000)]
(1) Enable PlistDiagnostics to take an option "PathDiagnosticClientFactory"
object that it can use to forward PathDiagnostics for further processing. Along
with this feature, the PlistDiagnostics object logs which files are created by
the forwarding of the PathDiagnostics.

(2) Create a new PathDiagnosticClientFactory object for HTMLDiagnostics,
allowing other PathDiagnosticClients to forward PathDiagnostics through an
opaque interface.

(3) Create a "plist-html" diagnostics option in AnalysisConsumer to allow the
    logging of HTML files created in a hybrid Plist+HTML diagnostic client.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77264 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAdd scan-build support for 'plist-html', a hybrid mode that supports the
Ted Kremenek [Mon, 27 Jul 2009 22:10:34 +0000 (22:10 +0000)]
Add scan-build support for 'plist-html', a hybrid mode that supports the
creation of both HTML and plist files. Plist files are currently not generated
using the same layout algorithm as just specifying '-plist', so this is mainly
intended to help support automated runs of the analyzer.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77263 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAdd knowledge about _longjmp being noreturn.
Mike Stump [Mon, 27 Jul 2009 21:45:16 +0000 (21:45 +0000)]
Add knowledge about _longjmp being noreturn.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77254 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAdd builtin knowledge about longjmp being noreturn. Add printing for
Mike Stump [Mon, 27 Jul 2009 21:33:40 +0000 (21:33 +0000)]
Add builtin knowledge about longjmp being noreturn.  Add printing for
the noreturn attribute.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77253 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoUpdate for LLVM API change.
Owen Anderson [Mon, 27 Jul 2009 21:00:51 +0000 (21:00 +0000)]
Update for LLVM API change.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77249 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoSome minor changes toward support of data
Fariborz Jahanian [Mon, 27 Jul 2009 20:57:45 +0000 (20:57 +0000)]
Some minor changes toward support of data
member access in the presense of non-virtual bases.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77246 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agofix test (broken in r77224)
Benjamin Kramer [Mon, 27 Jul 2009 19:53:49 +0000 (19:53 +0000)]
fix test (broken in r77224)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77241 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoAdd noreturn for exit.
Mike Stump [Mon, 27 Jul 2009 19:14:18 +0000 (19:14 +0000)]
Add noreturn for exit.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77237 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoMake ObjCImplDecl inherit from ObjCContainerDecl.
Argyrios Kyrtzidis [Mon, 27 Jul 2009 19:04:32 +0000 (19:04 +0000)]
Make ObjCImplDecl inherit from ObjCContainerDecl.

ObjCContainerDecl now is the root class for objc decls that contain methods.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77235 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoTweak MultiTestRunner --path argument.
Daniel Dunbar [Mon, 27 Jul 2009 19:01:13 +0000 (19:01 +0000)]
Tweak MultiTestRunner --path argument.
 - Accept multiple values instead of embedding separator.
 - Make sure this gets used when searching for 'clang' binary.
 - Switch makefiles to using --path to stay in sync with cmake.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77234 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoUse DICompositeType->replaceAllUsesWith()
Devang Patel [Mon, 27 Jul 2009 18:42:03 +0000 (18:42 +0000)]
Use DICompositeType->replaceAllUsesWith()

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77228 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoFix typo in error message
Douglas Gregor [Mon, 27 Jul 2009 18:33:18 +0000 (18:33 +0000)]
Fix typo in error message

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77224 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoPrepare CMake regression testing for Daniel's upcoming fix to the test runner
Douglas Gregor [Mon, 27 Jul 2009 18:31:49 +0000 (18:31 +0000)]
Prepare CMake regression testing for Daniel's upcoming fix to the test runner

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77223 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoWhen instantiating a variable without an initializer, call
Douglas Gregor [Mon, 27 Jul 2009 17:43:39 +0000 (17:43 +0000)]
When instantiating a variable without an initializer, call
ActOnUninitializedDecl.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77211 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoUse the CGRecordLayoutBuilder even if there are no fields, because in C++ an empty...
Anders Carlsson [Mon, 27 Jul 2009 17:10:54 +0000 (17:10 +0000)]
Use the CGRecordLayoutBuilder even if there are no fields, because in C++ an empty class will have a padding byte.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77205 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoEnable the new struct type builder now that the constant struct builder works. (The...
Anders Carlsson [Mon, 27 Jul 2009 15:31:55 +0000 (15:31 +0000)]
Enable the new struct type builder now that the constant struct builder works. (The old code will still be there until we know that everything works well.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77190 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoFix a tail padding bug in the record layout builder code. The bug was found by an...
Anders Carlsson [Mon, 27 Jul 2009 14:55:54 +0000 (14:55 +0000)]
Fix a tail padding bug in the record layout builder code. The bug was found by an existing test.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77189 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoEnable the new constant struct builder by default. The old code is still in place...
Anders Carlsson [Mon, 27 Jul 2009 05:54:15 +0000 (05:54 +0000)]
Enable the new constant struct builder by default. The old code is still in place but will be removed shortly. The new struct builder works on big endian systems.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77185 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoadd bugzilla #
Chris Lattner [Mon, 27 Jul 2009 04:49:58 +0000 (04:49 +0000)]
add bugzilla #

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77183 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoMore work on the constant struct builder, fix a couple of thinkos and add support...
Anders Carlsson [Mon, 27 Jul 2009 02:56:37 +0000 (02:56 +0000)]
More work on the constant struct builder, fix a couple of thinkos and add support for inserting part of a bitfield in the previous byte.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77180 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoMore work on bitfield support in the new constant struct builder.
Anders Carlsson [Mon, 27 Jul 2009 01:23:51 +0000 (01:23 +0000)]
More work on bitfield support in the new constant struct builder.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77177 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoFix PR4624.
Mike Stump [Mon, 27 Jul 2009 00:44:23 +0000 (00:44 +0000)]
Fix PR4624.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77176 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agofix segfault (because of erasing after the vector boundaries) when the cached token...
Nuno Lopes [Sun, 26 Jul 2009 16:36:45 +0000 (16:36 +0000)]
fix segfault (because of erasing after the vector boundaries) when the cached token position is at the end

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77159 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoadd gentoo 2009.0 g++ header locations
Nuno Lopes [Sun, 26 Jul 2009 16:14:05 +0000 (16:14 +0000)]
add gentoo 2009.0 g++ header locations

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77158 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoSwitch to getName()
Daniel Dunbar [Sun, 26 Jul 2009 09:28:40 +0000 (09:28 +0000)]
Switch to getName()

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77151 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoSwitch to using llvm::Value::getName()
Daniel Dunbar [Sun, 26 Jul 2009 08:32:30 +0000 (08:32 +0000)]
Switch to using llvm::Value::getName()

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77147 91177308-0d34-0410-b5e6-96231b3b80d8

15 years agoUpdate for API change.
Daniel Dunbar [Sun, 26 Jul 2009 02:21:04 +0000 (02:21 +0000)]
Update for API change.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77112 91177308-0d34-0410-b5e6-96231b3b80d8