Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Change the semantics for Entity. | Argyrios Kyrtzidis | 2009-07-21 | 5 | -62/+163 | |
| | | | | | | | | | | Entity can now refer to declarations that are not visible outside the translation unit. It is a wrapper of a pointer union, it's either a Decl* for declarations that don't "cross" translation units, or an EntityImpl* which is associated with the specific "visible" Decl. Included is a test case for handling fields across translation units. llvm-svn: 76515 | |||||
* | Handle references from ObjCIvarRefExprs. | Argyrios Kyrtzidis | 2009-07-21 | 2 | -4/+17 | |
| | | | | llvm-svn: 76507 | |||||
* | The children statements might be NULL. Check for this case in | Zhongxing Xu | 2009-07-20 | 1 | -2/+3 | |
| | | | | | | isContainedInStatement(). llvm-svn: 76408 | |||||
* | Introduce ASTLocation::getReferencedDecl(), for getting the declaration that ↵ | Argyrios Kyrtzidis | 2009-07-18 | 1 | -0/+24 | |
| | | | | | | the ASTLocation references. llvm-svn: 76336 | |||||
* | Handle invalid ASTLocations instead of asserting. | Argyrios Kyrtzidis | 2009-07-18 | 1 | -1/+6 | |
| | | | | llvm-svn: 76335 | |||||
* | Remove StmtLocResolver::VisitObjCIvarRefExpr, it was only there to avoid ↵ | Argyrios Kyrtzidis | 2009-07-18 | 1 | -7/+0 | |
| | | | | | | | | returning an implicit 'self' instead of the ivar. Since implicit 'self' no longer has a source location, it's not needed. (plus we also want to check for a 'self' that is visible in source code) llvm-svn: 76296 | |||||
* | Move the functionality of ASTContext::getCanonicalDecl(), into a virtual ↵ | Argyrios Kyrtzidis | 2009-07-18 | 1 | -5/+5 | |
| | | | | | | method Decl::getCanonicalDecl(). llvm-svn: 76273 | |||||
* | Resolve a location that is inside an ObjCMethodDecl. | Argyrios Kyrtzidis | 2009-07-18 | 1 | -1/+58 | |
| | | | | llvm-svn: 76272 | |||||
* | Make ASTLocation accept a Stmt that is inside an ObjCMethodDecl. | Argyrios Kyrtzidis | 2009-07-18 | 1 | -3/+19 | |
| | | | | llvm-svn: 76271 | |||||
* | Search through all Decls that are DeclContexts. | Argyrios Kyrtzidis | 2009-07-18 | 1 | -7/+2 | |
| | | | | llvm-svn: 76270 | |||||
* | Rename Entity::getName() to Entity::getPrintableName() to make its purpose | Zhongxing Xu | 2009-07-17 | 1 | -3/+3 | |
| | | | | | | more obvious. llvm-svn: 76167 | |||||
* | As suggested by Argyrios, revert r76159 and make "FindImmediateParent" | Zhongxing Xu | 2009-07-17 | 1 | -11/+1 | |
| | | | | | | a public static method of ASTLocation. llvm-svn: 76166 | |||||
* | Relax the assertion in ASTLocation's ctor: if the decl is not the immediate | Zhongxing Xu | 2009-07-17 | 1 | -0/+10 | |
| | | | | | | | | | parent of the stmt, find the immediate parent for the stmt. This is because sometimes we cannot get the immediate decl of the stmt when creating the ASTLocation. We can only get a parent of the stmt. llvm-svn: 76159 | |||||
* | If we are not doing a Debug build, no need for the debugging print methods. | Argyrios Kyrtzidis | 2009-07-17 | 1 | -2/+6 | |
| | | | | llvm-svn: 76138 | |||||
* | Check whether the IdentifierInfo is null, before using it. | Argyrios Kyrtzidis | 2009-07-17 | 1 | -0/+3 | |
| | | | | llvm-svn: 76136 | |||||
* | Add getName() method to Entity. | Zhongxing Xu | 2009-07-15 | 1 | -0/+7 | |
| | | | | llvm-svn: 75740 | |||||
* | In ResolveLocationInAST, handle locations that are inside TagDecl definitions. | Argyrios Kyrtzidis | 2009-07-14 | 1 | -4/+17 | |
| | | | | llvm-svn: 75594 | |||||
* | In DeclReferenceMap, map FieldDecls to the MemberExprs that reference them. | Argyrios Kyrtzidis | 2009-07-14 | 1 | -0/+6 | |
| | | | | llvm-svn: 75593 | |||||
* | fix file headers. | Chris Lattner | 2009-07-12 | 4 | -4/+4 | |
| | | | | llvm-svn: 75437 | |||||
* | Simplify a bit by using functions instead of checking enum values. No ↵ | Argyrios Kyrtzidis | 2009-07-10 | 1 | -15/+30 | |
| | | | | | | functionality change. llvm-svn: 75221 | |||||
* | Refactor DeclLocResolver/StmtLocResolver into a more functional style by ↵ | Argyrios Kyrtzidis | 2009-07-07 | 1 | -187/+117 | |
| | | | | | | | | removing the search state and by having their Visit* methods return the ASTLocation directly. llvm-svn: 74887 | |||||
* | Update CMake files. | Argyrios Kyrtzidis | 2009-07-06 | 1 | -0/+3 | |
| | | | | llvm-svn: 74864 | |||||
* | Some changes to ASTLocation's methods | Argyrios Kyrtzidis | 2009-07-06 | 1 | -2/+5 | |
| | | | | | | | | -Change hasStmt() to isStmt() -Add isDecl() -Add getSourceRange() llvm-svn: 74862 | |||||
* | Move the 'ResolveLocationInAST' function from the Frontend library to the ↵ | Argyrios Kyrtzidis | 2009-07-06 | 1 | -0/+332 | |
| | | | | | | | | Index library. Also, cut down its comments; more comments will be added to ASTLocation. llvm-svn: 74860 | |||||
* | Move ASTLocation and DeclReferenceMap from the AST library to the Index library. | Argyrios Kyrtzidis | 2009-07-06 | 2 | -0/+223 | |
| | | | | llvm-svn: 74859 | |||||
* | Introduce the 'Index' library. | Argyrios Kyrtzidis | 2009-07-05 | 6 | -0/+336 | |
Its purpose is to provide the basic infrastructure for cross-translation-unit analysis like indexing, refactoring, etc. Currently it is very "primitive" and with no type-names support. It can provide functionality like "show me all references of this function from these translation units". llvm-svn: 74802 |