summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix compile error. Per Fariborz.Dale Johannesen2010-07-101-1/+2
| | | | llvm-svn: 108051
* Lay the ground work for resoving PR7047. This doesn't actually fix it becauseChandler Carruth2010-07-101-3/+18
| | | | | | | | | | default arguments to template parameters don't have a DeclContext when instantiated, and so we can't detect that we're in an instantiation context as opposed to the definition context. However, it fixes the more commonly-occuring cases in TMP code that use devolve to this type of tautology after substitution. llvm-svn: 108044
* Add PCH support for the remaining C++ exprs.Argyrios Kyrtzidis2010-07-103-13/+69
| | | | llvm-svn: 108042
* Hack for dealing with commas until we support multiple alternative ↵John Thompson2010-07-091-0/+4
| | | | | | constraints, per pr7338. llvm-svn: 108028
* BlockDeclRefExpr of a dependent type mustFariborz Jahanian2010-07-091-13/+16
| | | | | | be a dependent expression when its is built. llvm-svn: 108026
* Instantiation of byref variable inFariborz Jahanian2010-07-091-0/+4
| | | | | | block literal expression. llvm-svn: 108019
* Slightly improve the diagnostic when using a qualified function typedef to ↵Sebastian Redl2010-07-091-5/+6
| | | | | | declare nonmember or static member functions. llvm-svn: 108018
* Reorganize how ClassTemplate[Partial]SpecializationDecls are read/written to ↵Argyrios Kyrtzidis2010-07-092-37/+38
| | | | | | | | avoid the possibility of adding an unitialized one into the folding set. llvm-svn: 108016
* isMemberSpecialization -> setMemberSpecialization.Argyrios Kyrtzidis2010-07-091-1/+1
| | | | llvm-svn: 108015
* When given the -chained-pch option and a previous PCH file, have the ↵Sebastian Redl2010-07-092-12/+21
| | | | | | PCHWriter emit a CHAINED_METADATA record instead of METADATA, and write a link to the previous file there. llvm-svn: 108014
* Fix a crashing but trying to print a TemplateTemplateParmDeclCraig Silverstein2010-07-091-1/+5
| | | | | | | | | | | | | | | for code like this: template<template<typename T> class U> class V {}; The problem is that the DeclPrinter assumed all TemplateDecls have a getTemplatedClass(), but template template params don't (so we got a NULL dereference). The solution is to detect if we're a template template param, and construct the template class name ('class U') specially in this case. OKed by dgregor and chandlerc llvm-svn: 108007
* Rip out the floating point return type handling from the atomic builtin. It'sChandler Carruth2010-07-091-2/+1
| | | | | | | wrong, and we don't handle floating point value type arguments yet anyways. Will add correct logic for both when I finish the patch. llvm-svn: 108004
* Fix PR7600, and correctly convert the result of an atomic builtin to theChandler Carruth2010-07-092-29/+59
| | | | | | | | | expected value type. This is necessary as the builtin is internally represented as only operating on integral types. Also, add a FIXME to add support for floating point value types. llvm-svn: 108002
* Instantiation of block literal expressions. wip.Fariborz Jahanian2010-07-093-9/+74
| | | | llvm-svn: 108000
* Correctly initialize Reader to null.Sebastian Redl2010-07-091-1/+1
| | | | llvm-svn: 107994
* Really respect -chained-pch.Sebastian Redl2010-07-091-7/+5
| | | | llvm-svn: 107993
* Introduce -f{no-}spell-checking options to enable/disableDouglas Gregor2010-07-095-1/+8
| | | | | | | spell-checking. By default, spell-checking is enabled for Clang (obviously) but disabled in CIndex for performance reasons. llvm-svn: 107992
* Revert 107953, remove comma ignoring from PPC constraints.John Thompson2010-07-091-2/+0
| | | | llvm-svn: 107956
* Updating PPC target to ignore commas in asm contrains, as apparently that is ↵John Thompson2010-07-091-0/+2
| | | | | | what gcc does. llvm-svn: 107953
* Add a frontend option -chained-pch and don't pass an active PCH reader to ↵Sebastian Redl2010-07-092-1/+6
| | | | | | the PCH writer if it is not set, preventing creation of chained PCH files. Since the reader is so far unused, effectively no functionality change. llvm-svn: 107936
* Cleanup in CStringChecker. Now properly bifurcates the state for ↵Jordy Rose2010-07-081-139/+171
| | | | | | zero/nonzero sizes. llvm-svn: 107935
* Support code completion for parameter names in Objective-C methodDouglas Gregor2010-07-083-0/+31
| | | | | | declarations. llvm-svn: 107933
* Introduce a new code-completion point prior to an identifier in theDouglas Gregor2010-07-083-132/+212
| | | | | | | | | | | | selector of an Objective-C method declaration, e.g., given - (int)first:(int)x second:(int)y; this code completion point triggers at the location of "second". It will provide completions that fill out the method declaration for any known method, anywhere in the translation unit. llvm-svn: 107929
* When looking for an entity's Scope, don't consider scopes that can't contain ↵Sebastian Redl2010-07-081-3/+6
| | | | | | declarations. Fixes PR7594. llvm-svn: 107927
* Some preparatory work for chained PCH. No functionality change.Sebastian Redl2010-07-084-6/+15
| | | | llvm-svn: 107915
* During code completion, give the "nil" and "NULL" macros the sameDouglas Gregor2010-07-081-4/+22
| | | | | | | priority as other constants. And, if we're in a place where we prefer a pointer type, consider "nil" and "NULL" to be close matches. llvm-svn: 107910
* Allow C-style casts and reinterpret_casts between block pointers andDouglas Gregor2010-07-081-7/+29
| | | | | | either integer values or other pointers. Fixes <rdar://problem/8134521>. llvm-svn: 107905
* PR7588: Fix the _mm_shufflehi_epi16 macro. (The issue was an oversightEli Friedman2010-07-081-3/+4
| | | | | | involving operator precedence.) llvm-svn: 107902
* Handle forward declarations properly in debug info.Devang Patel2010-07-081-6/+14
| | | | | | | Patch by Alexander Kabaev. PR 7595. llvm-svn: 107900
* When performing substitution of template arguments within the body ofDouglas Gregor2010-07-087-27/+61
| | | | | | | a template, be sure to include the template arguments from the injected-class-name. Fixes PR7587. llvm-svn: 107895
* Introduce PCHReader::GetTranslationUnitDecl() and use it instead of ↵Argyrios Kyrtzidis2010-07-081-1/+8
| | | | | | | | | ReadDeclRecord when initializing. ReadDeclRecord would hit assertion if the translation unit declaration was already loaded during IdentifierInfo initialization. llvm-svn: 107885
* Support TemplateTemplateParmDecl for PCH.Argyrios Kyrtzidis2010-07-082-4/+19
| | | | llvm-svn: 107884
* For TagType and TemplateSpecializationType, isDependent calculation may be ↵Argyrios Kyrtzidis2010-07-082-10/+24
| | | | | | | | | invalid because some decls that the calculation is using may still be initializing. Thus, store the isDependent flag to PCH and restore directly to Type. llvm-svn: 107873
* Read/write the C++ parts of DeclRefExpr and MemberExpr for PCH.Argyrios Kyrtzidis2010-07-083-16/+111
| | | | llvm-svn: 107872
* Fix reading of UsingDecl from PCH.Argyrios Kyrtzidis2010-07-081-1/+3
| | | | llvm-svn: 107871
* Add support for differentiating between attributes ignored when handled andChandler Carruth2010-07-081-1/+2
| | | | | | | | unknown attributes that we discard. Add a diagnostic group for unknown attribute warnings to allow turning these off when we don't care. Also consolidates the tests for this case. llvm-svn: 107864
* Mark calls to 'throw()' functions as nounwind, and mark the functions nounwindJohn McCall2010-07-081-0/+6
| | | | | | as well. llvm-svn: 107858
* Reinstate the fix for PR7556. A silly use of isTrivial() wasDouglas Gregor2010-07-0819-67/+63
| | | | | | suppressing copies of objects with trivial copy constructors. llvm-svn: 107857
* fix the clang side of PR7437: EmitAggregateCopyChris Lattner2010-07-081-15/+8
| | | | | | | | | | | was not producing a memcpy with the right address spaces because of two places in it doing casts of the arguments to i8, one of which that didn't preserve the address space. There is also an optimizer bug here. llvm-svn: 107842
* Revert r107828 and r107827, the fix for PR7556, which seems to beDouglas Gregor2010-07-0718-63/+69
| | | | | | breaking bootstrap on Linux. llvm-svn: 107837
* fix PR4499, patch by Kyle Dean!Chris Lattner2010-07-071-24/+16
| | | | llvm-svn: 107836
* Rip out the C++0x-specific handling of destructor names. The specification ↵Sebastian Redl2010-07-071-45/+25
| | | | | | is still in flux and unclear, and our interim workaround was broken. Fixes PR7467. llvm-svn: 107835
* A using declaration can redeclare a typedef to the same type. TheseDouglas Gregor2010-07-071-2/+25
| | | | | | | | typedefs won't have the same canonical declaration (since they are distinct), so we need to check for this case specifically. Fixes <rdar://problem/8018262>. llvm-svn: 107833
* Rename CXXZeroInitValueExpr to CXXScalarValueInitExpr, to reflect itsDouglas Gregor2010-07-0716-36/+36
| | | | | | newly-narrowed scope. No functionality change. llvm-svn: 107828
* Do not use CXXZeroValueInitExpr for class types. Instead, useDouglas Gregor2010-07-074-33/+27
| | | | | | | | | CXXConstructExpr/CXXTemporaryObjectExpr/CXXNewExpr as appropriate. Fixes PR7556, and provides a slide codegen improvement when copy-initializing a POD class type from a value-initialized temporary. Previously, we weren't eliding the copy. llvm-svn: 107827
* Fix an issue with opencl init list checking.Nate Begeman2010-07-071-2/+7
| | | | llvm-svn: 107824
* When printing statistics for the ASTContext, also print them for its ↵Douglas Gregor2010-07-071-0/+3
| | | | | | BumpPtrAllocator llvm-svn: 107790
* add driver support for minix, patch by Kees van ReeuwijkChris Lattner2010-07-079-29/+322
| | | | | | from PR7583 llvm-svn: 107788
* Fix broken reading of NestedNameSpecifiers from PCH.Argyrios Kyrtzidis2010-07-071-1/+1
| | | | llvm-svn: 107784
* Delay passing InterestingDecls to the Consumer until when we know we are not ↵Argyrios Kyrtzidis2010-07-072-16/+22
| | | | | | | | in recursive loading and the declarations are fully initialized. llvm-svn: 107783
OpenPOWER on IntegriCloud