summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
* Make ActOnExprStmt take a FullExprArg.Anders Carlsson2009-05-175-7/+10
| | | | llvm-svn: 71989
* Fix instantiate-function-1.cpp.Anders Carlsson2009-05-171-1/+0
| | | | llvm-svn: 71988
* Fix DISABLE_SMART_POINTERS build.Anders Carlsson2009-05-171-1/+2
| | | | llvm-svn: 71984
* Implement Sema::ActOnFinishFullExpr and create a CXXExprWithTemporaries node ↵Anders Carlsson2009-05-172-3/+30
| | | | | | if necessary. llvm-svn: 71983
* Add the FullExprArg wrapper and use it for if statement conditions.Anders Carlsson2009-05-174-9/+15
| | | | llvm-svn: 71982
* Add support for converting member pointer types to LLVM types. Also mangle ↵Anders Carlsson2009-05-172-7/+19
| | | | | | pointer to member functions correctly and add tests. llvm-svn: 71981
* This patch fixes two bugs in the GNU Objective-C runtime implementation. ↵Fariborz Jahanian2009-05-171-14/+34
| | | | | | | | One is a case in rethrowing exceptions where the C types don't match correctly (I already sent this patch to Daniel Dunbar, who found the bug, so it may have already been committed). The other fixes the case properties so that the methods generated as property accessors are added to the class structure correctly. Patch by David Chisnall. llvm-svn: 71980
* Add FIXME about not using MemberExpr nodes when the base type is a dependent ↵Anders Carlsson2009-05-171-0/+4
| | | | | | type. llvm-svn: 71979
* Use the Itanium ABI for member pointers. Add a missing 'break' statement and ↵Anders Carlsson2009-05-171-9/+9
| | | | | | a test case llvm-svn: 71972
* A couple of tweaks to make -ast-print produce code that's closer to Eli Friedman2009-05-171-2/+2
| | | | | | valid C code. llvm-svn: 71971
* Rewrite PureVirtualMethodCollector to use the overridden methods. Fixes ↵Anders Carlsson2009-05-171-22/+26
| | | | | | <rdar://problem/6854087> llvm-svn: 71970
* Add OldMD to the list of methods NewMD overridesAnders Carlsson2009-05-161-6/+2
| | | | llvm-svn: 71969
* Add setters/getters to CXXMethodDecl so it can keep track of which virtual ↵Anders Carlsson2009-05-161-0/+41
| | | | | | member functions it overrides (if any) llvm-svn: 71968
* Make the RAII extension warning silencing for __extension__ a bit Eli Friedman2009-05-162-5/+11
| | | | | | | narrower, so it doesn't catch expresions that aren't sub-expressions of __extension__ operator. llvm-svn: 71967
* Targets without long long should reduce the size of intmax_t Eli Friedman2009-05-161-0/+2
| | | | | | accordingly. llvm-svn: 71966
* Refactor address-of-void extension a bit so that it's more obviouslyEli Friedman2009-05-161-7/+10
| | | | | | correct. No functionality change, as far as I know. llvm-svn: 71965
* Fix another case where the extern-ness of extern "C" wasn't being captured. Anders Carlsson2009-05-161-1/+2
| | | | | | This makes me think that we should make hasExternalStorage perform this check... llvm-svn: 71962
* Don't return member pointer types for static member functions. Fixes 6879261.Anders Carlsson2009-05-161-9/+5
| | | | llvm-svn: 71961
* PR3942: Don't warn on unsigned overflow in preprocessor expressions.Eli Friedman2009-05-161-4/+4
| | | | llvm-svn: 71960
* extern "C" should preserve the 'extern' qualifier for VarDecls. Fixes 6853728.Anders Carlsson2009-05-161-2/+3
| | | | llvm-svn: 71957
* Improve checking of member expressions where the base type is a dependent type.Anders Carlsson2009-05-161-10/+16
| | | | llvm-svn: 71956
* Implement instantiation of a few boring, simple expressions. I don't think ↵Sebastian Redl2009-05-163-2/+73
| | | | | | these are testable yet, though. llvm-svn: 71953
* Avoid calling mergeTypes in C++. I think these are the correct C++ Eli Friedman2009-05-162-9/+25
| | | | | | | | | | | | alternatives, but please correct me if I'm wrong. I eventually plan to assert in mergeTypes that we aren't in C++ mode because composite types are fundamentally not a part of C++. The remaining callers for code in the regression tests are Sema::WarnConflictingTypedMethods and CodeGenFunction::EmitFunctionProlog; I'm not quite sure what the correct approach is for those callers. llvm-svn: 71946
* Add stricter checking for va_arg.Eli Friedman2009-05-161-7/+13
| | | | llvm-svn: 71942
* PR2044: reject declarations of functions returning variably modified Eli Friedman2009-05-161-0/+7
| | | | | | types. llvm-svn: 71941
* PR3009: Get rid of bogus warning for scalar compound literals.Eli Friedman2009-05-161-1/+1
| | | | | | | | | This patch isn't quite ideal in that it eliminates the warning for constructs like "int a = {1};", where the braces are in fact redundant. However, that would have required a bunch of refactoring, and it's much less likely to cause confusion compared to redundant nested braces. llvm-svn: 71939
* Reflow some comments.Mike Stump2009-05-1613-157/+142
| | | | llvm-svn: 71937
* Reflow some comments.Mike Stump2009-05-1617-212/+189
| | | | llvm-svn: 71936
* Implement a FIXME, we now pass in the locations of the braces for enums.Mike Stump2009-05-164-8/+10
| | | | llvm-svn: 71930
* Remove useless wrapper.Eli Friedman2009-05-162-12/+1
| | | | llvm-svn: 71928
* Fixup __extension__ i = 1 parsing. Thanks Eli!Mike Stump2009-05-161-1/+1
| | | | llvm-svn: 71927
* Fix: <rdar://problem/6893565> False positive: don't flag leaks for return ↵Ted Kremenek2009-05-161-19/+28
| | | | | | types that cannot be determined to be CF types llvm-svn: 71921
* Fix another bug in BugReporter where we wouldn't always select the bug ↵Ted Kremenek2009-05-161-14/+20
| | | | | | report in a bug equivalence class with the shortest path. llvm-svn: 71920
* Template instantiation for IndirectGotoStmt. Now my life is complete.Douglas Gregor2009-05-164-7/+23
| | | | llvm-svn: 71917
* Template instantiation for switch statementsDouglas Gregor2009-05-154-116/+216
| | | | llvm-svn: 71916
* Removed superfluous code.Fariborz Jahanian2009-05-151-11/+0
| | | | llvm-svn: 71909
* Early support for __format__attribute on blocks.Fariborz Jahanian2009-05-151-4/+32
| | | | | | Work in progress... llvm-svn: 71908
* Basic support for member exprs where the base expr type is dependent.Anders Carlsson2009-05-152-1/+20
| | | | llvm-svn: 71907
* Classes with "+load" methods need to go in the non-lazy class list (orDaniel Dunbar2009-05-151-10/+40
| | | | | | else the method will not be found by the runtime at class load time). llvm-svn: 71904
* Template instantiation for break and continue statements.Douglas Gregor2009-05-152-0/+19
| | | | llvm-svn: 71903
* Template instantiation for "for" loopsDouglas Gregor2009-05-154-2/+34
| | | | llvm-svn: 71901
* Template instantiation for do-while statements.Douglas Gregor2009-05-154-11/+33
| | | | llvm-svn: 71899
* Factor code for adding module-level class lists into separate method.Daniel Dunbar2009-05-151-43/+43
| | | | | | - No functionality change. llvm-svn: 71898
* Fixup parsing for (throw,throw) and __extension__ throw 1.Mike Stump2009-05-151-9/+2
| | | | llvm-svn: 71897
* Template instantiation for WhileStmt and CXXConditionDeclExpr.Douglas Gregor2009-05-153-11/+44
| | | | llvm-svn: 71896
* Make sure that we use the canonical type for the names of instantiatedDouglas Gregor2009-05-152-3/+7
| | | | | | | | | | constructors and destructors. This is a requirement of DeclarationNameTable::getCXXSpecialName that we weren't assert()'ing, so it should have been caught much earlier :( Big thanks to Anders for the test case. llvm-svn: 71895
* improved on diagnosing misplacement of sentinel attributes.Fariborz Jahanian2009-05-152-5/+6
| | | | | | No change in functionality. llvm-svn: 71894
* Allow instantiation of NULL expressions and statementsDouglas Gregor2009-05-152-0/+6
| | | | llvm-svn: 71889
* This patch finishes off the sentinel attribute handling forFariborz Jahanian2009-05-152-9/+34
| | | | | | blocks and function pointers. llvm-svn: 71888
* I take it back, InstantiateExpr does not check for null.Anders Carlsson2009-05-151-4/+7
| | | | llvm-svn: 71887
OpenPOWER on IntegriCloud