summaryrefslogtreecommitdiffstats
path: root/clang/lib/Index
Commit message (Collapse)AuthorAgeFilesLines
...
* Change the semantics for Entity.Argyrios Kyrtzidis2009-07-215-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 Kyrtzidis2009-07-212-4/+17
| | | | llvm-svn: 76507
* The children statements might be NULL. Check for this case in Zhongxing Xu2009-07-201-2/+3
| | | | | | isContainedInStatement(). llvm-svn: 76408
* Introduce ASTLocation::getReferencedDecl(), for getting the declaration that ↵Argyrios Kyrtzidis2009-07-181-0/+24
| | | | | | the ASTLocation references. llvm-svn: 76336
* Handle invalid ASTLocations instead of asserting.Argyrios Kyrtzidis2009-07-181-1/+6
| | | | llvm-svn: 76335
* Remove StmtLocResolver::VisitObjCIvarRefExpr, it was only there to avoid ↵Argyrios Kyrtzidis2009-07-181-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 Kyrtzidis2009-07-181-5/+5
| | | | | | method Decl::getCanonicalDecl(). llvm-svn: 76273
* Resolve a location that is inside an ObjCMethodDecl.Argyrios Kyrtzidis2009-07-181-1/+58
| | | | llvm-svn: 76272
* Make ASTLocation accept a Stmt that is inside an ObjCMethodDecl.Argyrios Kyrtzidis2009-07-181-3/+19
| | | | llvm-svn: 76271
* Search through all Decls that are DeclContexts.Argyrios Kyrtzidis2009-07-181-7/+2
| | | | llvm-svn: 76270
* Rename Entity::getName() to Entity::getPrintableName() to make its purposeZhongxing Xu2009-07-171-3/+3
| | | | | | more obvious. llvm-svn: 76167
* As suggested by Argyrios, revert r76159 and make "FindImmediateParent" Zhongxing Xu2009-07-171-11/+1
| | | | | | a public static method of ASTLocation. llvm-svn: 76166
* Relax the assertion in ASTLocation's ctor: if the decl is not the immediateZhongxing Xu2009-07-171-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 Kyrtzidis2009-07-171-2/+6
| | | | llvm-svn: 76138
* Check whether the IdentifierInfo is null, before using it.Argyrios Kyrtzidis2009-07-171-0/+3
| | | | llvm-svn: 76136
* Add getName() method to Entity.Zhongxing Xu2009-07-151-0/+7
| | | | llvm-svn: 75740
* In ResolveLocationInAST, handle locations that are inside TagDecl definitions.Argyrios Kyrtzidis2009-07-141-4/+17
| | | | llvm-svn: 75594
* In DeclReferenceMap, map FieldDecls to the MemberExprs that reference them.Argyrios Kyrtzidis2009-07-141-0/+6
| | | | llvm-svn: 75593
* fix file headers.Chris Lattner2009-07-124-4/+4
| | | | llvm-svn: 75437
* Simplify a bit by using functions instead of checking enum values. No ↵Argyrios Kyrtzidis2009-07-101-15/+30
| | | | | | functionality change. llvm-svn: 75221
* Refactor DeclLocResolver/StmtLocResolver into a more functional style by ↵Argyrios Kyrtzidis2009-07-071-187/+117
| | | | | | | | removing the search state and by having their Visit* methods return the ASTLocation directly. llvm-svn: 74887
* Update CMake files.Argyrios Kyrtzidis2009-07-061-0/+3
| | | | llvm-svn: 74864
* Some changes to ASTLocation's methodsArgyrios Kyrtzidis2009-07-061-2/+5
| | | | | | | | -Change hasStmt() to isStmt() -Add isDecl() -Add getSourceRange() llvm-svn: 74862
* Move the 'ResolveLocationInAST' function from the Frontend library to the ↵Argyrios Kyrtzidis2009-07-061-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 Kyrtzidis2009-07-062-0/+223
| | | | llvm-svn: 74859
* Introduce the 'Index' library.Argyrios Kyrtzidis2009-07-056-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
OpenPOWER on IntegriCloud