]>
granicus.if.org Git - clang/log
Anders Carlsson [Wed, 10 Mar 2010 06:51:42 +0000 (06:51 +0000)]
Don't accidentally mark some functions in construction vtables as unused. Also land the test for a previous checkin, now that it's correct.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98139
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Wed, 10 Mar 2010 06:48:02 +0000 (06:48 +0000)]
Allow the fast path through ASTContext::getTypeDeclType to be inlined.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98138
91177308 -0d34-0410-b5e6-
96231b3b80d8
Zhongxing Xu [Wed, 10 Mar 2010 04:58:55 +0000 (04:58 +0000)]
Add use-after-free check to MallocChecker.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98136
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Wed, 10 Mar 2010 04:54:39 +0000 (04:54 +0000)]
Statement expressions can be used in global- or namespace-scoped blocks
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98135
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Wed, 10 Mar 2010 03:28:59 +0000 (03:28 +0000)]
Create a new InjectedClassNameType to represent bare-word references to the
injected class name of a class template or class template partial specialization.
This is a non-canonical type; the canonical type is still a template
specialization type. This becomes the TypeForDecl of the pattern declaration,
which cleans up some amount of code (and complicates some other parts, but
whatever).
Fixes PR6326 and probably a few others, primarily by re-establishing a few
invariants about TypeLoc sizes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98134
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Wed, 10 Mar 2010 03:02:01 +0000 (03:02 +0000)]
When building construction vtables, we need to check if a primary virtual base is actually a primary virtual base in the layout class.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98131
91177308 -0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 10 Mar 2010 02:43:01 +0000 (02:43 +0000)]
add missing test
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98129
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Wed, 10 Mar 2010 02:33:41 +0000 (02:33 +0000)]
Improve vcall offset handling in construction vtables. With this we layout the construction vtables from the ABI examples correctly.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98127
91177308 -0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 10 Mar 2010 02:19:29 +0000 (02:19 +0000)]
Delay codegen of vtables when handling implicit instantiations.
This fixes PR6474.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98123
91177308 -0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 10 Mar 2010 00:50:58 +0000 (00:50 +0000)]
Add insert/extract_ps and related random macros.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98114
91177308 -0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 10 Mar 2010 00:19:43 +0000 (00:19 +0000)]
Use SmallString instead of alloca.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98112
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 10 Mar 2010 00:18:11 +0000 (00:18 +0000)]
When computing in AnalysisContext the variables referenced
by a block, also look at the contained blocks.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98111
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 10 Mar 2010 00:18:08 +0000 (00:18 +0000)]
Enhance basic store to also lazily symbolicate VarRegions
with an 'unknown' memory space.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98110
91177308 -0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 9 Mar 2010 22:49:11 +0000 (22:49 +0000)]
Fix file reference for derived and composite types. Now, dwarf writer uses strict verifier that ignores debug info for such types if their file info is unknown.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98096
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Tue, 9 Mar 2010 22:39:49 +0000 (22:39 +0000)]
Value-initialize the written-builtin-specifiers field of DeclSpec, which
wasn't being initialized properly along the implicit-definition path.
Found by the valgrind buildbot.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98093
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Tue, 9 Mar 2010 22:17:52 +0000 (22:17 +0000)]
Fix the test some more.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98090
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Tue, 9 Mar 2010 21:50:08 +0000 (21:50 +0000)]
See if this test makes it though buildbot.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98087
91177308 -0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 9 Mar 2010 21:32:27 +0000 (21:32 +0000)]
More then one anonymous aggregates on one line creates chaos when MDNode uniquness is combined with RAUW operation. Right solution is to avoid using RAUW.
This fixes PR 6554.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98083
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Tue, 9 Mar 2010 21:26:24 +0000 (21:26 +0000)]
Reverse the code gen. enabled part of test until I can figure out
how to check the code pattern no matter how clang is built.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98079
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Tue, 9 Mar 2010 20:57:01 +0000 (20:57 +0000)]
Improve Objective-C token-annotation test
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98078
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Tue, 9 Mar 2010 19:15:10 +0000 (19:15 +0000)]
Code gen test for a previous patch for
radar
7709015
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98073
91177308 -0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 9 Mar 2010 19:14:07 +0000 (19:14 +0000)]
Use getLast() instead of getBasename().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98072
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Tue, 9 Mar 2010 18:34:52 +0000 (18:34 +0000)]
Don't error when a block pointer is passed to a
vararg functions/methods. Fixes radar
7725203 .
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98070
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Tue, 9 Mar 2010 13:06:04 +0000 (13:06 +0000)]
Add an Objective-C test for token annotation
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98056
91177308 -0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Tue, 9 Mar 2010 12:53:38 +0000 (12:53 +0000)]
Replace copy loops with memcpy.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98055
91177308 -0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 9 Mar 2010 00:44:50 +0000 (00:44 +0000)]
Start using DIFile. Corresponding llvm patch is r98020.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98021
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 8 Mar 2010 23:38:27 +0000 (23:38 +0000)]
Add test cases for r98003 and r98006.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98008
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 8 Mar 2010 23:23:45 +0000 (23:23 +0000)]
Add preprocessor guards to the definitions of size_t and wchar_t, and #undef NULL before defining it.
This addresses potential issues with system headers reported in <rdar://problem/
7727159 >.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98006
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 8 Mar 2010 23:13:05 +0000 (23:13 +0000)]
Place the definition of 'va_list' within a preprocessor guard. This matches the behavior of GCC, and avoids potential conflicts with system headers (e.g., stdio.h). Fixes <rdar://problem/
7727145 >.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98003
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 8 Mar 2010 21:17:29 +0000 (21:17 +0000)]
Implement clang_isUnexposed(), a predicate function to simplify filtering out
unexposed AST elements.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97985
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 8 Mar 2010 21:08:07 +0000 (21:08 +0000)]
add a codegen hack to work around an AST bug, allowing us to compile the
code in PR6537. This should be reverted when the ast bug is fixed.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97981
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 8 Mar 2010 20:56:29 +0000 (20:56 +0000)]
Allocate ASTRecordLayout objects using the allocator associated with ASTContext.
This allows them to be allocated using a BumpPtrAllocated
in the common case.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97978
91177308 -0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 8 Mar 2010 20:53:17 +0000 (20:53 +0000)]
Avoid using DIDescriptor.isNull().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97976
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Mon, 8 Mar 2010 20:01:09 +0000 (20:01 +0000)]
Revert r97727 at ddunbar's request; we want to solve this some other way.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97971
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Mon, 8 Mar 2010 19:34:43 +0000 (19:34 +0000)]
Rename -Wbad-literal to -Wliteral-range.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97968
91177308 -0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 8 Mar 2010 19:20:58 +0000 (19:20 +0000)]
Revert r97949.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97964
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 8 Mar 2010 19:06:44 +0000 (19:06 +0000)]
Don't enable static analysis support for C++ by default. Users are
accidentally using it without realizing that it is nowhere close
to being generally usable and are reporting crashes that we
already know about.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97960
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Mon, 8 Mar 2010 18:51:03 +0000 (18:51 +0000)]
Improve XML output for C++ classes, from Olaf Krzikalla!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97954
91177308 -0d34-0410-b5e6-
96231b3b80d8
Kovarththanan Rajaratnam [Mon, 8 Mar 2010 18:33:04 +0000 (18:33 +0000)]
Mark variable as const
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97951
91177308 -0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 8 Mar 2010 18:26:57 +0000 (18:26 +0000)]
Avoid DIDescriptor.isNull() checks.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97949
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Mon, 8 Mar 2010 16:40:19 +0000 (16:40 +0000)]
Extend ObjCMessageExpr for class method sends with the source location
of the class name.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97943
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Mon, 8 Mar 2010 14:59:44 +0000 (14:59 +0000)]
Keep track of type source information in the return type of an
Objective-C method declaration, e.g., for
- (Foo *)myMethod;
we now have TypeSourceInfo for the Foo*.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97942
91177308 -0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Mon, 8 Mar 2010 11:29:03 +0000 (11:29 +0000)]
Remove unused headers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97941
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Mon, 8 Mar 2010 02:49:35 +0000 (02:49 +0000)]
Remove redundant semicolon
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97930
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Mon, 8 Mar 2010 02:49:08 +0000 (02:49 +0000)]
Make a note for the C++0x future, when we'll have to revisit the jump-diagnostics handling for variables without initializers
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97929
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Mon, 8 Mar 2010 02:45:10 +0000 (02:45 +0000)]
In C++98/03, an uninitialized variable that has POD class type will be
uninitialized. This seems not to be the case in C++0x, where we still
call the (trivial) default constructor for a POD class
(!). Previously, we had implemented only the C++0x rules; now we
implement both. Fixes PR6536.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97928
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Mon, 8 Mar 2010 01:47:36 +0000 (01:47 +0000)]
Downgrade errors when trying to catch a pointer or reference to
incomplete type to warnings; GCC (and EDG in GCC compatibility mode)
permit such handles. Fixes PR6527.
(For real this time)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97927
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chandler Carruth [Mon, 8 Mar 2010 00:41:19 +0000 (00:41 +0000)]
Revert r97925, it only contained the test updates not the actual fix.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97926
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Sun, 7 Mar 2010 23:28:27 +0000 (23:28 +0000)]
Downgrade errors when trying to catch a pointer or reference to
incomplete type to warnings; GCC (and EDG in GCC compatibility mode)
permit such handles. Fixes PR6527.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97925
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Sun, 7 Mar 2010 23:26:22 +0000 (23:26 +0000)]
Robustify callers that rebuild typename type nodes again NULL return
types. Fixes PR6463.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97924
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Sun, 7 Mar 2010 23:24:59 +0000 (23:24 +0000)]
Perform overload resolution when static_cast'ing from a
pointer-to-member-to-derived to a pointer-to-member-to-base. Fixes
PR6072.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97923
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Sun, 7 Mar 2010 23:17:44 +0000 (23:17 +0000)]
Reference binding via user-defined conversion can compute a binding
that is not reference-related (because it requires another implicit
conversion to which we can find). Fixes PR6483.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97922
91177308 -0d34-0410-b5e6-
96231b3b80d8
Kovarththanan Rajaratnam [Sun, 7 Mar 2010 19:10:13 +0000 (19:10 +0000)]
Undefine correct macro
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97920
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 7 Mar 2010 18:50:21 +0000 (18:50 +0000)]
implement support for -Wno-deprecated, PR6534. While
I'm in there, change the altivec diagnostics to use 'double'
instead of "double" for consistency.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97919
91177308 -0d34-0410-b5e6-
96231b3b80d8
Kovarththanan Rajaratnam [Sun, 7 Mar 2010 11:21:46 +0000 (11:21 +0000)]
Don't rely on implicit conversion
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97916
91177308 -0d34-0410-b5e6-
96231b3b80d8
Kovarththanan Rajaratnam [Sun, 7 Mar 2010 07:30:06 +0000 (07:30 +0000)]
Rename to addPPCallbacks since we're effectively adding a callback and maybe chaining it to an existing one
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97913
91177308 -0d34-0410-b5e6-
96231b3b80d8
Kovarththanan Rajaratnam [Sun, 7 Mar 2010 07:18:58 +0000 (07:18 +0000)]
Don't assert if PP already contains a valid PP callback. The PP can handle multiple callbacks (using PPChainedCallbacks)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97910
91177308 -0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Sun, 7 Mar 2010 07:00:42 +0000 (07:00 +0000)]
Add sse4.1 packed min and max intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97907
91177308 -0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Sun, 7 Mar 2010 06:29:09 +0000 (06:29 +0000)]
Add load hint instruction intrinsic.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97904
91177308 -0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Sun, 7 Mar 2010 06:28:34 +0000 (06:28 +0000)]
Add in movntdqa intrinsic for load hint.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97903
91177308 -0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Sun, 7 Mar 2010 06:17:19 +0000 (06:17 +0000)]
Add in support for dword multiply and fp dot product intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97902
91177308 -0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Sun, 7 Mar 2010 06:16:56 +0000 (06:16 +0000)]
Add in dot product intrinsics for dpps and dppd.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97901
91177308 -0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Sun, 7 Mar 2010 05:49:51 +0000 (05:49 +0000)]
Fix for PR6294: we should only delay recording nested dynamic classes if they
are lexically nested. Othewise, we never end up recording semantically nested
classes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97900
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Sun, 7 Mar 2010 05:10:40 +0000 (05:10 +0000)]
Don't turn off mangling in implicitly extern "C" system headers. GCC
doesn't do this on any of the major platforms, and we don't really
support any of the platforms that do (nor will we actually handle
those headers well). Fixes PR6217; see PR6530 for details on what we
would need to do to support these platforms.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97899
91177308 -0d34-0410-b5e6-
96231b3b80d8
Tanya Lattner [Sun, 7 Mar 2010 04:47:12 +0000 (04:47 +0000)]
Fix 80 col violation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97898
91177308 -0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Sun, 7 Mar 2010 04:46:18 +0000 (04:46 +0000)]
Don't produce debug info when given -g. Fixes PR6529.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97897
91177308 -0d34-0410-b5e6-
96231b3b80d8
Tanya Lattner [Sun, 7 Mar 2010 04:40:06 +0000 (04:40 +0000)]
Fix indentation, use string directly instead of StringRef.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97896
91177308 -0d34-0410-b5e6-
96231b3b80d8
Tanya Lattner [Sun, 7 Mar 2010 04:27:11 +0000 (04:27 +0000)]
Fix some weird patch issue.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97894
91177308 -0d34-0410-b5e6-
96231b3b80d8
Tanya Lattner [Sun, 7 Mar 2010 04:17:15 +0000 (04:17 +0000)]
Implement missing-braces warning and add a test case.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97893
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 7 Mar 2010 00:17:28 +0000 (00:17 +0000)]
disable these dirs which rely on dynamic linking on mingw/cygwin
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97892
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 6 Mar 2010 21:21:27 +0000 (21:21 +0000)]
add mblaze target support, patch by Wesley Peck!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97890
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 6 Mar 2010 19:38:10 +0000 (19:38 +0000)]
on both the mac and linux, /usr/local/include is treated
as a "C++ Friendly" system header directory. This fixes
PR6523.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97885
91177308 -0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Sat, 6 Mar 2010 15:38:03 +0000 (15:38 +0000)]
Rename the new Iterator objects and raise an assertion instead of returning invalid objects when the key is out of range.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97881
91177308 -0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Sat, 6 Mar 2010 14:53:07 +0000 (14:53 +0000)]
Update the python bindings for recent changes in the CIndex API.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97880
91177308 -0d34-0410-b5e6-
96231b3b80d8
Kovarththanan Rajaratnam [Sat, 6 Mar 2010 12:07:48 +0000 (12:07 +0000)]
Lowercase for consistency
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97878
91177308 -0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Sat, 6 Mar 2010 10:31:44 +0000 (10:31 +0000)]
Fix _MM_FROUND_NEARBYINT and move rounding intrinsics to macros.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97874
91177308 -0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Sat, 6 Mar 2010 09:07:19 +0000 (09:07 +0000)]
Add a message to these asserts.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97873
91177308 -0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Sat, 6 Mar 2010 07:35:18 +0000 (07:35 +0000)]
Use static method in GlobalValue
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97872
91177308 -0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Sat, 6 Mar 2010 02:17:52 +0000 (02:17 +0000)]
PR6515: Implement __builtin_signbit and friends.
I'm reasonably sure my implementation is correct, but it would be nice if
someone could double-check.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97864
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Sat, 6 Mar 2010 01:58:53 +0000 (01:58 +0000)]
Allow use of byref (__block attributed) arrays inside
the block. Fixes radar
7671883 .
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97863
91177308 -0d34-0410-b5e6-
96231b3b80d8
John McCall [Sat, 6 Mar 2010 00:35:14 +0000 (00:35 +0000)]
Implement __builtin_dwarf_sp_column for i386 (Darwin and not), x86-64 (all),
and ARM. Implement __builtin_init_dwarf_reg_size_table for i386 (both) and
x86-64 (all).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97859
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Fri, 5 Mar 2010 23:38:39 +0000 (23:38 +0000)]
When declaring a catch block in C++, make sure that the type being
caught can be copy-initialized and destructed. Fixes PR6518.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97853
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 5 Mar 2010 22:43:32 +0000 (22:43 +0000)]
Augment __has_feature to report that Clang supports adding attribute 'unused'
to an Objective-C instance variable.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97850
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 5 Mar 2010 22:43:29 +0000 (22:43 +0000)]
Check if 'Unit' is NULL before trying to iterate over the diagnostics.
This obviates a null dereference that can occur when 'NumErrors'
is not zero.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97849
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 5 Mar 2010 22:43:25 +0000 (22:43 +0000)]
Add clang version to crashtracer string.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97848
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Fri, 5 Mar 2010 22:42:55 +0000 (22:42 +0000)]
Patch to build qualifier on objective-c
pointer types. Fixes radar
7626768 .
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97847
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Fri, 5 Mar 2010 22:19:41 +0000 (22:19 +0000)]
The Windows build is just too weird; there's no real cost to doing the concurrency checks for ASTUnit in all builds
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97840
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Fri, 5 Mar 2010 21:48:53 +0000 (21:48 +0000)]
Switch from NDEBUG to _DEBUG, since our Windows build is funny
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97835
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Fri, 5 Mar 2010 21:39:18 +0000 (21:39 +0000)]
Only make __ptr64 and __w64 keywords when Microsoft extensions are enabled.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97834
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Fri, 5 Mar 2010 21:16:25 +0000 (21:16 +0000)]
A little hack to identify unwanted concurrency in CIndex
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97831
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 5 Mar 2010 20:38:02 +0000 (20:38 +0000)]
Emit warning on indirect goto that potentially violates
scope instead of error, PR6517
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97826
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 5 Mar 2010 19:26:49 +0000 (19:26 +0000)]
address PR6502 by downgrading the scope checker's address
of label error to a warning controllable with a -W flag.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97815
91177308 -0d34-0410-b5e6-
96231b3b80d8
Kovarththanan Rajaratnam [Fri, 5 Mar 2010 15:40:54 +0000 (15:40 +0000)]
Use clang::io::Emit8
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97810
91177308 -0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Fri, 5 Mar 2010 15:39:20 +0000 (15:39 +0000)]
Make sure the raw_string_ostream gets flushed so we don't accidentally return an empty string.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97809
91177308 -0d34-0410-b5e6-
96231b3b80d8
Zhongxing Xu [Fri, 5 Mar 2010 04:45:36 +0000 (04:45 +0000)]
Remove reference to AnalysisContext in Environment. We already have LocationContext
information in ExplodedNode.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97785
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Fri, 5 Mar 2010 01:49:18 +0000 (01:49 +0000)]
Remove header file dependencies in block patch
test case.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97777
91177308 -0d34-0410-b5e6-
96231b3b80d8
Blaine Garst [Fri, 5 Mar 2010 01:29:59 +0000 (01:29 +0000)]
add support for a 1<<29 bit in the block flags field to mark blocks using alternate struct return ABI
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97775
91177308 -0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Fri, 5 Mar 2010 01:21:10 +0000 (01:21 +0000)]
Don't produce an alias for a destructor if the target is weak.
This fixes bootstrap on ELF systems :-)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97773
91177308 -0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Fri, 5 Mar 2010 00:26:45 +0000 (00:26 +0000)]
When we invalidate a declaration, make it public, so that it doesn't
trigger access control or one of the many assertions we have for valid
access specifiers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97767
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Thu, 4 Mar 2010 23:13:29 +0000 (23:13 +0000)]
Make rewritten source compiled with clang++.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97762
91177308 -0d34-0410-b5e6-
96231b3b80d8