summaryrefslogtreecommitdiffstats
path: root/clang/lib/Index
Commit message (Collapse)AuthorAgeFilesLines
...
* Don't install Clang libraries.Douglas Gregor2009-08-231-0/+3
| | | | llvm-svn: 79824
* For a CXXOperatorCallExpr, fix the order that StmtLocResolver uses to check ↵Argyrios Kyrtzidis2009-07-311-0/+33
| | | | | | subexpressions. llvm-svn: 77713
* Lexically order files.Ted Kremenek2009-07-301-2/+2
| | | | llvm-svn: 77607
* Fix Selector <-> GlobalSelector conversion.Argyrios Kyrtzidis2009-07-301-2/+3
| | | | llvm-svn: 77575
* Fix gcc warning.Eli Friedman2009-07-301-2/+2
| | | | llvm-svn: 77555
* Add support for ObjC message expressions, in the Analyzer:Argyrios Kyrtzidis2009-07-301-2/+337
| | | | | | | -Accept an ObjC method and find all message expressions that this method may respond to. -Accept an ObjC message expression and find all methods that may respond to it. llvm-svn: 77551
* Update CMake.Argyrios Kyrtzidis2009-07-301-0/+5
| | | | llvm-svn: 77548
* Support ObjC methods as Entities.Argyrios Kyrtzidis2009-07-292-34/+81
| | | | llvm-svn: 77547
* Index the selectors and provide the translation units that contain themArgyrios Kyrtzidis2009-07-291-3/+40
| | | | | | through the IndexProvider. llvm-svn: 77543
* Introduce SelectorMap whose purpose is to map selectors to objc methods and ↵Argyrios Kyrtzidis2009-07-291-0/+85
| | | | | | | | message exprs, inside a particular ASTContext. llvm-svn: 77541
* Find references inside blocks.Argyrios Kyrtzidis2009-07-292-0/+16
| | | | llvm-svn: 77540
* Use helper class ASTVisitor to fully traverse an AST.Argyrios Kyrtzidis2009-07-292-80/+120
| | | | llvm-svn: 77539
* Introduce the GlobalSelector class in the Indexing library.Argyrios Kyrtzidis2009-07-292-0/+74
| | | | | | GlobalSelector is an ASTContext-independent way to refer to Objective C selectors. llvm-svn: 77538
* Use an IdentifierTable for names used for Entities.Argyrios Kyrtzidis2009-07-293-16/+16
| | | | llvm-svn: 77537
* -Introduce the idx::Analyzer class used for getting indexing information, ↵Argyrios Kyrtzidis2009-07-291-0/+104
| | | | | | | | | | like finding references of a declaration across translation units. -Modify the index-test tool to use it. llvm-svn: 77536
* Introduce TULocation and TULocationHandler classes.Argyrios Kyrtzidis2009-07-291-0/+1
| | | | | | | TULocation is like ASTLocation but also contains the TranslationUnit* that the ASTLocation originated from. llvm-svn: 77535
* Modify the Indexer class so that it can return the TranslationUnit that internalArgyrios Kyrtzidis2009-07-292-3/+12
| | | | | | decls originated from. llvm-svn: 77534
* Constify ASTLocation::print.Argyrios Kyrtzidis2009-07-291-2/+2
| | | | llvm-svn: 77532
* Introduce a helper template for the Handler classes and use it insteadArgyrios Kyrtzidis2009-07-291-28/+0
| | | | | | of the iterator of the Indexer class. llvm-svn: 77528
* Add an assert.Argyrios Kyrtzidis2009-07-291-0/+1
| | | | llvm-svn: 77527
* Accept Handler objects in parameters as references.Argyrios Kyrtzidis2009-07-292-6/+7
| | | | | | | Reinforces that they shouldn't be null and it's a bit more natural when they are passed as stack objects. llvm-svn: 77526
* Rename EntityHandler::HandleEntity to Handle.Argyrios Kyrtzidis2009-07-292-2/+2
| | | | llvm-svn: 77525
* -Make IndexProvider an abstract interface for getting indexing information.Argyrios Kyrtzidis2009-07-294-63/+113
| | | | | | -Introduce Indexer as an IndexProvider implementation. llvm-svn: 77524
* Constify methods.Zhongxing Xu2009-07-241-1/+1
| | | | llvm-svn: 76939
* constify methods.Zhongxing Xu2009-07-231-1/+1
| | | | llvm-svn: 76873
* Remove the ASTContext parameter from Entity::getPrintableName().Argyrios Kyrtzidis2009-07-212-4/+17
| | | | llvm-svn: 76546
* Keep only canonical Decls in Entities.Argyrios Kyrtzidis2009-07-211-0/+2
| | | | llvm-svn: 76532
* 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
OpenPOWER on IntegriCloud