summaryrefslogtreecommitdiffstats
path: root/clang/lib/Index/ASTLocation.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Renamed misleading getSourceRange -> getLocalSourceRange and ↵Abramo Bagnara2010-05-201-1/+1
| | | | | | getFullSourceRange -> getSourceRange for TypeLoc. llvm-svn: 104220
* Add raw_ostream operators to NamedDecl for convenience. Switch over all ↵Benjamin Kramer2010-04-171-2/+2
| | | | | | | | users of getNameAsString on a stream. The next step is to print the name directly into the stream, avoiding a temporary std::string copy. llvm-svn: 101632
* Clone the full Type hierarchy into the TypeLoc hierarchy. NormalizeJohn McCall2009-10-181-1/+1
| | | | | | | | | | | | | 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
* Modify ASTLocation and apart from being a Decl or Stmt, allow it to also be:Argyrios Kyrtzidis2009-09-291-90/+51
| | | | | | | -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-091-8/+8
| | | | llvm-svn: 81346
* Find references inside blocks.Argyrios Kyrtzidis2009-07-291-0/+12
| | | | llvm-svn: 77540
* Constify ASTLocation::print.Argyrios Kyrtzidis2009-07-291-2/+2
| | | | llvm-svn: 77532
* Handle references from ObjCIvarRefExprs.Argyrios Kyrtzidis2009-07-211-0/+4
| | | | 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
* Make ASTLocation accept a Stmt that is inside an ObjCMethodDecl.Argyrios Kyrtzidis2009-07-181-3/+19
| | | | llvm-svn: 76271
* 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
* Some changes to ASTLocation's methodsArgyrios Kyrtzidis2009-07-061-2/+5
| | | | | | | | -Change hasStmt() to isStmt() -Add isDecl() -Add getSourceRange() llvm-svn: 74862
* Move ASTLocation and DeclReferenceMap from the AST library to the Index library.Argyrios Kyrtzidis2009-07-061-0/+91
llvm-svn: 74859
OpenPOWER on IntegriCloud