summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PCHReaderDecl.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Add a "TypeSpecStartLoc" to FieldDecl. Patch contributed by Enea Zaffanella.Steve Naroff2009-07-141-1/+2
| | | | | Note: One day, it might be useful to consider adding this info to DeclGroup (as the comments in FunctionDecl/VarDecl suggest). For now, I think this works fine. I considered moving this to ValueDecl (a common ancestor of FunctionDecl/VarDecl/FieldDecl), however this would add overhead to EnumConstantDecl (which would burn memory and isn't necessary). llvm-svn: 75635
* Read/write TagDecl's RBraceLoc from/to PCH files.Argyrios Kyrtzidis2009-07-141-0/+1
| | | | llvm-svn: 75592
* Patch adds test to my previous patch for assigning toFariborz Jahanian2009-07-081-0/+1
| | | | | | | gc'able structs in the Next runtime and adds missing PCH info. llvm-svn: 75014
* Fix PR 4489, a crash in PCH loading that occurs when loading the nameDouglas Gregor2009-07-061-0/+3
| | | | | | | | | | 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
* Remove the ASTContext parameter from the attribute-related methods of Decl.Argyrios Kyrtzidis2009-06-301-1/+1
| | | | | | | | | The implementations of these methods can Use Decl::getASTContext() to get the ASTContext. This commit touches a lot of files since call sites for these methods are everywhere. I used pre-tokenized "carbon.h" and "cocoa.h" headers to do some timings, and there was no real time difference between before the commit and after it. llvm-svn: 74501
* OpenCL 1.0 support: attributesNate Begeman2009-06-261-0/+8
| | | | llvm-svn: 74280
* Serialize FunctionDecl's EndRangeLoc out to the PCH file.Argyrios Kyrtzidis2009-06-201-0/+1
| | | | llvm-svn: 73822
* Keep track of when declarations are "used" according to C andDouglas Gregor2009-06-191-0/+1
| | | | | | | | | | | | C++. This logic is required to trigger implicit instantiation of function templates and member functions of class templates, which will be implemented separately. This commit includes support for -Wunused-parameter, printing warnings for named parameters that are not used within a function/Objective-C method/block. Fixes <rdar://problem/6505209>. llvm-svn: 73797
* Move the static DeclAttrs map into ASTContext. Fixes <rdar://problem/6983177>.Douglas Gregor2009-06-181-1/+1
| | | | llvm-svn: 73702
* Enumeration declarations that were instantiated from an enumerationDouglas Gregor2009-05-271-0/+1
| | | | | | | | within a template now have a link back to the enumeration from which they were instantiated. This means that we can now find the instantiation of an anonymous enumeration. llvm-svn: 72482
* When evaluating a VarDecl as a constant or determining whether it isDouglas Gregor2009-05-261-1/+1
| | | | | | | | an integral constant expression, maintain a cache of the value and the is-an-ICE flag within the VarDecl itself. This eliminates exponential-time behavior of the Fibonacci template metaprogram. llvm-svn: 72428
* Fix lots of PCH crashes caused by the new assertions inDouglas Gregor2009-05-221-4/+4
| | | | | | | llvm::SmallVector, using data() instead of &[0]. The PCH testsuite now runs cleanly (again). llvm-svn: 72292
* Fix PCH crash caused by new assertions in llvm::SmallVector. UseTed Kremenek2009-05-221-1/+1
| | | | | | ProtoRefs.data() instead of &ProtoRefs[0] to access the raw buffer. llvm-svn: 72291
* Use v.data() instead of &v[0] when SmallVector v might be empty.Jay Foad2009-05-211-5/+5
| | | | llvm-svn: 72210
* implementation of format_arg for ObjC methods/functions.Fariborz Jahanian2009-05-201-0/+6
| | | | | | Still more to do. llvm-svn: 72173
* Check that the function being overridden is virtual.Anders Carlsson2009-05-141-1/+1
| | | | llvm-svn: 71802
* Improvements to the FunctionDecl getters/setters.Anders Carlsson2009-05-141-2/+2
| | | | llvm-svn: 71800
* Link FunctionDecls instantiated from the member functions of a classDouglas Gregor2009-05-141-0/+1
| | | | | | | | template to the FunctionDecls from which they were instantiated. This is a necessary first step to support instantiation of the definitions of such functions, but by itself does essentially nothing. llvm-svn: 71792
* Some early declarations to support sentinel attribute onFariborz Jahanian2009-05-131-0/+7
| | | | | | | message dispatches (and function calls later). No change in functionality. llvm-svn: 71683
* Add back Parse/Sema support for attributes cf_returns_retained andTed Kremenek2009-05-091-0/+2
| | | | | | | ns_returns_retained, but do not include the other ownership attributes we previously had. llvm-svn: 71308
* Remove experimental ownership attributes from Clang.Ted Kremenek2009-05-081-7/+0
| | | | llvm-svn: 71216
* Implement attribute 'ns_autorelease'.Ted Kremenek2009-05-051-0/+1
| | | | llvm-svn: 70990
* Implement attribute 'cf_returns_owned' (mirrors 'ns_returns_owned').Ted Kremenek2009-05-051-0/+1
| | | | llvm-svn: 70952
* Remove experimental attribute 'ns_ownership_make_collectable.'Ted Kremenek2009-05-041-1/+0
| | | | llvm-svn: 70940
* Rename attributes 'objc_ownership...' to 'ns_ownership...'.Ted Kremenek2009-05-041-4/+4
| | | | llvm-svn: 70897
* Rename attributes:Ted Kremenek2009-05-041-2/+2
| | | | | | | | | | | 'objc_ownership_cfretain' -> 'cf_ownership_retain' 'objc_ownership_cfrelease' -> 'cf_ownership_release' Motivation: Core Foundation objects can be used in isolation from Objective-C, and this forces users to reason about the separate semantics of CF objects. More Sema support pending. llvm-svn: 70884
* Implement ownership attribute 'objc_ownership_make_collectable'. This allows oneTed Kremenek2009-04-281-1/+2
| | | | | | to add 'CFMakeCollectable' semantics to a method. llvm-svn: 70336
* Teach PCH that ASTContext is optional. Move -parse-noop and -Eonly (so far)Chris Lattner2009-04-271-44/+44
| | | | | | | processing to after PCH is loaded. -Eonly and -parse-noop are close to working with PCH now but are not quite there yet. llvm-svn: 70257
* Add two new checker-specific attributes: 'objc_ownership_release' andTed Kremenek2009-04-271-0/+2
| | | | | | | 'objc_ownership_cfrelease'. These are the 'release' equivalents of 'objc_ownership_retain' and 'objc_ownership_cfretain' respectively. llvm-svn: 70235
* Add new checker-specific attribute 'objc_ownership_cfretain'. This is the sameTed Kremenek2009-04-271-0/+1
| | | | | | | | as 'objc_ownership_cfretain' except that the method acts like a CFRetain instead of a [... retain] (important in GC modes). Checker support is wired up, but currently only for Objective-C message expressions (not function calls). llvm-svn: 70218
* unclone SavedStreamPositionChris Lattner2009-04-271-18/+0
| | | | llvm-svn: 70192
* move attribute reading to PCHReaderDecl.cpp, remove someChris Lattner2009-04-271-78/+165
| | | | | | extraneous braces. llvm-svn: 70191
* read all decls (and attributes and stmts/exprs referenced by the decl)Chris Lattner2009-04-271-12/+12
| | | | | | from the DeclsCursor. llvm-svn: 70190
* change the interface to ReadStmt to force clients to pass a cursor in to ↵Chris Lattner2009-04-271-2/+2
| | | | | | read from. llvm-svn: 70188
* split decl reading out to its own PCHReaderDecl.cpp file.Chris Lattner2009-04-271-0/+628
llvm-svn: 70187
OpenPOWER on IntegriCloud