summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Use DICompositeType->replaceAllUsesWith()Devang Patel2009-07-271-4/+3
| | | | llvm-svn: 77228
* When instantiating a variable without an initializer, callDouglas Gregor2009-07-271-3/+2
| | | | | | ActOnUninitializedDecl. llvm-svn: 77211
* Use the CGRecordLayoutBuilder even if there are no fields, because in C++ an ↵Anders Carlsson2009-07-271-27/+18
| | | | | | empty class will have a padding byte. llvm-svn: 77205
* Enable the new struct type builder now that the constant struct builder ↵Anders Carlsson2009-07-271-3/+0
| | | | | | works. (The old code will still be there until we know that everything works well. llvm-svn: 77190
* Fix a tail padding bug in the record layout builder code. The bug was found ↵Anders Carlsson2009-07-272-6/+19
| | | | | | by an existing test. llvm-svn: 77189
* Enable the new constant struct builder by default. The old code is still in ↵Anders Carlsson2009-07-271-3/+4
| | | | | | place but will be removed shortly. The new struct builder works on big endian systems. llvm-svn: 77185
* More work on the constant struct builder, fix a couple of thinkos and add ↵Anders Carlsson2009-07-271-9/+59
| | | | | | support for inserting part of a bitfield in the previous byte. llvm-svn: 77180
* More work on bitfield support in the new constant struct builder.Anders Carlsson2009-07-271-2/+79
| | | | llvm-svn: 77177
* Fix PR4624.Mike Stump2009-07-271-2/+2
| | | | llvm-svn: 77176
* fix segfault (because of erasing after the vector boundaries) when the ↵Nuno Lopes2009-07-261-1/+2
| | | | | | cached token position is at the end llvm-svn: 77159
* add gentoo 2009.0 g++ header locationsNuno Lopes2009-07-261-1/+9
| | | | llvm-svn: 77158
* Switch to getName()Daniel Dunbar2009-07-261-1/+1
| | | | llvm-svn: 77151
* Switch to using llvm::Value::getName()Daniel Dunbar2009-07-262-4/+3
| | | | llvm-svn: 77147
* Update for API change.Daniel Dunbar2009-07-261-1/+1
| | | | llvm-svn: 77112
* Lookup targets by Triple instead of Module.Daniel Dunbar2009-07-261-1/+2
| | | | llvm-svn: 77108
* Preserve qualifiers.Mike Stump2009-07-251-3/+10
| | | | llvm-svn: 77097
* PR3575 - warn on declared variable or function attributes after a ↵Ryan Flynn2009-07-251-0/+19
| | | | | | definition, which are currently ignored. llvm-svn: 77095
* Refactor ObjCImplDecl::getInstanceMethod/getClassMethod into oneArgyrios Kyrtzidis2009-07-251-25/+3
| | | | | | ObjCImplDecl::getMethod. llvm-svn: 77094
* Refactor ObjCInterfaceDecl::lookupInstanceMethod/lookupClassMethod into oneArgyrios Kyrtzidis2009-07-251-43/+8
| | | | | | ObjCInterfaceDecl::lookupMethod. llvm-svn: 77093
* Refactor ObjCProtocolDecl::lookupInstanceMethod/lookupClassMethod into oneArgyrios Kyrtzidis2009-07-251-18/+5
| | | | | | ObjCProtocolDecl::lookupMethod. llvm-svn: 77092
* Refactor ObjCContainerDecl::getInstanceMethod/getClassMethod into oneArgyrios Kyrtzidis2009-07-251-23/+3
| | | | | | | | ObjCContainerDecl::getMethod. Avoids code duplication. llvm-svn: 77091
* Add noreturn as a type attribute, handle printing for them and handleMike Stump2009-07-255-36/+98
| | | | | | calls to noreturn function pointers when CFG building. llvm-svn: 77089
* ir-gen for non-virtual base class initializationFariborz Jahanian2009-07-253-4/+41
| | | | | | in constructors. llvm-svn: 77087
* Implement C++ semantics for C-style and functional-style casts. This ↵Sebastian Redl2009-07-254-515/+635
| | | | | | | | regresses Clang extension conversions, like vectors, but allows conversions via constructors and conversion operators. Add custom conversions to static_cast. llvm-svn: 77076
* Semantic checking for main().John McCall2009-07-251-1/+79
| | | | | | | Fix some invalid main() methods in the test suite that were nicely exposed by the new checks. llvm-svn: 77047
* More work on the constant struct builder. We can now convert the struct to a ↵Anders Carlsson2009-07-251-3/+40
| | | | | | packed struct when necessary. llvm-svn: 77038
* Some code refactoring per Daniel's feedback.Fariborz Jahanian2009-07-251-16/+12
| | | | llvm-svn: 77030
* More work on the constant struct builder. We now try to layout all constant ↵Anders Carlsson2009-07-251-6/+19
| | | | | | structs but throw away the result. llvm-svn: 77021
* Update for LLVM API change.Owen Anderson2009-07-2417-202/+207
| | | | llvm-svn: 77012
* Template instantiation for static data members that are defined out-of-line.Douglas Gregor2009-07-246-16/+180
| | | | | | | | Note that this also fixes a bug that affects non-template code, where we were not treating out-of-line static data members are "file-scope" variables, and therefore not checking their initializers. llvm-svn: 77002
* More Sema check for constructor's member initializer along Fariborz Jahanian2009-07-241-0/+9
| | | | | | with type conversion to fix ir-gen crash. llvm-svn: 77000
* In the "use of floating point variable as loop counter" check, checkTed Kremenek2009-07-241-5/+7
| | | | | | if the DeclRefExpr is a float, not just either argument. llvm-svn: 76998
* Have 'clang --analyze' run syntactic static analysis security checks.Ted Kremenek2009-07-241-0/+1
| | | | llvm-svn: 76996
* Fix 80-col violations, reflow a few comments and zap some extraMike Stump2009-07-241-159/+158
| | | | | | whitespace at ends of lines. llvm-svn: 76992
* Fix a release build warning.Anders Carlsson2009-07-241-1/+1
| | | | llvm-svn: 76985
* More work toward initialization of objectsFariborz Jahanian2009-07-243-11/+22
| | | | | | in constructors. llvm-svn: 76980
* Allow front-end 'isa' access on object's of type 'id'.Steve Naroff2009-07-246-2/+48
| | | | | | | | Enhance test case to cover 'isa' access on interface types (clang produces an error, GCC produces a warning). Still need back-end CodeGen for ObjCIsaExpr. llvm-svn: 76979
* Don't use getLLVMFieldNo for bitfields when constructing the ivar layout ↵Anders Carlsson2009-07-241-4/+8
| | | | | | maps for GC. llvm-svn: 76978
* Check in a half finished new constant struct builder (Obviously not used yet).Anders Carlsson2009-07-242-2/+148
| | | | llvm-svn: 76969
* Fix declaration of obc_enumerationMutation function, for GNU runtime.Daniel Dunbar2009-07-242-8/+11
| | | | llvm-svn: 76959
* Add doxygen comments and simplify expression.Ted Kremenek2009-07-241-1/+6
| | | | llvm-svn: 76955
* Introduce a new variant type 'TryResult' to represent the result ofTed Kremenek2009-07-241-106/+61
| | | | | | | | | | | TryEvaluateBool instead of using a raw 'int'. This avoids any confusion of how 'int' converts to bool, and makes the resultant code easier to read. Condense a bunch of 'addSuccessor()' calls in 'if ... else' to use the ternary operator instead. llvm-svn: 76947
* Add getDecl() to CallGraph and CallGraphNode.Zhongxing Xu2009-07-241-0/+7
| | | | llvm-svn: 76940
* Constify methods.Zhongxing Xu2009-07-241-1/+1
| | | | llvm-svn: 76939
* Test commit: make a little stub routine for semantic checking of main().John McCall2009-07-242-0/+7
| | | | llvm-svn: 76934
* Implement new warning for functions declared 'noreturn' when they fall off ↵Mike Stump2009-07-241-15/+39
| | | | | | the end. llvm-svn: 76932
* Get rid of the size parameter to AppendField. No functionality change.Anders Carlsson2009-07-242-10/+8
| | | | llvm-svn: 76931
* Mark destructor of Checker virtual.Ted Kremenek2009-07-241-0/+1
| | | | llvm-svn: 76924
* This patch fixes the implementations of the __has_trivial_destructorDouglas Gregor2009-07-237-27/+100
| | | | | | | | and __has_trivial_constructor builtin pseudo-functions and additionally implements __has_trivial_copy and __has_trivial_assign, from John McCall! llvm-svn: 76916
* Output UTF-16 string literals independent of host byte order.Daniel Dunbar2009-07-231-9/+24
| | | | | | | | - Steve, can you take a look at this? It seems like this code should live elsewhere, and there is a FIXME about having Sema validates the UTF-8 to UTF-16 conversion. llvm-svn: 76915
OpenPOWER on IntegriCloud