summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
* Prepare PCH reader and writer for (de-)serialization of statements. NoDouglas Gregor2009-04-162-186/+192
| | | | | | functionality change. llvm-svn: 69319
* Removed a no longer needed FIXME comment.Fariborz Jahanian2009-04-161-2/+0
| | | | llvm-svn: 69315
* Fix <rdar://problem/6765383> clang-6: clang does not appear to support ↵Steve Naroff2009-04-162-0/+12
| | | | | | declaring a static Block 'const'. llvm-svn: 69306
* Category method synbols must be qualified by gategory name toFariborz Jahanian2009-04-161-0/+6
| | | | | | match gcc's. llvm-svn: 69305
* Fix a crash bug when comparing overload quality of conversion operators with ↵Sebastian Redl2009-04-168-79/+420
| | | | | | | | | | | conversion constructors. Remove an atrocious amount of trailing whitespace in the overloaded operator mangler. Sorry, couldn't help myself. Change the DeclType parameter of Sema::CheckReferenceInit to be passed by value instead of reference. It wasn't changed anywhere. Let the parser handle C++'s irregular grammar around assignment-expression and conditional-expression. And finally, the reason for all this stuff: implement C++ semantics for the conditional operator. The implementation is complete except for determining lvalueness. llvm-svn: 69299
* Attempt to fix a read-after-free running test/Sema/designated-initializers.c.Eli Friedman2009-04-161-3/+3
| | | | | | Douglas, can you check that this is doing the right thing? llvm-svn: 69298
* When we create an implicit CXXTemporaryObjectExpr we don't need to check ↵Anders Carlsson2009-04-161-6/+1
| | | | | | that it's a valid init. Instead, just set it as the VarDecl's initializer. llvm-svn: 69292
* Ensure that the most recent declaration of a tentative definition winsDaniel Dunbar2009-04-161-3/+5
| | | | | | when generating a common definition. llvm-svn: 69287
* Pass -fdiagnostics-show-option to clang-cc by default.Daniel Dunbar2009-04-161-0/+5
| | | | | | - <rdar://problem/6796848> implement -fdiagnostics-show-option llvm-svn: 69276
* optimize and comment GetDiagInfo.Chris Lattner2009-04-161-6/+32
| | | | llvm-svn: 69273
* merge several scattered tables into StaticDiagInfo.Chris Lattner2009-04-161-144/+19
| | | | llvm-svn: 69272
* Implement Diagnostic::getWarningOptionForDiag with information from tblgen,Chris Lattner2009-04-161-10/+19
| | | | | | this implements -fdiagnostics-show-option in clang-cc. llvm-svn: 69271
* tblgen is now passing diagnostic group information in the .inc file, ignore ↵Chris Lattner2009-04-162-4/+5
| | | | | | it everywhere. llvm-svn: 69269
* implement framework for -fdiagnostics-show-option, but tblgen isn'tChris Lattner2009-04-162-0/+12
| | | | | | passing down the right info yet. llvm-svn: 69268
* Disable the code I added before until I understand what's causing ↵Anders Carlsson2009-04-161-0/+5
| | | | | | default2.cpp to fail. llvm-svn: 69267
* move handling of -pedantic and -pedantic-errors into Diagnostics,Chris Lattner2009-04-161-3/+20
| | | | | | | out of Warnings.cpp. This simplifies warnings.cpp and makes it more efficient. llvm-svn: 69266
* arrange for -Wno-error=foo warnings to be immune to -Werror as Chris Lattner2009-04-161-1/+14
| | | | | | they are supposed to be. llvm-svn: 69265
* change mappings to distinguish between "unset", "set by the user" and Chris Lattner2009-04-161-7/+23
| | | | | | "set to the default value". llvm-svn: 69264
* use getDiagnosticLevel instead of getDiagnosticMapping, whichChris Lattner2009-04-161-2/+2
| | | | | | is about to become private. llvm-svn: 69262
* Driver: Forward -W* to clang, it can handle all these itself now.Daniel Dunbar2009-04-161-4/+2
| | | | | | Remove clang_W_Group and clang_ignored_W_Group. llvm-svn: 69261
* Eliminate pch::TYPE_ATTR, which is never usedDouglas Gregor2009-04-162-6/+0
| | | | llvm-svn: 69256
* PCH support for CompoundLiteralExpr. This is the last C expressionDouglas Gregor2009-04-162-0/+22
| | | | | | | that does not require PCH support for statements. Only AddrLabelExpr, StmtExpr, and BlockExpr remain (for C). llvm-svn: 69255
* PCH support for InitListExpr, DesignatedInitExpr, and ImplicitValueInitExpr.Douglas Gregor2009-04-163-0/+178
| | | | llvm-svn: 69251
* Add support for the __has_trivial_constructor type trait.Anders Carlsson2009-04-165-1/+43
| | | | llvm-svn: 69245
* PCH support for ShuffleVectorExpr and BlockDeclRefExprDouglas Gregor2009-04-163-0/+57
| | | | llvm-svn: 69244
* PCH support for TypesCompatibleExpr, ChooseExpr, and GNUNullExpr.Douglas Gregor2009-04-152-0/+67
| | | | llvm-svn: 69242
* PCH support for ExtVectorElementExpr and VAArgExpr.Douglas Gregor2009-04-153-3/+49
| | | | llvm-svn: 69240
* PCH support for CompoundAssignOperator and ConditionalOperatorDouglas Gregor2009-04-152-0/+42
| | | | llvm-svn: 69237
* PCH support for ImaginaryLiteral and ArraySubscriptExprDouglas Gregor2009-04-152-2/+41
| | | | llvm-svn: 69233
* Fixup codegen for copy/dispose for block literals. Radar 6791245Mike Stump2009-04-151-4/+10
| | | | llvm-svn: 69232
* Defer generation of tentative definitions.Daniel Dunbar2009-04-152-31/+46
| | | | | | | | | | | | | | - PR3980. - <rdar://problem/6762287> [irgen] crash when generating tentative definition of incomplete structure - This also avoids creating common definitions for things which are later overwritten. - XFAIL'ed external-defs.c, it isn't completing types properly yet. llvm-svn: 69231
* PCH support for ExtQualTypeDouglas Gregor2009-04-151-4/+14
| | | | llvm-svn: 69230
* Fix decl type merges when they haveFariborz Jahanian2009-04-151-3/+3
| | | | | | __string/__weak attributes. llvm-svn: 69229
* Set DebugInfo at the beginning of GenerateBlockFunction().Devang Patel2009-04-151-0/+5
| | | | llvm-svn: 69228
* When declaring a variable that has a constructor and a direct initializer, ↵Anders Carlsson2009-04-151-9/+13
| | | | | | | | | | | | | | | | | | for example: struct X { X(int, int); }; X x(10, 10); we model that as X x = X(10, 10); inserting a temporary object expr. llvm-svn: 69227
* Add warning when a tentative array definition is assumed to have one element.Daniel Dunbar2009-04-151-2/+3
| | | | | | - Also, fixed one to actually be one (instead of zero). :) llvm-svn: 69226
* PCH support for declaration attributesDouglas Gregor2009-04-152-6/+285
| | | | llvm-svn: 69225
* Actually generate code for the simple constructors we know we can generate ↵Anders Carlsson2009-04-151-1/+22
| | | | | | code for. llvm-svn: 69222
* Don't use \01 in symbol name if unnecessary.Daniel Dunbar2009-04-151-1/+1
| | | | | | | | - This was particularly bad since I fixed one instance of this name and not another, meaning we got an LLVM module with the same effective name in two different globals! llvm-svn: 69205
* Fix <rdar://problem/6786597> varargs not supported for Blocks under clang.Steve Naroff2009-04-151-2/+6
| | | | | | Teach Sema::SemaBuiltinVAStart() about blocks. llvm-svn: 69201
* Patch to remove a bogus warning which pointed to underlying ASTFariborz Jahanian2009-04-151-13/+3
| | | | | | | | gen. issue for property in continuation class declared readwrite but which did not generate the declaration for the setter. Fix also removed a FIXME and resulted in code cleanup. llvm-svn: 69200
* Fix alignment on obj_msgrefs to match llvm-gcc.Daniel Dunbar2009-04-151-2/+1
| | | | llvm-svn: 69199
* Add test case for superrefs section (and make spacing consistent).Daniel Dunbar2009-04-151-2/+2
| | | | llvm-svn: 69198
* fix some out of bounds array access problems, which manifest particularlyChris Lattner2009-04-151-18/+37
| | | | | | spectacularly when built for x86-64. llvm-svn: 69197
* PCH support for the string literal of a FileScopeAsmDecl.Douglas Gregor2009-04-152-5/+8
| | | | | | Some minor cleanup. llvm-svn: 69196
* For source location entries that describe instantiations, encode theDouglas Gregor2009-04-152-3/+9
| | | | | | | token length in the PCH file rather than trying (and failing) to reconstruct it be getting the spelling token's length. llvm-svn: 69191
* PCH support for MemberExpr and CallExpr.Douglas Gregor2009-04-153-0/+56
| | | | llvm-svn: 69186
* Fixup http://llvm.org/viewvc/llvm-project?rev=69165&view=rev (based on ↵Steve Naroff2009-04-151-3/+10
| | | | | | feedback from Eli). llvm-svn: 69184
* move {'sChris Lattner2009-04-151-6/+3
| | | | llvm-svn: 69179
* Revert previous patch (will commit a fix soon).Steve Naroff2009-04-151-7/+6
| | | | llvm-svn: 69178
OpenPOWER on IntegriCloud