Граф коммитов

14112 Коммитов

Автор SHA1 Сообщение Дата
Chris Lattner 881eb9ce33 use GetVLASize instead of accessing VLASizeMap directly, this gets an assert if
VLASize isn't populated for the type yet.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79057 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-14 23:43:22 +00:00
Benjamin Kramer bbbd986087 lit: flush stdout in no-fancy-progress-bar mode as well.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79056 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-14 23:34:45 +00:00
Ted Kremenek 2733b669ae Add more attribute 'malloc' test cases involving function pointers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79055 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-14 22:06:01 +00:00
Ted Kremenek b109069995 Per Eli Friedman's feedback, handle attribute 'malloc' being applied to
declarations of function pointers.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79053 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-14 22:03:27 +00:00
Fariborz Jahanian a5e42a82ce objc2's foreach statement's selector type can be
a block pointer too.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79050 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-14 21:53:27 +00:00
Devang Patel 5a6bfe3505 Do now overflow while calulating upper bound for zero sized array.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79043 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-14 20:57:45 +00:00
Ted Kremenek 2c2b06e1f3 This test case does not need to include 'stdlib.h'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79042 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-14 20:53:10 +00:00
Ted Kremenek f1858598d2 Use 'dyn_cast' instead of a check for a function declaration followed by a
'cast'.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79041 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-14 20:51:58 +00:00
Ted Kremenek a18d7d80eb Improve Sema's handling of attribute 'malloc' to reject the attribute when
attaching to Objective-C methods (which mirrors GCC's behavior) and to allow the
return type of the function to be an Objective-C pointer or Block pointer (which
GCC also accepts).

Along the way, add 'const' to some of the pointer arguments of various utility
functions...


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79040 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-14 20:49:40 +00:00
Fariborz Jahanian 343a3cf57e ir-gen for generation of trvial copy constructor
call.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79034 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-14 20:11:43 +00:00
Anders Carlsson f1480eee38 Make the CXXDefaultArgExpr constructor protected and add a static Create function.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79013 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-14 18:30:22 +00:00
Ted Kremenek 0895937d2c Pass '-Wno-' options to clang-cc. This fixes <rdar://problem/6943988>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79011 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-14 18:20:50 +00:00
Fariborz Jahanian b11d798984 Fixed a regression in deciding when to issue warning on properties which
implement NSCopying protocol in GC mode.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79008 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-14 18:06:25 +00:00
Ted Kremenek 1ac134b301 Update/add links to developer meeting.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79005 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-14 17:11:34 +00:00
Daniel Dunbar 93d2dc4882 Fix a few typos.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78991 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-14 04:43:04 +00:00
Shantonu Sen b1d76bda73 PR4715
-Wno-error disables WarningsAsErrors instead of
mistakenly being treated like -Werror



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78987 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-14 04:07:15 +00:00
Anders Carlsson 0e67f9dc4d Fix spacing
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78981 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-14 02:39:47 +00:00
John McCall fd810b1386 Support friend declarations in templates and test that argdep lookup
still works.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78979 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-14 02:03:10 +00:00
Mike Stump 9297423382 Testcase for a recent checkin.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78974 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-14 01:50:51 +00:00
Mike Stump bff10c52ca Testcase for recent checkin.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78973 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-14 01:48:56 +00:00
Mike Stump 12de461664 Testcase for a recent checkin.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78972 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-14 01:46:56 +00:00
Mike Stump 2153891806 Deconflate virtual base offsets from non-virtual base offsets.
Deconflate a virtual base primary from a non-virtual base.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78971 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-14 01:44:03 +00:00
Fariborz Jahanian 183d7181fd Fixed a bug in ir-gen for copy assignment synthesis.
Fixed a bug when evaluating those copy-assignments
which need by lazily syntheized. A test case
for these.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78965 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-14 00:01:54 +00:00
Mike Stump 788467852c Add testcase for recent work.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78959 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-13 23:33:29 +00:00
Owen Anderson 8c8f69ec14 Update for LLVM API change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78957 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-13 23:27:53 +00:00
Mike Stump 0880e75541 We can't avoid doing the work to find all the indirect primary virtual
base classes as we'll need that to layout the virtual bases...


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78954 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-13 23:26:06 +00:00
Mike Stump 4ef980984f Refine vtable layout for virtual bases and keep better track of
primaries.  WIP.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78950 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-13 22:53:07 +00:00
Owen Anderson 0032b2781b Update for LLVM API change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78946 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-13 21:57:51 +00:00
Fariborz Jahanian eea0a5c6e3 Adds testing of copy assignment of anonymous union
data members.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78943 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-13 21:47:21 +00:00
Fariborz Jahanian 6dee5d81a6 More complete test for my previous patch.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78941 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-13 21:38:50 +00:00
Fariborz Jahanian ad25883a64 Patch to force synthesis of copy assignment operator
function in the order according to c++03. ir-gen 
for copy assignment in the trivial case and the first
test case.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78938 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-13 21:09:41 +00:00
Mike Stump 65010da986 Minor cleanups.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78927 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-13 18:39:54 +00:00
Mike Stump d53cef178d Prep for vbase layout refinements. WIP.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78882 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-13 02:02:14 +00:00
Daniel Dunbar 8d5053c864 Update test
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78877 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-13 01:27:45 +00:00
Ryan Flynn f7f947acd7 change cast to dyn_cast because d may not be a FunctionDecl
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78876 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-13 01:19:23 +00:00
Fariborz Jahanian e82c3e269f Minor refactoring of copy assign operator ir-gen. SWIP.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78875 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-13 00:53:36 +00:00
Mike Stump 94d0bceeb3 Refine virtual base layout. WIP.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78873 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-13 00:34:14 +00:00
Ryan Flynn 0b47c374f8 change a dyn_cast to cast
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78862 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-12 23:36:28 +00:00
Fariborz Jahanian 0270b8aa3f More toward synthesizing copy assignments. SWIP.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78861 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-12 23:34:46 +00:00
Mike Stump 80a0e32d60 Cleanup.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78858 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-12 23:25:18 +00:00
Mike Stump 4c3aedd3f1 Refactor. WIP. Eventually, this will all go into a vtable builder class.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78857 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-12 23:14:12 +00:00
Mike Stump 09d8b81432 Cleanup.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78855 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-12 23:03:28 +00:00
Mike Stump bc16aeab78 Refactor.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78854 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-12 23:00:59 +00:00
Mike Stump a9e1d1cd1f Refactor.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78851 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-12 22:34:12 +00:00
Mike Stump 0a5cfd86de Remove another done audit FIXME.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78847 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-12 22:10:00 +00:00
Mike Stump 02b16238a3 Refactor a bit and remove some FIXME audit markers, now that the code
has been audited for correctness.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78846 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-12 22:06:55 +00:00
Mike Stump d76264e0b2 Refine primary vbase selection ordering. WIP.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78844 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-12 21:50:08 +00:00
Fariborz Jahanian 2198ba12b7 Patch for synthesizing copy assignment operator.
WIP.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78841 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-12 21:14:35 +00:00
Mike Stump 34fae9cf27 Improve the secondary vtables to not include vbase offsets. WIP.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78831 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-12 18:50:26 +00:00
Fariborz Jahanian acf2d137f3 error on property of objc interface type instead of crashing
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78826 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-12 18:17:53 +00:00