summaryrefslogtreecommitdiffstats
path: root/clang/test/PCH
Commit message (Collapse)AuthorAgeFilesLines
...
* Roll r95513 back in.Sam Weinig2010-02-072-8/+25
| | | | llvm-svn: 95515
* Roll out r95513, it seems to have broken self hosting.Sam Weinig2010-02-072-25/+8
| | | | llvm-svn: 95514
* Add PCH support for CXXBoolLiteralExpr and CXXNullPtrLiteralExpr.Sam Weinig2010-02-072-8/+25
| | | | llvm-svn: 95513
* Add PCH support for CXXStaticCastExpr, CXXDynamicCastExpr, ↵Sam Weinig2010-01-162-0/+47
| | | | | | CXXReinterpretCastExpr, CXXConstCastExpr and CXXFunctionalCastExpr. llvm-svn: 93658
* Serialize the NoReturn bit on FunctionTypes for precompiled headersDouglas Gregor2009-12-222-0/+7
| | | | llvm-svn: 91911
* Update tests to use %clang instead of 'clang', and forcibly disable use of 'Daniel Dunbar2009-12-151-2/+2
| | | | | | | clang ' or ' clang -cc1 ' or ' clang-cc ' in test lines (by substituting them to garbage). llvm-svn: 91460
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-1529-82/+82
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* Make tests use the new clang -cc1 flag.Fariborz Jahanian2009-12-145-15/+15
| | | | llvm-svn: 91303
* Remove this test for now, it is flaky.Daniel Dunbar2009-12-111-15/+0
| | | | llvm-svn: 91083
* Add a pretty horrible hack to prevent clang from crashing with inconsistent PCHDaniel Dunbar2009-12-061-0/+15
| | | | | | | | | | | | | files. - The issue is that PCH uses a stat cache, which may reference files which have been deleted or moved. In such cases ContentCache::getBuffer was returning 0 but most clients are incapable of dealing with this (i.e., they don't). For the time being, resolve this issue by just making up some invalid file contents and. Eventually we should detect that we are in an inconsistent situation and error out with a nice message that the PCH is out of date. llvm-svn: 90699
* Add test case for PR5662.Daniel Dunbar2009-12-011-0/+12
| | | | llvm-svn: 90264
* Normalize options to use '-FOO' instead of '--FOO'.Daniel Dunbar2009-11-291-1/+1
| | | | llvm-svn: 90071
* Use '-x' 'foo' instead of '-x=foo'.Daniel Dunbar2009-11-294-4/+4
| | | | llvm-svn: 90069
* Fix PCH/preprocess test to be more useful, and unbreak -E mode with implicitDaniel Dunbar2009-11-121-3/+6
| | | | | | PCH, which I broke. llvm-svn: 86921
* Eliminate &&s in tests.Daniel Dunbar2009-11-0827-60/+60
| | | | | | - 'for i in $(find . -type f); do sed -e 's#\(RUN:.*[^ ]\) *&& *$#\1#g' $i | FileUpdate $i; done', for the curious. llvm-svn: 86430
* Fix tests to not depend on /dev/null existing.Daniel Dunbar2009-11-031-2/+3
| | | | llvm-svn: 85908
* Use %S, not `pwd`, and enable a line that *does* work.Daniel Dunbar2009-08-011-4/+4
| | | | | | - Doug, please check. llvm-svn: 77778
* Revert this, we can now avoid error cascades better.Mike Stump2009-07-211-1/+0
| | | | llvm-svn: 76691
* Revert recent change, I now have a better way to solve this (thanks Chris).Mike Stump2009-07-211-1/+0
| | | | llvm-svn: 76681
* Prep for new warning.Mike Stump2009-07-213-2/+3
| | | | llvm-svn: 76670
* Fixes for a couple of things:Argyrios Kyrtzidis2009-07-141-0/+7
| | | | | | | | | - Declaration context of ParmVarDecls (that we got from the Declarator) was not their containing function. - C++ out-of-line method definitions didn't get an access specifier. Both were exposed by a crash when emitting a C++ method to a PCH file (assert at Decl::CheckAccessDeclContext()). llvm-svn: 75597
* This patch includes a conceptually simple, but very intrusive/pervasive change. Steve Naroff2009-07-101-3/+2
| | | | | | | | | | | | 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
* Make ASTContext explicitly keep track of the declaration for the CDouglas Gregor2009-07-071-1/+13
| | | | | | | | | | | | | | | | | FILE type, rather than using name lookup to find FILE within the translation unit. Within precompiled headers, FILE is treated as yet another "special type" (like __builtin_va_list). This change should provide a performance improvement (not verified), since the lookup into the translation unit declaration forces the (otherwise unneeded) construction of a large hash table. More importantly, with precompiled headers, the construction of that table requires deserializing most of the top-level declarations from the precompiled header, which are then unused. Fixes PR 4509. llvm-svn: 74911
* Introduce the notion of "Relocatable" precompiled headers, which are builtDouglas Gregor2009-07-073-0/+44
| | | | | | | | | | | | with a particular system root directory and can be used with a different system root directory when the headers it depends on have been installed. Relocatable precompiled headers rewrite the file names of the headers used when generating the PCH file into the corresponding file names of the headers available when using the PCH file. Addresses <rdar://problem/7001604>. llvm-svn: 74885
* Fix PR 4489, a crash in PCH loading that occurs when loading the nameDouglas Gregor2009-07-061-0/+8
| | | | | | | | | | of a top-level declaration loads another top-level declaration of the same name whose type depends on the first declaration having been completed. This commit breaks the circular dependency by delaying loads of top-level declarations triggered by loading a name until we are no longer recursively loading types or declarations. llvm-svn: 74847
* Fix PR 4489, a PCH crash during de-serialization.Douglas Gregor2009-07-011-0/+20
| | | | llvm-svn: 74664
* Make precompiled headers work with -E. When we're only preprocessingDouglas Gregor2009-05-122-0/+12
| | | | | | | (with -E), we turn the PCH include into an implicit include of the file from which the PCH file was generated. llvm-svn: 71534
* Make this test portable to non-x86 hosts, patch by Mark Cianciosa!Chris Lattner2009-05-071-3/+3
| | | | llvm-svn: 71146
* Implement checking for macro definitions that occur on the commandDouglas Gregor2009-04-281-1/+3
| | | | | | | | line when using a PCH that were not provided when building the PCH file. If those names were used as identifiers somewhere in the PCH file, reject the PCH file. llvm-svn: 70321
* Allow some differences between the predefines buffer used to build aDouglas Gregor2009-04-282-0/+19
| | | | | | | | | | | | | PCH file and the predefines buffer used when including the PCH file. We (explicitly) detect conflicting macro definitions (rejecting the PCH file) and about missing macro definitions (they'll be automatically pulled from the PCH file anyway). We're missing some checking to make sure that new macro definitions won't have any impact on the PCH file itself (e.g., #define'ing an identifier that the PCH file used). llvm-svn: 70316
* Add Sema::ExtVectorDecls and Sema::ObjCCategoryImpls to the PCH file. Since ↵Douglas Gregor2009-04-272-0/+14
| | | | | | these vectors are very, very rarely used and, when used in headers, and even when used are relatively small, we load them eagerly. llvm-svn: 70240
* Fix a problem with the RUN line of one of the PCH testsDouglas Gregor2009-04-271-1/+1
| | | | llvm-svn: 70227
* PCH support for the global method pool (= instance and factory methodDouglas Gregor2009-04-242-0/+58
| | | | | | | | pools, combined). The methods in the global method pool are lazily loaded from an on-disk hash table when Sema looks into its version of the hash tables. llvm-svn: 69989
* Add PCH support for #import.Steve Naroff2009-04-242-0/+22
| | | | llvm-svn: 69987
* PCH support for all of the predefined Objective-C types, such as id,Douglas Gregor2009-04-232-5/+3
| | | | | | | | SEL, Class, Protocol, CFConstantString, and __objcFastEnumerationState. With this, we can now run the Objective-C methods and properties PCH tests. llvm-svn: 69932
* More PushOnScopeChain() FIXME's.Steve Naroff2009-04-232-0/+9
| | | | llvm-svn: 69894
* Sema::ActOnStartClassInterface(): Use PushOnScopeChains().Steve Naroff2009-04-231-4/+7
| | | | | | This enables class recognition to work with PCH. I believe this means we can remove Sema::ObjCInterfaceDecls and it's usage within Sema::LookupName(). Will investigate. llvm-svn: 69891
* Add PCH read/write support for Objective-C Selectors.Steve Naroff2009-04-232-0/+8
| | | | | Note: This support is non-lazy. Once we get "Cocoa.h" humming, we can optimize this. llvm-svn: 69884
* PCH support for Objective-C property declarations (UNTESTED!)Douglas Gregor2009-04-222-0/+23
| | | | llvm-svn: 69843
* Support locally-declared external declarations in PCH filesDouglas Gregor2009-04-222-0/+21
| | | | llvm-svn: 69833
* Clean up and de-XFAIL-ify PCH test for external definitionsDouglas Gregor2009-04-222-8/+0
| | | | llvm-svn: 69831
* Support tentative definitions in precompiled headers. This isn't likelyDouglas Gregor2009-04-222-0/+18
| | | | | | to happen (ever), but at least we'll do the right thing when it does. llvm-svn: 69829
* deserialization support for qualified interfacesChris Lattner2009-04-222-1/+5
| | | | llvm-svn: 69782
* pch support for protocol qualified id's.Chris Lattner2009-04-222-6/+11
| | | | llvm-svn: 69781
* add three new objc expression types. @selector doesn't work because we have no Chris Lattner2009-04-222-3/+20
| | | | | | way to serialize selectors yet. llvm-svn: 69780
* implement serialization support for @encode,Chris Lattner2009-04-222-0/+12
| | | | | | | fix a couple of bugs in reader support for ObjCInterfaceDecl, and add support for reading ObjCInterfaceType. llvm-svn: 69779
* rename methods.* -> objc_methods.*Chris Lattner2009-04-222-2/+2
| | | | llvm-svn: 69778
* Test PCH support for VLAsDouglas Gregor2009-04-223-2/+5
| | | | llvm-svn: 69758
* Eliminate a FIXME in one of the PCH test casesDouglas Gregor2009-04-221-2/+2
| | | | llvm-svn: 69757
* Lazy deserialization of identifiers in PCH files fixed a problem withDouglas Gregor2009-04-211-9/+1
| | | | | | name lookup of structures declared within other structures. llvm-svn: 69744
OpenPOWER on IntegriCloud