summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Move .td files from AST to Basic.Alexis Hunt2010-05-304-5/+6
| | | | | | | | Parse will need to see these files because it needs to know how to parse attributes. The generated files are still placed in the appropriate directory so as to preserve layering. No functional change. llvm-svn: 105179
* Don't try to parse class template specializations in C. It can onlyDouglas Gregor2010-05-302-3/+4
| | | | | | lead to heartache. Fixes <rdar://problem/8044088>. llvm-svn: 105178
* FuzzTest: Add support for reading list of replacements from a file.Daniel Dunbar2010-05-301-0/+16
| | | | llvm-svn: 105177
* utils: Add a generic fuzz testing tool.Daniel Dunbar2010-05-301-0/+324
| | | | llvm-svn: 105176
* Improve parser recovery when we try to parse a call expression but theDouglas Gregor2010-05-302-1/+15
| | | | | | | called function itself is invalid (e.g., because of a semantic error referring to that declaration). Fixes <rdar://problem/8044142>. llvm-svn: 105175
* Make macro safe in the face of users who pass "addr+64". Addition of void* isNick Lewycky2010-05-301-2/+2
| | | | | | invalid. llvm-svn: 105172
* Remove unused parameter to FinalOverriders::PropagateOverrider.Anders Carlsson2010-05-301-5/+3
| | | | llvm-svn: 105171
* Refactor the Is{Std,Clang,LLVM}Namespace methods and rename 'isClangAttr' toNick Lewycky2010-05-301-35/+13
| | | | | | 'IsClangAttr' to match prevailing style in this file. Patch by Jon Mulder! llvm-svn: 105170
* Convert DeclNodes to use TableGen.Alexis Hunt2010-05-3024-322/+244
| | | | | | | | The macros required for DeclNodes use have changed to match the use of StmtNodes. The FooFirst enumerator constants have been named firstFoo to match usage elsewhere. llvm-svn: 105165
* And now for the best part: Removing the old code.Anders Carlsson2010-05-301-190/+0
| | | | llvm-svn: 105162
* Turn on the new empty base subobject tracking code. It's a bit faster than ↵Anders Carlsson2010-05-302-19/+22
| | | | | | the previous code. However, it still has quadratic performance, something which I intend to fix shortly in a subsequent patch. llvm-svn: 105161
* Teach code-completion for calls to be more careful with aDouglas Gregor2010-05-301-2/+14
| | | | | | potentially-NULL "function" argument. llvm-svn: 105152
* Fix for PR7040: Don't try to compute the LLVM type for a function where itEli Friedman2010-05-308-66/+60
| | | | | | | | | | | isn't possible to compute. This patch is mostly refactoring; the key change is the addition of the code starting with the comment, "Check whether the function has a computable LLVM signature." The solution here is essentially the same as the way the vtable code handles such functions. llvm-svn: 105151
* Unbreak non-Darwin buildsDouglas Gregor2010-05-301-10/+0
| | | | llvm-svn: 105137
* Teach code completion to adjust its completion priorities based on theDouglas Gregor2010-05-309-36/+426
| | | | | | | | | type that we expect to see at a given point in the grammar, e.g., when initializing a variable, returning a result, or calling a function. We don't prune the candidate set at all, just adjust priorities to favor things that should type-check, using an ultra-simplified type system. llvm-svn: 105128
* Accept '#pragma options align=mac68k' on Darwin/PPC and Darwin/PPC64.Daniel Dunbar2010-05-301-2/+23
| | | | llvm-svn: 105116
* Cleanup.Anders Carlsson2010-05-291-13/+6
| | | | llvm-svn: 105114
* Make EmptySubobjectMap::CanPlaceBaseAtOffset take a BaseSubobjectInfo as well.Anders Carlsson2010-05-291-16/+4
| | | | llvm-svn: 105113
* Change RecordLayoutBuilder::LayoutBase to take a BaseSubobjectInfo. No ↵Anders Carlsson2010-05-291-14/+14
| | | | | | functionality change. llvm-svn: 105112
* Add check for an invalid CXType in clang_getTypeDeclaration.Ted Kremenek2010-05-291-0/+7
| | | | llvm-svn: 105111
* Rework the way virtual primary bases are added when laying out classes. ↵Anders Carlsson2010-05-292-52/+49
| | | | | | Instead of doing it as a separate step, we now use the BaseSubobjectInfo and use it when laying out the bases. This fixes a bug where we would either not add a primary virtual base at all, or add it at the wrong offset. llvm-svn: 105110
* Change LayoutVirtualBase to also take a BaseSubobjectInfo.Anders Carlsson2010-05-291-13/+15
| | | | llvm-svn: 105104
* Change RecordLayoutBuilder::LayoutNonVirtualBase to take a ↵Anders Carlsson2010-05-291-10/+19
| | | | | | BaseSubobjectInfo. No functionality change. llvm-svn: 105103
* Move computing the base subobject info for a class into the ↵Anders Carlsson2010-05-291-94/+149
| | | | | | RecordLayoutBuilder because we're going to need it to be able to correctly add offsets for primary virtual bases. llvm-svn: 105102
* Revert r105097. Thinking about a better fix.Zhongxing Xu2010-05-292-18/+6
| | | | llvm-svn: 105099
* Fix PR7218. Patch by Jordy Rose.Zhongxing Xu2010-05-292-3/+23
| | | | llvm-svn: 105097
* More PowerPC paths on DarwinDouglas Gregor2010-05-291-0/+3
| | | | llvm-svn: 105084
* Add C++ include paths for Darwin PowerPCDouglas Gregor2010-05-291-0/+7
| | | | llvm-svn: 105083
* add fedora 13 paths, patch by Hendrik Richter.Chris Lattner2010-05-291-0/+4
| | | | llvm-svn: 105082
* Copy source information for the inner type of an elaborated type; fixes someJohn McCall2010-05-282-41/+33
| | | | | | valgrind problems. llvm-svn: 105062
* Implement remaining items in neon td file. Still need to modify emitter to ↵Nate Begeman2010-05-281-1/+23
| | | | | | generate a proper header. llvm-svn: 105058
* Changed text of 'empty enum' diagnostics to say so.Fariborz Jahanian2010-05-282-2/+2
| | | | llvm-svn: 105013
* Empty enum in c is now error to match gcc's behavior.Fariborz Jahanian2010-05-285-4/+5
| | | | | | (radar 8040068). llvm-svn: 105011
* Only provide a source location for an anonymous tag if the location is validDouglas Gregor2010-05-281-5/+7
| | | | llvm-svn: 105010
* Rename BaseInfo to BaseSubobjectInfo.Anders Carlsson2010-05-281-25/+47
| | | | llvm-svn: 105007
* Move BaseInfo outside of the EmptySubobject class.Anders Carlsson2010-05-281-13/+13
| | | | llvm-svn: 105002
* Sema: Fix comment, apparently #pragma options align=power is just the same asDaniel Dunbar2010-05-281-6/+1
| | | | | | align=native, at least for the platforms we support. llvm-svn: 105000
* Fix personality function name when using SjLj exceptions.Daniel Dunbar2010-05-281-2/+5
| | | | llvm-svn: 104999
* Sema: Just ignore '#pragma options align=power' for now, this is no worse thanDaniel Dunbar2010-05-282-2/+7
| | | | | | | what we used to be doing, and makes sure that paired '#pragma options align=reset' won't fail. llvm-svn: 104998
* Update "users manual", PR2461 has been fixed.Daniel Dunbar2010-05-281-5/+0
| | | | llvm-svn: 104997
* Fix a miscompile of wchar pascal strings.Fariborz Jahanian2010-05-282-0/+33
| | | | | | (radar 8020384) llvm-svn: 104996
* A more minimal fix for PR6762.John McCall2010-05-284-55/+65
| | | | llvm-svn: 104991
* Roll back r104941.John McCall2010-05-2811-59/+6
| | | | llvm-svn: 104990
* Let the backend decide which scheduler and register allocator to use.Jakob Stoklund Olesen2010-05-281-7/+0
| | | | | | | Currently, the backend uses the same policy, but it will soon switch to -regalloc=fast for -O0. llvm-svn: 104984
* zero-cost exception API for NeXt runtime.Fariborz Jahanian2010-05-281-2/+14
| | | | | | | | rethrow inside @catch block must use objc_exception_rethrow API. Fixes radar 8037512. Test will be added to LLVM test suite. llvm-svn: 104964
* Driver: Spell -relax-all correctly when calling the cc1as tool.Daniel Dunbar2010-05-281-1/+1
| | | | llvm-svn: 104955
* Disable exception-spec compatibility checking under -fno-exceptions.John McCall2010-05-282-0/+41
| | | | | | Fixes PR7243. llvm-svn: 104942
* Add a new attribute on records, __attribute__((adl_invisible)), and defineJohn McCall2010-05-2811-6/+59
| | | | | | | | | | | | the x86-64 __va_list_tag with this attribute. The attribute causes the affected type to behave like a fundamental type when considered by ADL. (x86-64 is the only target we currently provide with a struct-based __builtin_va_list) Fixes PR6762. llvm-svn: 104941
* Don't just skip over the entire tag definition if the parser action didn'tJohn McCall2010-05-281-10/+8
| | | | | | | give us a decl back. Makes -cc1 -parse-noop handle a substantially larger amount of the C++ grammar. llvm-svn: 104940
* Test case for r104938.John McCall2010-05-281-0/+11
| | | | llvm-svn: 104939
OpenPOWER on IntegriCloud