summaryrefslogtreecommitdiffstats
path: root/clang/lib/Index
Commit message (Collapse)AuthorAgeFilesLines
...
* Add -cursor-at=file:line:column command line option to c-index-test,Douglas Gregor2010-01-151-1/+1
| | | | | | | | to directly check the results of clang_getCursor(). Also, start migrating some index-test tests over to c-index test [*] and some grep-using tests over to FileCheck. llvm-svn: 93537
* Add the BlockDecl to the DeclContext.Ted Kremenek2009-12-071-1/+1
| | | | llvm-svn: 90808
* DeclaratorInfo -> TypeSourceInfo. Makes an effort to rename associated ↵John McCall2009-12-072-23/+23
| | | | | | | | | | | | | | | | | | | | | variables, but the results are imperfect. For posterity, I did: cat <<EOF > $cmdfile s/DeclaratorInfo/TypeSourceInfo/g s/DInfo/TInfo/g s/TypeTypeSourceInfo/TypeSourceInfo/g s/SourceTypeSourceInfo/TypeSourceInfo/g EOF find lib -name '*.cpp' -not -path 'lib/Parse/*' -exec sed -i '' -f $cmdfile '{}' \; find lib -name '*.h' -exec sed -i '' -f $cmdfile '{}' \; find include -name '*.h' -not -path 'include/clang/Parse/*' -not -path 'include/clang/Basic/*' -exec sed -i '' -f $cmdfile '{}' \; llvm-svn: 90743
* Update CMake for CallGraph.cpp move.Daniel Dunbar2009-12-031-0/+1
| | | | llvm-svn: 90443
* Fix layering violation by moving Analysis/CallGraph to IndexDaniel Dunbar2009-12-031-0/+150
| | | | llvm-svn: 90424
* Remove remaining VISIBILITY_HIDDEN from anonymous namespaces.Benjamin Kramer2009-11-284-13/+9
| | | | llvm-svn: 90044
* Add special clang_getCursor() support for @class. Handles ↵Ted Kremenek2009-11-181-0/+12
| | | | | | <rdar://problem/7383421>. llvm-svn: 89183
* Silence some warnings produced by Clang, and add a missing headerDouglas Gregor2009-11-171-1/+1
| | | | llvm-svn: 89051
* Preserve type source information in sizeof/alignof expressions, and pass itJohn McCall2009-11-041-0/+20
| | | | | | through to indexing. llvm-svn: 86018
* Remove _clang_initCXLookupHint() and _clang_getCursorWithHint(). Related to ↵Steve Naroff2009-10-281-8/+37
| | | | | | | | | | <rdar://problem/7310688>. Localize the optimization to ResolveLocationInAST(). The last valid AST location is now stored with ASTUnit. There still isn't optimal, however it's an improvement (with a much cleaner API). Having the client manage an "hint" is error prone and complex. I wanted to land the major changes before finishing up the optimizations. llvm-svn: 85425
* Preserve type source information in TypedefDecls. Preserve it acrossJohn McCall2009-10-241-0/+14
| | | | | | | | | template instantiation. Preserve it through PCH. Show it off to the indexer. I'm healthily ignoring the vector type cases because we don't have a sensible TypeLoc implementation for them anyway. llvm-svn: 84994
* When building types from declarators, instead of building two types (one forJohn McCall2009-10-221-7/+38
| | | | | | | | | | | | | | | | | | | | | the DeclaratorInfo, one for semantic analysis), just build a single type whose canonical type will reflect the semantic analysis (assuming the type is well-formed, of course). To make that work, make a few changes to the type system: * allow the nominal pointee type of a reference type to be a (possibly sugared) reference type. Also, preserve the original spelling of the reference type. Both of these can be ignored on canonical reference types. * Remove ObjCProtocolListType and preserve the associated source information on the various ObjC TypeLocs. Preserve the spelling of protocol lists except in the canonical form. * Preserve some level of source type structure on parameter types, but canonicalize on the canonical function type. This is still a WIP. Drops code size, makes strides towards accurate source location representation, slight (~1.7%) progression on Cocoa.h because of complexity drop. llvm-svn: 84907
* Extend clang_getCursor() to take a 'relativeDecl' argument (so speed up ↵Steve Naroff2009-10-211-1/+4
| | | | | | | | | | | | | | searching). Without a 'relativeDecl', the algorithm is n-squared. For example, running the following command on 'Large.m' takes hours without a 'relatvieDecl'. snaroff% time ../../Debug/bin/c-index-test Large.ast all > Large.out snaroff% cat Large.m #import <Cocoa/Cocoa.h> #import <QuickTime/QuickTime.h> #import <OpenGL/OpenGL.h> With a 'relativeDecl', it takes <30 seconds:-) llvm-svn: 84760
* Move clients to use IdentifierInfo::getNameStart() instead of getName()Daniel Dunbar2009-10-182-7/+11
| | | | llvm-svn: 84436
* Clone the full Type hierarchy into the TypeLoc hierarchy. NormalizeJohn McCall2009-10-184-19/+19
| | | | | | | | | | | | | TypeLoc class names to be $(Type classname)Loc. Rewrite the visitor. Provide skeleton implementations for all the new TypeLocs. Handle all cases in PCH. Handle a few more cases when inserting location information in SemaType. It should be extremely straightforward to add new location information to existing TypeLoc objects now. llvm-svn: 84386
* Installation of Clang libraries and headers, from Axel Naumann!Douglas Gregor2009-10-081-3/+0
| | | | llvm-svn: 83582
* Pull TypeLocVisitor into its own header file.Argyrios Kyrtzidis2009-09-292-2/+2
| | | | llvm-svn: 83112
* Keep track of type references in DeclReferenceMap.Argyrios Kyrtzidis2009-09-292-1/+45
| | | | llvm-svn: 83111
* In ASTVisitor, call the correct base methods.Argyrios Kyrtzidis2009-09-291-4/+4
| | | | llvm-svn: 83110
* Resolve a source location inside the return type of a functon.Argyrios Kyrtzidis2009-09-291-0/+3
| | | | llvm-svn: 83101
* Resolve a source location that is inside a type declarator.Argyrios Kyrtzidis2009-09-291-4/+134
| | | | llvm-svn: 83098
* Modify ASTLocation and apart from being a Decl or Stmt, allow it to also be:Argyrios Kyrtzidis2009-09-293-94/+54
| | | | | | | -A NamedDecl reference -A TypeLoc llvm-svn: 83095
* Add more const-goodness to ASTLocation.Argyrios Kyrtzidis2009-09-291-12/+12
| | | | llvm-svn: 83087
* Remove tabs, and whitespace cleanups.Mike Stump2009-09-099-56/+56
| | | | llvm-svn: 81346
* 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
OpenPOWER on IntegriCloud