summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Keep track of when DependentNameTypes have no associated keywordDouglas Gregor2010-04-246-13/+15
| | | | | | | (e.g., no typename, enum, class, etc.), e.g., because the context is one that is known to refer to a type. Patch from Enea Zaffanella! llvm-svn: 102243
* Update prototypes.Benjamin Kramer2010-04-241-3/+4
| | | | llvm-svn: 102241
* Fix a place in inline asm lowering which was creating a TruncInst with aDan Gohman2010-04-241-3/+8
| | | | | | | pointer operand. This fixes an abort on MultiSource/Applications/ClamAV/libclamav_mbox.c. llvm-svn: 102238
* Recommit r102215, this time being more careful to only set the "principalJohn McCall2010-04-246-54/+51
| | | | | | | declaration" (i.e. the only which will actually be looked up) to have the non-member-operator bit. llvm-svn: 102231
* Teach clang -fixit to modify files in-place, or -fixit=suffix to create newNick Lewycky2010-04-2421-191/+109
| | | | | | files with the additional suffix in the middle. llvm-svn: 102230
* Revert accidental check-in.Devang Patel2010-04-241-13/+5
| | | | llvm-svn: 102226
* Revert r102215. This causes clang crash while compiling a test case from gdb ↵Devang Patel2010-04-247-44/+53
| | | | | | testsuite. llvm-svn: 102224
* With -fno-constant-cfstrrings, class NSConstantStringFariborz Jahanian2010-04-232-0/+17
| | | | | | must be there or it is error (Next runtime). llvm-svn: 102223
* Rework Parser-Sema interface for Objective-C @catch exception objectDouglas Gregor2010-04-235-11/+15
| | | | | | | | | arguments. Rather than having the parser call ActOnParamDeclarator (which is a bit of a hack), call a new ActOnObjCExceptionDecl action. We'll be moving more functionality into this handler to perform earlier checking of @catch. llvm-svn: 102222
* Improve the AST representation of Objective-C @try/@catch/@finallyDouglas Gregor2010-04-2317-173/+329
| | | | | | | | | | statements. Instead of the @try having a single @catch, where all of the @catch's were chained (using an O(n^2) algorithm nonetheless), @try just holds an array of its @catch blocks. The resulting AST is slightly more compact (not important) and better represents the actual language semantics (good). llvm-svn: 102221
* More -fno-constant-cfstrings API work.Fariborz Jahanian2010-04-232-4/+15
| | | | llvm-svn: 102219
* Add an InheritancePath parameter to the ImplicitCastExpr constructor.Anders Carlsson2010-04-2314-149/+185
| | | | llvm-svn: 102218
* Transition the last acceptable-result filter kind in LookupResult over to useJohn McCall2010-04-236-40/+39
| | | | | | a simple IDNS mask by introducing a namespace for non-member operators. llvm-svn: 102215
* Make Parser::ConsumeAndStoreUntil() more consistent with Parser::SkipUntil().Argyrios Kyrtzidis2010-04-234-18/+23
| | | | | | | | | ConsumeAndStoreUntil would stop at tok::unknown when caching an inline method definition while SkipUntil would go past it while parsing the method. Fixes PR 6903. llvm-svn: 102214
* Destroy the inheritance path.Anders Carlsson2010-04-232-0/+9
| | | | llvm-svn: 102211
* Add an inheritance path member variable to CastExpr. For now it's always ↵Anders Carlsson2010-04-231-5/+54
| | | | | | null but for derived-to-base and base-to-derived cast expressions it will contain the full base path. This is needed to avoid ambiguities. llvm-svn: 102210
* Turn CXXMethodVector into a generic class template.Anders Carlsson2010-04-234-90/+138
| | | | llvm-svn: 102208
* NeXT/EH: When generating the rethrow code for a finally block, make sure toDaniel Dunbar2010-04-232-2/+30
| | | | | | | chain outwards when inside a nested exception scope. - A real test for this is going into LLVM test-suite. llvm-svn: 102204
* NeXT/EH: Tidy up EH code a bit, don't emit the catch block EH handler if it ↵Daniel Dunbar2010-04-231-27/+32
| | | | | | is unreachable. llvm-svn: 102203
* Recommit my change to how C++ does elaborated type lookups, now withJohn McCall2010-04-2313-105/+277
| | | | | | two bugfixes which fix selfhost and (hopefully) the nightly tests. llvm-svn: 102198
* Improve on my previous diagnostics: per Doug's comment.Fariborz Jahanian2010-04-232-4/+4
| | | | llvm-svn: 102190
* More work toward implementingFariborz Jahanian2010-04-239-14/+152
| | | | | | NeXt's -fno-constant-cfstrings - wip. llvm-svn: 102189
* Implement PR6845. We allow matching constraints to have differentChris Lattner2010-04-233-59/+104
| | | | | | | | input and output types when the smaller value isn't mentioned in the asm string. Extend this support from integers to also allowing fp values to be mismatched (if not mentioned in the asm string). llvm-svn: 102188
* Trying to improve on a diagnostics for properties.Fariborz Jahanian2010-04-232-5/+5
| | | | llvm-svn: 102187
* Require a complete type for the lhs of member pointer dereference operations ↵Sebastian Redl2010-04-232-0/+15
| | | | | | if the type isn't exactly the same as the container class. Fixes PR6783. llvm-svn: 102186
* fix typoChris Lattner2010-04-231-1/+1
| | | | llvm-svn: 102183
* rename testChris Lattner2010-04-231-0/+0
| | | | llvm-svn: 102182
* david conrad points out that {|} in inline assembly on arm are not asmChris Lattner2010-04-235-4/+33
| | | | | | variants. This fixes neon inline asm which my patch for PR6780 broke. llvm-svn: 102181
* When instantiating a typedef of an anonymous tag type, note in the tagDouglas Gregor2010-04-232-0/+18
| | | | | | | declaration that this typedef gives the tag a name. Fixes a problem uncovered by Boost.GIL (Generic Image Library). llvm-svn: 102180
* Cleanup.Anders Carlsson2010-04-231-2/+1
| | | | llvm-svn: 102179
* Handle copy initialization in BuildImplicitMemberInitializer. Not used yet.Anders Carlsson2010-04-231-6/+35
| | | | llvm-svn: 102178
* add GNU C++ include paths for Fedora 11,12 x86_64,Chris Lattner2010-04-231-1/+13
| | | | | | patch by mikem! llvm-svn: 102177
* Revert "C++ doesn't really use "namespaces" for different kinds of names the ↵Daniel Dunbar2010-04-2311-251/+103
| | | | | | same", which seems to break most C++ nightly test apps. llvm-svn: 102174
* concepts is not a keyword here and fix copy-pasto.Nick Lewycky2010-04-231-2/+2
| | | | llvm-svn: 102172
* Strip cv-qualifiers when building C++ constructor and destructorDouglas Gregor2010-04-232-2/+12
| | | | | | names. llvm-svn: 102171
* Handle compound assignment expressions (i += j) as lvalues, which isDouglas Gregor2010-04-234-12/+93
| | | | | | | permitted in C++ but not in C. Fixes PR6900. Clang can now handle all of Boost.Lambda's regression tests. llvm-svn: 102170
* Add another 'catch all' access diagnostic.Anders Carlsson2010-04-232-10/+11
| | | | llvm-svn: 102169
* Emit a lame diagnostic when we can't mangle operator namesDouglas Gregor2010-04-231-1/+5
| | | | llvm-svn: 102168
* Mangle dependent template names such as the nested-name-specifier inDouglas Gregor2010-04-232-6/+76
| | | | | | | | | T::apply <U>::type Fixes PR6899, although I want to dig a little deeper into the FIXME for dependent template names that refer to operators. llvm-svn: 102167
* Add an ImplicitInitializerKind enum and pass it to ↵Anders Carlsson2010-04-231-11/+62
| | | | | | BuildImplicitBaseInitializer and BuildImplicitMemberInitializer. llvm-svn: 102166
* Fix a think-o that broke self-host.Anders Carlsson2010-04-232-20/+31
| | | | llvm-svn: 102165
* C++ doesn't really use "namespaces" for different kinds of names the sameJohn McCall2010-04-2311-103/+251
| | | | | | | | | | | | | way that C does. Among other differences, elaborated type specifiers are defined to skip "non-types", which, as you might imagine, does not include typedefs. Rework our use of IDNS masks to capture the semantics of different kinds of declarations better, and remove most current lookup filters. Removing the last remaining filter is more complicated and will happen in a separate patch. Fixes PR 6885 as well some spectrum of unfiled bugs. llvm-svn: 102164
* Change the 'declared at' diagnostic to say 'declared here'.Anders Carlsson2010-04-239-24/+24
| | | | llvm-svn: 102163
* Factor code to initialize an implicit member out into a separate function.Anders Carlsson2010-04-232-40/+63
| | | | llvm-svn: 102162
* When parsing a cast-expression that starts with a scope annotation,Douglas Gregor2010-04-232-0/+30
| | | | | | | try to annotate as a type first to determine whether we have a functional-style cast. Patch by Eli Friedman, fixes PR6830. llvm-svn: 102161
* I hate default statements. Fixes PR6874.Douglas Gregor2010-04-232-4/+44
| | | | llvm-svn: 102160
* Remove calls to isDependentContext, since we handle that case earlier in the ↵Anders Carlsson2010-04-231-23/+15
| | | | | | code. Make BuildImplicitBaseInitializer return a boolean instead. llvm-svn: 102159
* Template instantiation for @try and @finally (but not @catch, yet).Douglas Gregor2010-04-222-6/+81
| | | | llvm-svn: 102147
* Make TemplateDecl and ObjCContainerDecl abstractDouglas Gregor2010-04-224-11/+4
| | | | llvm-svn: 102145
* Kill off IDNS_ObjCImplementation and IDNS_ObjCCategoryName; theyDouglas Gregor2010-04-224-19/+5
| | | | | | | aren't and never were used. There's a gap in the bit pattern for IDNS now, but I'm sure *someone* will fill it. llvm-svn: 102143
OpenPOWER on IntegriCloud