summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* [analyzer] Move handling of hardcoded noreturn ("panic") methods from ↵Jordy Rose2011-08-203-38/+79
| | | | | | CFRefCount to NoReturnFunctionChecker. No functionality change intended. llvm-svn: 138210
* test/lit.cfg: Enable "crash-recovery" tests on Win32 hosts. ↵NAKAMURA Takumi2011-08-201-2/+1
| | | | | | | CrashRecoveryContext supports Win32 since r138199. FIXME: Shall we eliminate the feature "crash-recovery"? llvm-svn: 138201
* Typo spotted by Ivan Krasin.Chad Rosier2011-08-201-1/+1
| | | | llvm-svn: 138200
* Remove this test. It requires C++ standard library headers, which we'dChandler Carruth2011-08-201-13/+0
| | | | | | | | | | | like to avoid within the Clang test suite, it doesn't verify the output at all so it only servers as a test that Clang doesn't crash, and finally all it does is declare a function that returns a vector and call it. Probably the biggest thing being tested here is Clang's parsing of the vector template, and we have lots of good template parsing tests. We don't need another in codegen. llvm-svn: 138197
* [analyzer] Handle reads of ObjCPropertyRefExprs implicitly in Environment. ↵Ted Kremenek2011-08-204-10/+6
| | | | | | No need to bind an explicit value and create a new node. llvm-svn: 138196
* [analyzer] Simplify ExprEngine::VisitBinaryOperator() by removing recursive ↵Ted Kremenek2011-08-201-121/+113
| | | | | | visit to subexpressions (which is no longer needed). llvm-svn: 138195
* Start partitioning ExprEngine.cpp into separate .cpp files that handle ↵Ted Kremenek2011-08-205-1187/+1202
| | | | | | | | different parts of the analysis (e.g., analysis of C expressions, analysis of Objective-C expressions, and so on). llvm-svn: 138194
* Rename CXXExprEngine.cpp to ExprEngineCXX.cpp.Ted Kremenek2011-08-202-2/+2
| | | | llvm-svn: 138193
* test/CodeGenCXX/2003-11-25-ReturningOpaqueByValue.cpp: Mark XFAIL: win32.NAKAMURA Takumi2011-08-201-0/+2
| | | | | FIXME: Avoid using system headers. clang cannot handle MS <vector> yet. llvm-svn: 138190
* Make the loading of multiple records for the same identifier (fromDouglas Gregor2011-08-204-1/+14
| | | | | | | | | | different modules) more robust. It already handled (simple) merges of the set of declarations attached to that identifier, so add a test case that shows us getting two different declarations for the same identifier (one struct, one function) from different modules, and are able to use both of them. llvm-svn: 138189
* Clean out some minor cruft in the AST reader; no functionality change.Douglas Gregor2011-08-201-2/+0
| | | | llvm-svn: 138188
* Introduce a module visitation function that starts at the top-levelDouglas Gregor2011-08-205-19/+145
| | | | | | | | | | | | | | | | | modules (those that no other module depends on) and performs a search over all of the modules, visiting a new module only when all of the modules that depend on it have already been visited. The visitor can abort the search for all modules that a module depends on, which allows us to minimize the number of lookups necessary when performing a search. Switch identifier lookup from a linear walk over the set of modules to this module visitation operation. The behavior is the same for simple PCH and chained PCH, but provides the proper search order for modules. Verified with printf debugging, since we don't have enough in place to actually test this. llvm-svn: 138187
* Static Analyzer Diagnostics: Move the responsibility for generating the ↵Anna Zaks2011-08-205-71/+118
| | | | | | endOfPath diagnostic piece from BugReport to BugReporterVisitor. Switch CFRefCount to use visitors in order to generate the endOfPath piece. llvm-svn: 138184
* Remove dead code.Ted Kremenek2011-08-202-25/+1
| | | | llvm-svn: 138183
* Remove XFAIL/XTARGET since this is passing on the other bots.Eric Christopher2011-08-201-2/+0
| | | | llvm-svn: 138182
* Migrate, update and FileCheckize:Eric Christopher2011-08-204-0/+90
| | | | | | | | | | | 2010-02-01-utf16-with-null.m 2010-02-23-DbgInheritance.m 2010-03-17-StructRef.m 2011-03-08-IVarLookup.m from llvm/test/FrontendObjC. llvm-svn: 138180
* Migrate, update and FileCheckize:Eric Christopher2011-08-204-0/+51
| | | | | | | | | | | 2008-11-25-Blocks.m 2009-01-26-WriteBarrier-2.m 2009-02-05-VolatileProp.m 2009-08-05-utf16.m from llvm/test/FrontendObjC. llvm-svn: 138175
* Migrate, FileCheckize and update:Eric Christopher2011-08-207-0/+154
| | | | | | | | | | | | | | 2007-04-03-ObjcEH.m 2007-05-02-Strong.m 2007-10-18-ProDescriptor.m 2007-10-23-GC-WriteBarrier.m 2008-10-3-EhValue.m 2008-11-12-Metadata.m 2008-11-24-ConstCFStrings.m from llvm/test/FrontendObjC. llvm-svn: 138172
* Migrate and update:Eric Christopher2011-08-203-0/+33
| | | | | | | | | | 2007-10-03-MetadataPointers.mm 2010-08-04-Template.mm 2010-08-06-X.Y-syntax.mm from llvm/test/FrontendObjC++. llvm-svn: 138167
* Remove this file, it's not much of a test and string headers causeEric Christopher2011-08-201-13/+0
| | | | | | problems on windows. llvm-svn: 138166
* Migrate, FileCheckize and update:Eric Christopher2011-08-207-0/+124
| | | | | | | | | | | | | | 2003-11-02-WeakLinkage.cpp 2003-11-18-PtrMemConstantInitializer.cpp 2003-11-25-ReturningOpaqueByValue.cpp 2003-11-27-MultipleInheritanceThunk.cpp 2003-11-29-DuplicatedCleanupTest.cpp 2003-12-08-ArrayOfPtrToMemberFunc.cpp 2004-01-11-DynamicInitializedConstant.cpp from llvm/test/FrontendC++. llvm-svn: 138162
* Migrate, FileCheckize and update:Eric Christopher2011-08-209-0/+127
| | | | | | | | | | | | | | | | 2004-03-08-ReinterpretCastCopy.cpp 2004-03-09-UnmangledBuiltinMethods.cpp 2004-03-15-CleanupsAndGotos.cpp 2004-06-08-LateTemplateInstantiation.cpp 2004-09-27-CompilerCrash.cpp 2004-09-27-DidntEmitTemplate.cpp 2004-11-27-ExceptionCleanupAssertion.cpp 2004-11-27-FriendDefaultArgCrash.cpp 2005-01-03-StaticInitializers.cpp from llvm/test/FrontendC++. llvm-svn: 138157
* Modify the check line to be happier on windows.Eric Christopher2011-08-191-1/+1
| | | | llvm-svn: 138152
* Remove dead file.Eric Christopher2011-08-191-29/+0
| | | | llvm-svn: 138150
* Migrate, FileCheckize and update:Eric Christopher2011-08-1913-0/+240
| | | | | | | | | | | | | | | | | | | | 2005-02-11-AnonymousUnion.cpp 2005-02-13-BadDynamicInit.cpp 2005-02-14-BitFieldOffset.cpp 2005-02-19-BitfieldStructCrash.cpp 2005-02-19-UnnamedVirtualThunkArgument.cpp 2005-02-20-BrokenReferenceTest.cpp 2006-03-01-GimplifyCrash.cpp 2006-03-06-C++RecurseCrash.cpp 2006-09-12-OpaqueStructCrash.cpp 2006-10-30-ClassBitfield.cpp 2006-11-20-GlobalSymbols.cpp 2006-11-20-GlobalSymbols.ll 2006-11-30-ConstantExprCrash.cpp from llvm/test/FrontendC++. llvm-svn: 138148
* Add new test.Devang Patel2011-08-192-15/+14
| | | | | | Remove one outdated test. llvm-svn: 138144
* Static Analyzer Diagnostics: Switch CFRefCount to using the new visitor API. ↵Anna Zaks2011-08-194-40/+38
| | | | | | BugReport no longer needs to inherit from BugReporterVisitor. llvm-svn: 138142
* Try removing xfail and xtarget to see if this brings back a couple of bots.Eric Christopher2011-08-191-2/+1
| | | | llvm-svn: 138139
* Migrate 2007-01-02-UnboundedArray.cpp from llvm/test/FrontendC++.Eric Christopher2011-08-191-0/+14
| | | | llvm-svn: 138138
* Migrate:Eric Christopher2011-08-1912-0/+361
| | | | | | | | | | | | | | | | | | | 2007-01-06-PtrMethodInit.cpp 2007-04-05-PackedBitFields-1.cpp 2007-04-05-PackedBitFieldsOverlap-2.cpp 2007-04-05-PackedBitFieldsOverlap.cpp 2007-04-05-PackedBitFieldsSmall.cpp 2007-04-05-StructPackedFieldUnpacked.cpp 2007-04-10-PackedUnion.cpp 2007-04-14-FNoBuiltin.cpp 2007-05-03-VectorInit.cpp 2007-07-29-RestrictPtrArg.cpp 2007-07-29-RestrictRefArg.cpp 2007-09-10-RecursiveTypeResolution.cpp from llvm/test/FrontendC++ and FileCheckize where appropriate. llvm-svn: 138134
* For assigning SourceLocations to macro arg tokens, reserve a single SLocEntryArgyrios Kyrtzidis2011-08-193-22/+85
| | | | | | | | | | | | | | for tokens that are lexed consecutively from the same FileID, instead of creating a SLocEntry for each token. e.g for assert(foo == bar); there will be a single SLocEntry for the "foo == bar" chunk and locations for the 'foo', '==', 'bar' tokens will point inside that chunk. For parsing SemaExpr.cpp, this reduced the number of SLocEntries by 25%. llvm-svn: 138129
* Rename TokenLexer::getMacroExpansionLocation -> ↵Argyrios Kyrtzidis2011-08-192-9/+11
| | | | | | getExpansionLocForMacroDefLoc, no functionality change. llvm-svn: 138128
* Refactor common functionality into SourceManager::getFileIDSize, no ↵Argyrios Kyrtzidis2011-08-192-26/+24
| | | | | | functionality change. llvm-svn: 138127
* Static Analyzer Diagnostics: Kill the addVisitorCreator(callbackTy, void*) ↵Anna Zaks2011-08-1920-409/+423
| | | | | | | | | | | | API in favor of addVisitor(BugReporterVisitor*). 1) Create a header file to expose the predefined visitors. And move the parent(BugReporterVisitor) there as well. 2) Remove the registerXXXVisitor functions - the Visitor constructors/getters can be used now to create the object. One exception is registerVarDeclsLastStore(), which registers more then one visitor, so make it static member of FindLastStoreBRVisitor. 3) Modify all the checkers to use the new API. llvm-svn: 138126
* Remove 2008-10-29-WrongOffset.cpp since it requires a header file on allEric Christopher2011-08-191-489/+0
| | | | | | platforms. llvm-svn: 138118
* Migrate 2007-10-01-StructResize.cpp from llvm/test/FrontendC++.Eric Christopher2011-08-191-0/+13
| | | | llvm-svn: 138117
* Migrate 2008-01-12-VecInit.cpp from llvm/test/FrontendC++.Eric Christopher2011-08-191-0/+5
| | | | llvm-svn: 138114
* Migrate 2008-05-07-CrazyOffsetOf.cpp from llvm/test/FrontendC++.Eric Christopher2011-08-191-0/+8
| | | | llvm-svn: 138113
* Migrate 2008-10-29-WrongOffset.cpp from llvm/test/FrontendC++.Eric Christopher2011-08-191-0/+489
| | | | llvm-svn: 138112
* Migrate 2009-03-17-dbg.cpp from llvm/test/FrontendC++.Eric Christopher2011-08-191-0/+16
| | | | llvm-svn: 138111
* Migrate 2009-04-23-bool2.cpp from llvm/test/FrontendC++.Eric Christopher2011-08-191-0/+15
| | | | llvm-svn: 138110
* Remove this test. It's failing and it's not that good of a test.Eric Christopher2011-08-191-15/+0
| | | | llvm-svn: 138106
* Migrate 2009-06-16-DebugInfoCrash.cpp from llvm/test/FrontendC++.Eric Christopher2011-08-191-0/+10
| | | | llvm-svn: 138099
* Migrate 2009-07-16-PrivateCopyConstructor.cpp from llvm/test/FrontendC++.Eric Christopher2011-08-191-0/+15
| | | | llvm-svn: 138098
* Migrate 2009-08-05-ZeroInitWidth.cpp from llvm/test/FrontendC++.Eric Christopher2011-08-191-0/+11
| | | | llvm-svn: 138097
* Migrate 2009-07-16-Using.cpp from llvm/test/FrontendC++.Eric Christopher2011-08-191-0/+8
| | | | llvm-svn: 138096
* Migrate 2009-08-11-VectorRetTy.cpp from llvm/test/FrontendC++.Eric Christopher2011-08-191-0/+13
| | | | llvm-svn: 138095
* Migrate 2009-09-09-packed-layout.cpp test from llvm/test/FrontendC++.Eric Christopher2011-08-191-0/+18
| | | | llvm-svn: 138090
* Migrate 2009-10-27-crash.cpp from llvm/test/FrontendC++.Eric Christopher2011-08-191-0/+43
| | | | llvm-svn: 138089
* Migrate 2009-12-23-MissingSext.cpp from test/FrontendC++ and modifyEric Christopher2011-08-191-0/+16
| | | | | | for sext -> and difference. llvm-svn: 138088
OpenPOWER on IntegriCloud