summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix test case to match intent.Daniel Dunbar2009-07-111-1/+1
| | | | llvm-svn: 75381
* restore proper valgrind support.Nuno Lopes2009-07-112-7/+15
| | | | | | disclaim: I know nothing about Python, so apologies in advance if I break something llvm-svn: 75368
* Fix breakage on Windows, cannot redeclare loop variable i in the immediate ↵Alisdair Meredith2009-07-111-4/+4
| | | | | | scope of loop. Rename variable to j. llvm-svn: 75365
* Handle insidious corner case exposed by RegionStoreManager when handling ↵Ted Kremenek2009-07-112-0/+34
| | | | | | | | void* values that are bound to symbolic regions and then treated like integers. llvm-svn: 75356
* remove duplicated test cast.Zhongxing Xu2009-07-111-7/+0
| | | | llvm-svn: 75329
* Fix a test.Anders Carlsson2009-07-111-1/+1
| | | | llvm-svn: 75327
* Restructure RegionStoreManager::EvalBinOp() as a switch dispatch over differentTed Kremenek2009-07-111-33/+59
| | | | | | | MemRegion kinds. This allows the compiler to identify what MemRegions we don't handle for pointer arithmetic. llvm-svn: 75326
* Fix typo (found by gcc warning).Eli Friedman2009-07-111-1/+1
| | | | llvm-svn: 75325
* Add another test.Anders Carlsson2009-07-111-0/+10
| | | | llvm-svn: 75324
* Implement more of C++0x 'auto'. A variable with an auto type specifier must ↵Anders Carlsson2009-07-117-5/+21
| | | | | | have an initializer. Also, move some tests around to match the C++0x draft better. llvm-svn: 75322
* Fix warning when compiling with optimizations:Ted Kremenek2009-07-111-2/+2
| | | | | | | | | warning: ‘OPT’ may be used uninitialized in this function Now OPT is initialized to NULL. I'm not certain if this is the correct fix; others please review. llvm-svn: 75321
* This test passes with RegionStoreManager.Ted Kremenek2009-07-111-1/+2
| | | | llvm-svn: 75318
* This test now passes with RegionStoreManager.Ted Kremenek2009-07-111-1/+2
| | | | llvm-svn: 75316
* Remove some unused code from an experiment that I didn't like.Anders Carlsson2009-07-102-52/+0
| | | | llvm-svn: 75315
* This patch includes a conceptually simple, but very intrusive/pervasive change. Steve Naroff2009-07-1043-755/+892
| | | | | | | | | | | | The idea is to segregate Objective-C "object" pointers from general C pointers (utilizing the recently added ObjCObjectPointerType). The fun starts in Sema::GetTypeForDeclarator(), where "SomeInterface *" is now represented by a single AST node (rather than a PointerType whose Pointee is an ObjCInterfaceType). Since a significant amount of code assumed ObjC object pointers where based on C pointers/structs, this patch is very tedious. It should also explain why it is hard to accomplish this in smaller, self-contained patches. This patch does most of the "heavy lifting" related to moving from PointerType->ObjCObjectPointerType. It doesn't include all potential "cleanups". The good news is additional cleanups can be done later (some are noted in the code). This patch is so large that I didn't want to include any changes that are purely aesthetic. By making the ObjC types truly built-in, they are much easier to work with (and require fewer "hacks"). For example, there is no need for ASTContext::isObjCIdStructType() or ASTContext::isObjCClassStructType()! We believe this change (and the follow-up cleanups) will pay dividends over time. Given the amount of code change, I do expect some fallout from this change (though it does pass all of the clang tests). If you notice any problems, please let us know asap! Thanks. llvm-svn: 75314
* Restructure RegionStoreManager::getSizeInElements() to use a switch statementTed Kremenek2009-07-101-52/+67
| | | | | | | over the types of MemRegions. This allows the compiler to warn us which regions are not handled, and also is a little faster. llvm-svn: 75304
* Fix silly mistake I made applying patch to fix test.Eli Friedman2009-07-101-1/+1
| | | | llvm-svn: 75303
* Rename test file.Ted Kremenek2009-07-101-0/+0
| | | | llvm-svn: 75297
* RegionStoreManager also passes this test file.Ted Kremenek2009-07-101-1/+6
| | | | llvm-svn: 75296
* RegionStoreManager now correctly passes this test file.Ted Kremenek2009-07-101-1/+2
| | | | llvm-svn: 75295
* Test case in test/Analysis/xfail_regionstore_wine_crash.c no longer fails, soTed Kremenek2009-07-103-23/+9
| | | | | | | move this case to 'test/Analysis/misc-ps.m' to test with both BasicStoreManager and RegionStoreManager. llvm-svn: 75294
* Fix type of 'this' and add a decltype test.Anders Carlsson2009-07-103-2/+17
| | | | llvm-svn: 75291
* Revert r75281 and simply remove the assertion in NewCastRegion thatTed Kremenek2009-07-102-32/+13
| | | | | | | | CodeTextRegions can only be casted to FunctionPointer or BlockPointerTypes. This simply isn't true. We can handle bogus operations on CodeTextRegions (e.g, an array access) elsewhere. llvm-svn: 75285
* Fix crash in StoreManager::NewCastRegion regarding handling casts to void*,Ted Kremenek2009-07-102-3/+38
| | | | | | void**, void***, etc. Such casts should just pass the region through. llvm-svn: 75281
* Use /usr/bin/env trick to find python. Patch by Krister Walfridsson.Eli Friedman2009-07-108-8/+8
| | | | llvm-svn: 75271
* Patch to build list of inherited virtual base classes Fariborz Jahanian2009-07-104-11/+160
| | | | | | | | in their order of construction for each class and use it to to check on propery order of base class construction under -Wreorder option. llvm-svn: 75270
* Misc fixes to fix tests on OpenBSD, per email to cfe-commits. Patches Eli Friedman2009-07-104-2/+5
| | | | | | by Jonathan Gray and Krister Walfridsson. llvm-svn: 75268
* Fix a problem that Eli noticed, and that Doug helped me fix.Anders Carlsson2009-07-104-10/+20
| | | | llvm-svn: 75265
* Rename potentially ambiguous member template 'getRegion' to 'getSubRegion' ↵Ted Kremenek2009-07-102-7/+7
| | | | | | to hopefully resolve template lookup ambiguities on some compilers. llvm-svn: 75253
* linkifyChris Lattner2009-07-101-1/+1
| | | | llvm-svn: 75225
* Add documentation for the Index library to clang's web page.Argyrios Kyrtzidis2009-07-103-0/+269
| | | | llvm-svn: 75222
* Simplify a bit by using functions instead of checking enum values. No ↵Argyrios Kyrtzidis2009-07-101-15/+30
| | | | | | functionality change. llvm-svn: 75221
* Switch BasicStoreManager to use the new CastRegion implementation by default,Ted Kremenek2009-07-1055-79/+79
| | | | | | | | and replace the 'clang-cc' option '-analyzer-store=basic-new-cast' with '-analyzer-store=basic-old-cast'. We'll keep the old CastRegion implementation around for a little while for regression testing. llvm-svn: 75209
* don't crash if class is using itself as its super class.Fariborz Jahanian2009-07-093-36/+51
| | | | llvm-svn: 75178
* Fix another decltype crash.Anders Carlsson2009-07-092-1/+6
| | | | llvm-svn: 75175
* Sema check on out of order object initialization ofFariborz Jahanian2009-07-095-5/+103
| | | | | | class object's base and members under -Wreorder flag. llvm-svn: 75168
* Use getDeclName in DefineImplicitOverloadedAssign as well.Anders Carlsson2009-07-092-4/+20
| | | | llvm-svn: 75152
* Another little test for C++ [over.over]Douglas Gregor2009-07-091-0/+10
| | | | llvm-svn: 75151
* Pass the DeclName to the diagnostic builder so that member names will be ↵Anders Carlsson2009-07-092-5/+5
| | | | | | quoted correctly. llvm-svn: 75150
* Update checker build.Ted Kremenek2009-07-091-1/+1
| | | | llvm-svn: 75147
* Add test for C++ [over.over.]p1, the contexts in which one can take the ↵Douglas Gregor2009-07-092-1/+95
| | | | | | address of an overloaded function. llvm-svn: 75146
* Remove dead code.Zhongxing Xu2009-07-091-1/+0
| | | | llvm-svn: 75127
* Store the isAddressOfOperand in the UnresolvedDeclRefExpr, so that we can ↵Anders Carlsson2009-07-094-5/+20
| | | | | | pass it when instantiating the expr. Fixes another member pointer bug. llvm-svn: 75075
* Implement the simple form of overload resolution used when taking theDouglas Gregor2009-07-084-20/+96
| | | | | | | address of an overloaded function (which may involve both functions and function templates). llvm-svn: 75069
* Fix: <rdar://problem/7034511> ValueManager::makeIntVal(uint64_t X, QualType ↵Ted Kremenek2009-07-082-2/+16
| | | | | | T) should return a 'Loc' when 'T' is a pointer llvm-svn: 75062
* It's not allowed to form member pointers to members that have reference ↵Anders Carlsson2009-07-083-2/+33
| | | | | | type. Add a test for this and the rest of [dcl.mptr]p3. llvm-svn: 75054
* Bump the PCH version numberDouglas Gregor2009-07-081-1/+1
| | | | llvm-svn: 75049
* Implement template argument deduction when taking the address of aDouglas Gregor2009-07-086-142/+393
| | | | | | | | function template. Most of the change here is in factoring out the common bits used for template argument deduction from a function call and when taking the address of a function template. llvm-svn: 75044
* Update for IRBuilder API change.Owen Anderson2009-07-082-1/+2
| | | | llvm-svn: 75041
* Update for LLVM API change.Owen Anderson2009-07-087-183/+122
| | | | llvm-svn: 75028
OpenPOWER on IntegriCloud