Ted Kremenek
9ffbd9fb64
Remove declaration for unused and unimplemented static method.
...
llvm-svn: 74182
2009-06-25 17:25:49 +00:00
Anders Carlsson
7972b14007
Extra asserts never hurt anybody, right?
...
llvm-svn: 74177
2009-06-25 16:06:43 +00:00
Anders Carlsson
7d209570b6
Decltype needs to have a dependent type if the expr passed to it is type dependent. Fixes PR4444.
...
llvm-svn: 74175
2009-06-25 15:00:34 +00:00
Duncan Sands
323fc2a229
Explicit braces to avoid ambiguous ‘else’.
...
llvm-svn: 74171
2009-06-25 09:03:06 +00:00
Zhongxing Xu
c53b444d36
remove RegionKills GDM. Now UnknownVal is bound to regions explicitly.
...
llvm-svn: 74168
2009-06-25 05:52:16 +00:00
Zhongxing Xu
2d16073b50
Move element region retrieving logic into a separate function.
...
llvm-svn: 74166
2009-06-25 05:29:39 +00:00
Douglas Gregor
9b5f9cd2f7
Make sure install Clang headers when building clang-cc
...
llvm-svn: 74163
2009-06-25 05:07:31 +00:00
Douglas Gregor
d4daf75100
Add missing dependencies to the CMake build system
...
llvm-svn: 74162
2009-06-25 05:03:29 +00:00
Zhongxing Xu
e67ea5c784
Move all logic for retrieving ElementRegion binding into a separate method.
...
Revert to setting default value approach for handling struct initialization.
llvm-svn: 74160
2009-06-25 04:50:44 +00:00
Ted Kremenek
799bb6e178
Remove uses of std::ostream from libAnalysis.
...
llvm-svn: 74136
2009-06-24 23:06:47 +00:00
Ted Kremenek
35a63c680f
Remove unneeded #includes.
...
llvm-svn: 74131
2009-06-24 22:26:16 +00:00
Ted Kremenek
2c6a7b2776
Remove GRStateManager::GetSValAsScalarOrLoc()/GetSVal().
...
llvm-svn: 74128
2009-06-24 22:15:30 +00:00
Anders Carlsson
b7fe2d672a
We now support decltype (as far as I know :)
...
llvm-svn: 74127
2009-06-24 22:10:19 +00:00
Fariborz Jahanian
49796cc77a
Backed out my last patch which caused a clang-test breakage. Will
...
look at it later.
llvm-svn: 74126
2009-06-24 22:09:44 +00:00
Anders Carlsson
ad6bd35b46
C++ decltype support (N2343)
...
llvm-svn: 74118
2009-06-24 21:24:56 +00:00
Anders Carlsson
0d00e80b8e
Type::getDesugaredType needs to handle decltype types.
...
llvm-svn: 74115
2009-06-24 20:59:53 +00:00
Fariborz Jahanian
be19db0063
Added a missing else part to my previous patche(s).
...
llvm-svn: 74108
2009-06-24 19:24:38 +00:00
Ted Kremenek
6ea5dda489
Fix typo.
...
llvm-svn: 74107
2009-06-24 19:20:24 +00:00
Ted Kremenek
d2ece0703c
Reference the correct image...
...
llvm-svn: 74106
2009-06-24 19:19:18 +00:00
Ted Kremenek
ffd586aa64
Add scan-build screenshot for attribute 'nonnull' example.
...
llvm-svn: 74104
2009-06-24 19:17:54 +00:00
Ted Kremenek
6e7d59f0c6
Fix broken HTML tag.
...
llvm-svn: 74103
2009-06-24 19:12:56 +00:00
Ted Kremenek
b49fe2aff7
Remove reference to using 'clang' directly to analyze projects.
...
llvm-svn: 74102
2009-06-24 19:12:07 +00:00
Ted Kremenek
9f345e1cad
Tighten screenshot.
...
llvm-svn: 74100
2009-06-24 19:08:56 +00:00
Anders Carlsson
81df7b89de
Add a DecltypeType type.
...
llvm-svn: 74099
2009-06-24 19:06:50 +00:00
Ted Kremenek
550e701cf5
Replace 'clang --analyze' example for attribute cf_returns_retained with screenshots.
...
llvm-svn: 74098
2009-06-24 19:04:37 +00:00
Ted Kremenek
645c54ef11
Replace 'clang --analyze' example (in text) with screenshot from scan-build.
...
llvm-svn: 74095
2009-06-24 18:50:14 +00:00
Anders Carlsson
74948d0701
Parse the C++0x decltype specifier.
...
llvm-svn: 74086
2009-06-24 17:47:40 +00:00
Owen Anderson
4d9e93c420
Update for LLVM API changes.
...
llvm-svn: 74085
2009-06-24 17:37:55 +00:00
Chris Lattner
46be2e1557
fix the type of wchar_t for windows, PR4417
...
llvm-svn: 74083
2009-06-24 17:12:15 +00:00
Fariborz Jahanian
6e9e4f3436
Fix a clang crash caused by incorrect user code.
...
llvm-svn: 74080
2009-06-24 17:00:18 +00:00
Douglas Gregor
23061ded56
Implement matching of function templates, so that one can declare overloaded function templates. C++ [temp.over.link] paragraphs 4-8.
...
llvm-svn: 74079
2009-06-24 16:50:40 +00:00
Anders Carlsson
b50f45f9b2
Nested classes are now complete.
...
llvm-svn: 74052
2009-06-24 02:03:09 +00:00
Anders Carlsson
9e47af8b59
Add test for [class.local]p2.
...
llvm-svn: 74051
2009-06-24 02:00:28 +00:00
Zhongxing Xu
33420090ae
use a concrete type instead of a trait type to make code more readable.
...
llvm-svn: 74047
2009-06-24 01:12:41 +00:00
Zhongxing Xu
9ef415edf2
RegionStore: revert to the default value approach for array initialization.
...
llvm-svn: 74043
2009-06-24 00:56:31 +00:00
Douglas Gregor
17a7c1297a
Make sure that the template parameter lists get from the parser down to ActOnFunctionDeclarator for function template definitions
...
llvm-svn: 74040
2009-06-24 00:54:41 +00:00
Anders Carlsson
58b19d5310
class.nested.type is done.
...
llvm-svn: 74034
2009-06-24 00:32:04 +00:00
Anders Carlsson
829574edab
Add test for [class.nested.type]p1
...
llvm-svn: 74033
2009-06-24 00:30:37 +00:00
Anders Carlsson
d2e8adfc75
Support for [class.local]p4.
...
llvm-svn: 74030
2009-06-24 00:28:53 +00:00
Douglas Gregor
c1da0f0b9b
When declaring a function template, create a FunctionTemplateDecl node
...
and associate it with the FunctionDecl.
llvm-svn: 74028
2009-06-24 00:23:40 +00:00
Anders Carlsson
946b86d91a
[class.local] p1 and p3. Also, add back the xcodeproj file.
...
llvm-svn: 74027
2009-06-24 00:10:43 +00:00
Fariborz Jahanian
a83edb0cc1
Some changes to accomodate Doug's comment for
...
implicit copy constructor definition determination.
llvm-svn: 74025
2009-06-23 23:42:10 +00:00
Douglas Gregor
b52fabb2a8
Start propagating template parameter lists to the right places to
...
handle function templates. There's no actual code for function
templates yet, but at least we complain about typedef templates.
llvm-svn: 74021
2009-06-23 23:11:28 +00:00
Daniel Dunbar
349db7bbcd
Fix warning when building w/o asserts.
...
llvm-svn: 74020
2009-06-23 23:09:58 +00:00
Argyrios Kyrtzidis
33661d9f16
Introduce SourceManager::ísBeforeInTranslationUnit() which can compare 2 source locations and determine which one comes before the other, relative to the translation unit.
...
llvm-svn: 74014
2009-06-23 22:01:48 +00:00
Argyrios Kyrtzidis
25ee5db366
Move the command line source location parsing from clang-cc.cpp into "include/Frontend/CommandLineSourceLoc.h".
...
llvm-svn: 74012
2009-06-23 22:01:39 +00:00
Argyrios Kyrtzidis
9cab2967c4
Update CMakeLists.txt
...
llvm-svn: 74011
2009-06-23 22:01:29 +00:00
Ted Kremenek
4cf427a8ae
Fix build.
...
llvm-svn: 74009
2009-06-23 21:50:16 +00:00
Fariborz Jahanian
248c719a68
Patch fixes an obscure bug when 'used' attribute is applied to
...
variables in ObjC's Next runtime mode. Next runtime also implicitly applies
'used' attribute on some of its meta-data. This results in two
'llvm.used' arrays to be generated, and one of them is renamed to
'llvm.used1'.
llvm-svn: 74008
2009-06-23 21:47:46 +00:00
Douglas Gregor
4a75be24c9
Eliminate DeclPtrTy() arguments to ActOnDeclarator that are just a very, very weird way to pass "false". No functionality change
...
llvm-svn: 74007
2009-06-23 21:43:56 +00:00