summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* When building SwitchStmts in Sema, record whether all the enum values of a ↵Ted Kremenek2010-09-094-35/+69
| | | | | | | | | | switch(enum) where covered by individual case statements. Flow-based analyses may wish to consult this information, and recording this in the AST allows us to obviate reconstructing this information later when we build the CFG. llvm-svn: 113447
* Push the range associated with a nested-name-specifier further throughDouglas Gregor2010-09-081-12/+21
| | | | | | | | TreeTransform, since we were getting an empty source range where we shouldn't. Sadly, the test case is Boost.Proto, and isn't worth reducing. llvm-svn: 113446
* Fix warnings caused by new CXXUuidofExprClass enumerator.Francois Pichet2010-09-084-1/+5
| | | | llvm-svn: 113444
* Add another missing CMake dependency.Daniel Dunbar2010-09-081-0/+1
| | | | llvm-svn: 113443
* Fix a few minor issues with parsing and semantic analysis of C++Douglas Gregor2010-09-084-18/+25
| | | | | | | | typeid expressions: - make sure we have a proper source location for the closing ')' - cache the declaration of std::type_info once we've found it llvm-svn: 113441
* Add support for a few MS extensions supported by the Borland compilerDawn Perchik2010-09-082-6/+33
| | | | | | (__uuidof, _fastcall, etc.). llvm-svn: 113434
* When providing a completion for a function/method parameter of blockDouglas Gregor2010-09-082-20/+36
| | | | | | pointer type, actually provide a usable block literal expression. llvm-svn: 113431
* Test removed.Fariborz Jahanian2010-09-081-20/+0
| | | | llvm-svn: 113428
* Decl::CheckAccessDeclContext() keeps asserting. Access is not set in some cases.Argyrios Kyrtzidis2010-09-081-4/+9
| | | | llvm-svn: 113419
* Removed test case.Fariborz Jahanian2010-09-081-0/+0
| | | | llvm-svn: 113418
* Clean up some of the CMake dependenciesDouglas Gregor2010-09-087-1/+39
| | | | llvm-svn: 113416
* Use the new-initialization code for initializing scalars with aDouglas Gregor2010-09-086-44/+28
| | | | | | | | function-style cast. Previously, we had a (redundant, incorrect) semantic-checking path for non-class types, which allowed value-initialization of a reference type and then crashed. llvm-svn: 113415
* Reverse r113397 until we decide what to do withFariborz Jahanian2010-09-084-45/+1
| | | | | | | use of 'struct objc_object*' for 'is' (and others) in clang. llvm-svn: 113414
* Re-enable CheckAccessDeclContext and make sure it doesn't trigger assertions.Argyrios Kyrtzidis2010-09-083-6/+12
| | | | llvm-svn: 113413
* Initialize the MSVCGuidDecl variable in the correct order.Bill Wendling2010-09-081-2/+3
| | | | llvm-svn: 113412
* Fix a crash when overloading id with objc_object*.Fariborz Jahanian2010-09-085-1/+65
| | | | | | Radar 8400356. llvm-svn: 113397
* Fix C++ PCH issues.Argyrios Kyrtzidis2010-09-087-104/+117
| | | | | | | | | | | PCH got a severe beating by the boost-using test case reported here: http://llvm.org/PR8099 Fix issues like: -When PCH reading, make sure Decl's getASTContext() doesn't get called since a Decl in the parent hierarchy may be initializing. -In ASTDeclReader::VisitFunctionDecl VisitRedeclarable should be called before using FunctionDecl's isCanonicalDecl() -In ASTDeclReader::VisitRedeclarableTemplateDecl CommonOrPrev must be initialized before anything else. llvm-svn: 113391
* Frontend/-H: Add comment on why I used a temporary string here.Daniel Dunbar2010-09-081-0/+1
| | | | llvm-svn: 113379
* Microsoft's __uuidof operator implementation part 1.Francois Pichet2010-09-0819-2/+381
| | | | llvm-svn: 113356
* Allow type definitions inside anonymous struct/union in Microsoft mode.Francois Pichet2010-09-084-6/+68
| | | | llvm-svn: 113354
* Don't give 'global constructor' warnings for function statics, even if they ↵Sebastian Redl2010-09-082-2/+12
| | | | | | have a direct initializer. Fixes PR8095. llvm-svn: 113344
* Put the tautological-comparison-of-unsigned-against-zero warnings inJohn McCall2010-09-084-6/+7
| | | | | | | | | -Wtautological-compare instead of -Wsign-compare, which also implies turning them on by default. Restoration of r112877. llvm-svn: 113334
* Implement ARM static local initialization guards, which are more compact thanJohn McCall2010-09-0812-160/+273
| | | | | | Itanium guards and use a slightly different compiled-in API. llvm-svn: 113330
* Allow (cv) void and incomplete arrays to be passed to the type traits.Sebastian Redl2010-09-084-8/+49
| | | | | | Fixes PR8110, and thus PR8109, PR8097, and parts of PR8101, PR8105 and PR8107. Only a few traits have tests for incomplete arrays, since I'm not yet clear what the result for them should be; Howards wants to file a DR to change the standard. llvm-svn: 113326
* add a fixit when 'main' does ot return 'int'; review welcomeGabor Greif2010-09-082-3/+15
| | | | llvm-svn: 113324
* Provide proper type-source location information forDouglas Gregor2010-09-0814-177/+237
| | | | | | | | CXXTemporaryObjectExpr, CXXScalarValueInitExpr, and CXXUnresolvedConstructExpr, getting rid of a bunch of FIXMEs in the process. llvm-svn: 113319
* Local static block variable referecned in itsFariborz Jahanian2010-09-073-5/+62
| | | | | | | | block-literal initializer expression causes IRgen to crash. This patch fixes by saving it in StaticLocalDecl map already used for such purposes. (radar 8390455). llvm-svn: 113307
* tests: Use -ffreestanding when including stdint.h, to avoid platform ↵Daniel Dunbar2010-09-078-11/+11
| | | | | | dependencies. llvm-svn: 113301
* Fix DeclPrinter to not include '=' in printing when no initializer is ↵Ted Kremenek2010-09-071-3/+3
| | | | | | provided for a VarDecl. Patch by Jim Goodnow II! llvm-svn: 113296
* typoGabor Greif2010-09-071-1/+1
| | | | llvm-svn: 113295
* Improve source-location information for CXXNewExpr, by hanging on toDouglas Gregor2010-09-0710-36/+86
| | | | | | the TypeSourceInfo for the allocated type. Fixes PR7501. llvm-svn: 113291
* Fix null pointer dereference in StreamChecker::Fseek (reported in PR 8081) ↵Ted Kremenek2010-09-072-17/+18
| | | | | | and simplify surrounding checking logic. llvm-svn: 113282
* Re-enabled truncation/extension checking in IdempotentOperationChecker and ↵Tom Care2010-09-072-6/+12
| | | | | | added a test case. llvm-svn: 113269
* Add function attributes to the output of -ast-print-xml, from Martin Vejnar!Douglas Gregor2010-09-072-0/+11
| | | | llvm-svn: 113266
* get rid of a warning.Fariborz Jahanian2010-09-071-3/+3
| | | | llvm-svn: 113256
* Have Sema check for validity of CGString literalFariborz Jahanian2010-09-075-17/+22
| | | | | | instead of asserting in IRGen. Fixes radar 8390459. llvm-svn: 113253
* Allow 'o' and 'V' as constraints for output asm operands.Dale Johannesen2010-09-071-3/+9
| | | | | | Allow '<' and '>' as constraints for input or output. llvm-svn: 113246
* Improve error recovery when we see ':' and expect a ';'.John McCall2010-09-073-1/+27
| | | | | | I, at least, make this typo all the time. llvm-svn: 113243
* Adjust a test that's expecting optimizations to be doneDale Johannesen2010-09-071-3/+3
| | | | | | on MMX palignr; we don't do this for the intrinsics. llvm-svn: 113234
* Driver/Darwin: Catch another case where ld ends up using ld_classic.Daniel Dunbar2010-09-071-0/+10
| | | | llvm-svn: 113226
* Driver/Darwin: Don't pass -demangle to the linker when we know it is going toDaniel Dunbar2010-09-071-1/+7
| | | | | | | use ld_classic. This is a temporary workaround, the linkr itself should handle this. llvm-svn: 113212
* Provide a specific diagnostic when trying to redefine an "externDouglas Gregor2010-09-073-1/+13
| | | | | | | inline" function outside of GNU89 mode. Fixes <rdar://problem/6880464>. llvm-svn: 113204
* Improve recovery when there is a stray ']' or ')' before the ';' atDouglas Gregor2010-09-077-20/+53
| | | | | | the end of a statement. Fixes <rdar://problem/6896493>. llvm-svn: 113202
* Improve recovery when a comma is missing between enumerators in anDouglas Gregor2010-09-074-5/+22
| | | | | | enumeration definition. Fixes <rdar://problem/7159693>. llvm-svn: 113201
* Improve diagnostic and recovery when missing a comma between base orDouglas Gregor2010-09-073-0/+18
| | | | | | member initializers in a C++ constructor. Fixes <rdar://problem/7796492>. llvm-svn: 113199
* Replace loops with SmallVector::append.Benjamin Kramer2010-09-062-6/+3
| | | | llvm-svn: 113185
* Due to asmparser improvements, this error message is now betterChris Lattner2010-09-061-1/+1
| | | | llvm-svn: 113177
* Fix a C++ PCH problem which was exposed by r113019. ↵Argyrios Kyrtzidis2010-09-063-0/+14
| | | | | | CXXBaseOrMemberInitializer's IsWritten and source order is not set. llvm-svn: 113161
* remove curly quotes, patch by Dimitry Andric!Chris Lattner2010-09-063-5/+5
| | | | llvm-svn: 113156
* LastFieldBitfield in CGObjCCommonMac::BuildAggrIvarLayout keeps bitfields or ↵Argyrios Kyrtzidis2010-09-062-15/+39
| | | | | | | | unnamed fields but later the code assumes that it's always a bitfield. This can lead to a crash (reported at rdar://8368320). llvm-svn: 113154
OpenPOWER on IntegriCloud