Ted Kremenek
0d8dc1e398
Add inclusion links for external JavaScript file.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95611 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 23:52:41 +00:00
Ted Kremenek
5a9bd11693
Switch to drop-down menu style.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95610 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 23:50:54 +00:00
Douglas Gregor
dcee98048d
When substituting a declaration non-type template argument for a
...
non-type template parameter that has reference type, augment the
qualifiers of the non-type template argument with those of the
referenced type. Fixes PR6250.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95607 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 23:41:45 +00:00
Douglas Gregor
a3890baf12
Clean up the CIndex interface to diagnostic ranges. Thanks, Daniel!
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95602 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 23:11:56 +00:00
John McCall
5769d61950
Thread a source location into the template-argument deduction routines. There
...
may be some other places that could take advantage of this new information,
but I haven't really looked yet.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95600 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 23:07:23 +00:00
Douglas Gregor
0087e1a12b
Note that a CXIndex cannot be destroyed until after all of its translation units have been destroyed
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95598 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 23:03:06 +00:00
Douglas Gregor
fd6a0887a0
Eliminate a pointer of storage in each ObjCInterfaceType and
...
ObjCObjectPointerType AST node by allocating the list of protocols
after the type node itself. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95597 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 22:59:26 +00:00
Daniel Dunbar
e86bcf0d9e
Reapply r95393, without the change to CGExpr. I was wrong in assuming that the
...
element type always matched the converted LLVM type for ExprType.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95596 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 22:53:07 +00:00
Douglas Gregor
ba915af51c
Warn when cases are missing from a switch on a value of enumeration
...
type (-Wswitch), from Michal!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95592 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 22:24:16 +00:00
Ted Kremenek
7dc94d6892
Remove table (for now). Doesn't look so hot.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95590 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 22:16:08 +00:00
Ted Kremenek
51667ee4bf
Add images showing the results in a web browser and Xcode respectively.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95589 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 22:12:48 +00:00
Douglas Gregor
591bd3cb60
Keep track of whether a tag was defined in a declarator vs. being
...
defined by itself, from Enea Zaffanella!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95586 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 22:07:33 +00:00
John McCall
8878686242
Emit global references with constant initializers as constants. Fixes PR5585.
...
The standard actually says that such references should have internal linkage,
but gcc doesn't do that, so we probably can't get away with it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95577 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 21:46:50 +00:00
Ted Kremenek
f1904a8a3f
Remove link to Developer Meeting and tighten menu.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95576 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 21:39:53 +00:00
Ted Kremenek
e4367046a8
Add link to the current status of analysis support for C++.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95573 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 21:36:47 +00:00
Ted Kremenek
757a9d1f00
Add some diagnostics for when we cannot update the original spec file.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95572 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 21:19:27 +00:00
Fariborz Jahanian
15ced59e27
Merge block/function pointer types with objc's __weak
...
attribute properly and avoid bogus warning. This is
an objective-c fix only. objective-c++ follows different code
pass and requires separate fix (which will come at a later time).
Fixes radar 7214820.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95571 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 21:09:39 +00:00
Douglas Gregor
089459a16b
Implement basic importing and merging of variable declarations within
...
the AST importer. This doesn't actually do anything (yet), because we
don't have driver logic for merging ASTs.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95570 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 21:09:39 +00:00
Ted Kremenek
7aaa953581
Add a Python script to change what version of Clang is used by Xcode for static analysis (and ONLY static analysis).
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95569 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 20:54:01 +00:00
Daniel Dunbar
135da71b4c
Fix -Asserts warning.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95563 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 20:24:21 +00:00
Sebastian Redl
35911ce76b
Add a test case for r95555.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95562 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 19:58:40 +00:00
Benjamin Kramer
064fb20e7a
Simplify another switch/strcmp construct. No functionality/performance change.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95561 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 19:51:59 +00:00
Sebastian Redl
39d67117f8
When placing an annotation token over an existing annotation token, make sure that the new token's range extends to the end of the old token. Assert that in AnnotateCachedTokens. Fixes PR6248.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95555 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 19:35:18 +00:00
John McCall
4c72d3ec68
Fix the crash-on-invalid from PR6259.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95554 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 19:26:07 +00:00
Chandler Carruth
e228ba97c9
Ensure that a operator delete overload is rocognized regardless of cv-quals.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95553 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 18:54:05 +00:00
Benjamin Kramer
b6f3c70fb8
Reapply r95546, no intended change in performance or functionality.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95552 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 18:38:55 +00:00
Ted Kremenek
e7d03121af
Revert 95546 since it changed the algorithmic characteristics of the convention lookup.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95547 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 16:45:01 +00:00
Benjamin Kramer
de69f70443
Simplify code with StringRef.
...
3 files changed, 76 insertions(+), 153 deletions(-)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95546 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 16:39:00 +00:00
Ted Kremenek
1397663af9
Revert 95541.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95545 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 16:18:51 +00:00
Nuno Lopes
d819f74fb5
set svn:ignore
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95544 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 15:41:06 +00:00
Douglas Gregor
169fba50da
Cache imported types
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95543 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 15:18:58 +00:00
Zhongxing Xu
6f8c430a95
Rename: GRState::getSVal(Stmt*) => getExprVal(),
...
GRState::getSVal(MemRegion*) => Load().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95541 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 09:30:02 +00:00
Zhongxing Xu
b241cf6f69
BindInternal is redundant. Remove it.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95540 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 08:48:05 +00:00
Zhongxing Xu
8149185422
Like for symbolic region, automatically create a element zero region for
...
alloca region.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95539 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 08:43:02 +00:00
Zhongxing Xu
52535688b1
Unify the implementation of getLValueElement of store managers.
...
It's more sophisticated than the original one of BasicStore. But it does
matter.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95536 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 08:17:02 +00:00
Zhongxing Xu
c1511e0499
Unify the implementation of getLValueIvar and getLValueField of store managers.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95535 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 07:58:06 +00:00
Zhongxing Xu
459731d468
Move common methods to the base StoreManager class.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95534 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 07:10:35 +00:00
Chandler Carruth
53cb6f82c4
This doesn't seem to be used code as it didn't break any tests, but fix the
...
glaring logic bug anyways. =D
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95533 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 06:42:49 +00:00
Zhongxing Xu
2a393db096
ASTContext is now a reference member of StoreManager.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95531 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 06:00:22 +00:00
Zhongxing Xu
36d02e0984
Add support for binding and retrieving VarRegions in flat store.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95529 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-08 05:40:07 +00:00
Chandler Carruth
a7ef13024e
Require a complete type before examining base classes during template argument
...
deduction. This requires refactoring the deduction to have access to the Sema
object instead of merely the ASTContext. Still leaves something to be desired
due to poor source location.
Fixes PR6257 and half of PR6259.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95528 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-07 21:33:28 +00:00
Anders Carlsson
1851a12605
Make sure to set vtable pointers in the destructors as well.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95525 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-07 19:45:40 +00:00
Anders Carlsson
585fa68ca0
Use the right type when taking the address of a non-virtual member function pointer. Fixes PR6258.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95524 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-07 17:37:13 +00:00
Douglas Gregor
63644fae39
Workaround for friend template instantiation crash in PR5848, from Keir Mierle!
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95517 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-07 10:31:35 +00:00
Douglas Gregor
63a011378d
Fix assertion failure when parsing linkage specifications (PR5921),
...
from Keir Mierle!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95516 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-07 08:38:28 +00:00
Sam Weinig
eb7f96141f
Roll r95513 back in.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95515 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-07 06:32:43 +00:00
Sam Weinig
a8ad5d4975
Roll out r95513, it seems to have broken self hosting.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95514 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-07 05:26:25 +00:00
Sam Weinig
1eb1113b13
Add PCH support for CXXBoolLiteralExpr and CXXNullPtrLiteralExpr.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95513 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-07 04:44:10 +00:00
Anders Carlsson
f6b89a1738
Use the right linkage for static variables inside C++ inline functions.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95512 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-07 02:03:08 +00:00
Anders Carlsson
39de84d671
Improved handling of the visibility attribute. Declarations now inherit their parent's visibility.
...
(This is kind of a risky change, but I did a self-host build and everything appears to work fine!)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95511 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-07 01:44:36 +00:00