summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
* Don't put msgrefs in used globals (in particular, we don't wantDaniel Dunbar2009-04-171-1/+0
| | | | | | no-dead-strip set on them). llvm-svn: 69388
* Appropriately set file name and directory name in debug info compile units.Devang Patel2009-04-172-27/+31
| | | | llvm-svn: 69387
* PCH support for inline assembly statements.Douglas Gregor2009-04-173-3/+95
| | | | | | | This completes support for all of C (+ extensions). We can (again) build a PCH file for Carbon.h. llvm-svn: 69385
* refactor htmldiags to be created up front like the other diag clients.Chris Lattner2009-04-171-15/+8
| | | | llvm-svn: 69379
* PCH tests for va_arg expressions. Verified that the blocks test does create ↵Douglas Gregor2009-04-171-2/+0
| | | | | | a BlockDeclRefExpr llvm-svn: 69376
* fix a crash on invalid by making ActOnDeclarator create decl withChris Lattner2009-04-171-0/+3
| | | | | | | a dummy *function* type when it is recovering and knows it needs a function. rdar://6802350 - clang crash on invalid input llvm-svn: 69374
* PCH support for blocksDouglas Gregor2009-04-172-1/+22
| | | | llvm-svn: 69373
* PCH support for GNU statement expressionsDouglas Gregor2009-04-172-0/+22
| | | | llvm-svn: 69370
* PCH support for indirect gotos and address-of-label expressions.Douglas Gregor2009-04-172-0/+70
| | | | llvm-svn: 69369
* PCH support for labels and goto.Douglas Gregor2009-04-172-1/+95
| | | | llvm-svn: 69364
* fix misspelt attribute.Chris Lattner2009-04-171-2/+2
| | | | llvm-svn: 69362
* Fix rdar://6800926 - crash compiling non-fragile _Bool bitfield ivar,Chris Lattner2009-04-171-5/+5
| | | | | | | the functional change here is changing ConvertType -> ConvertTypeForMem so that we handle i1 fields properly as memory. llvm-svn: 69361
* tidy some code.Chris Lattner2009-04-171-5/+2
| | | | llvm-svn: 69360
* PCH support for declaration statements, and a test for PredefinedExprDouglas Gregor2009-04-172-1/+35
| | | | llvm-svn: 69356
* PCH support for return statements.Douglas Gregor2009-04-172-0/+22
| | | | | | | Optimize PCH encoding for switch-case statements slightly, by making the switch-case numbering local to a particular statement. llvm-svn: 69355
* Implement lvalue test for conditional expressions.Sebastian Redl2009-04-173-4/+59
| | | | | | Add a few commented lines to the test case that point out things that don't work yet. llvm-svn: 69354
* Added -print-ivar-layout option. No change in functionalityFariborz Jahanian2009-04-171-0/+1
| | | | | | yet. llvm-svn: 69346
* Add support for the __has_trivial_destructor type trait.Anders Carlsson2009-04-175-6/+27
| | | | llvm-svn: 69345
* Add support for generating (very basic) C++ destructors. These aren't called ↵Anders Carlsson2009-04-175-40/+143
| | | | | | by anything yet. llvm-svn: 69343
* Attributes on block functions were not being set.Daniel Dunbar2009-04-174-8/+16
| | | | | | | - <rdar://problem/6800351> clang not producing correct large struct return code for Blocks llvm-svn: 69337
* PCH support for do-while and for loopsDouglas Gregor2009-04-172-0/+48
| | | | llvm-svn: 69334
* PCH support for while and continue statementsDouglas Gregor2009-04-172-0/+40
| | | | llvm-svn: 69332
* Fixup semantic analysis for nested blocks, and allow block literalMike Stump2009-04-172-2/+8
| | | | | | | expressions that can be of static duration to be returned. Radar 6786551 llvm-svn: 69331
* Implement basic code generation of constructor calls. We can now compile:Anders Carlsson2009-04-174-0/+71
| | | | | | | | | | | | struct S { S(int, int); }; void f() { S s(10, 10); } llvm-svn: 69330
* PCH support for the first batch of statements, including null,Douglas Gregor2009-04-173-3/+235
| | | | | | compound, case, default, if, switch, and break statements. llvm-svn: 69329
* Add GetAddrOfCXXConstructor and use it.Anders Carlsson2009-04-162-5/+16
| | | | llvm-svn: 69328
* If a class has a non-trivial constructor that doesn't take any arguments, we ↵Anders Carlsson2009-04-163-11/+26
| | | | | | | | | | | | | | | | | | will now make an implicit CXXTemporaryObjectExpr. So struct S { S(); }; void f() { S s; } 's' here will implicitly be declared as. S s = S(); llvm-svn: 69326
* Driver: Allow using clang as a precompiler, even if it is anDaniel Dunbar2009-04-161-0/+6
| | | | | | unsupported arch. llvm-svn: 69322
* Clean up the declaration-decoding step in the PCH reader, using theDouglas Gregor2009-04-161-59/+26
| | | | | | same ueber-easy visitor scheme used for expressions/statements. llvm-svn: 69320
* 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
OpenPOWER on IntegriCloud