| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
llvm-svn: 90808
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 90443
|
|
|
|
| |
llvm-svn: 90424
|
|
|
|
| |
llvm-svn: 90044
|
|
|
|
|
|
| |
<rdar://problem/7383421>.
llvm-svn: 89183
|
|
|
|
| |
llvm-svn: 89051
|
|
|
|
|
|
| |
through to indexing.
llvm-svn: 86018
|
|
|
|
|
|
|
|
|
|
| |
<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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 84436
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 83582
|
|
|
|
| |
llvm-svn: 83112
|
|
|
|
| |
llvm-svn: 83111
|
|
|
|
| |
llvm-svn: 83110
|
|
|
|
| |
llvm-svn: 83101
|
|
|
|
| |
llvm-svn: 83098
|
|
|
|
|
|
|
| |
-A NamedDecl reference
-A TypeLoc
llvm-svn: 83095
|
|
|
|
| |
llvm-svn: 83087
|
|
|
|
| |
llvm-svn: 81346
|
|
|
|
| |
llvm-svn: 79824
|
|
|
|
|
|
| |
subexpressions.
llvm-svn: 77713
|
|
|
|
| |
llvm-svn: 77607
|
|
|
|
| |
llvm-svn: 77575
|
|
|
|
| |
llvm-svn: 77555
|
|
|
|
|
|
|
| |
-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
|
|
|
|
| |
llvm-svn: 77548
|
|
|
|
| |
llvm-svn: 77547
|
|
|
|
|
|
| |
through the IndexProvider.
llvm-svn: 77543
|
|
|
|
|
|
|
|
| |
message exprs,
inside a particular ASTContext.
llvm-svn: 77541
|
|
|
|
| |
llvm-svn: 77540
|
|
|
|
| |
llvm-svn: 77539
|
|
|
|
|
|
| |
GlobalSelector is an ASTContext-independent way to refer to Objective C selectors.
llvm-svn: 77538
|
|
|
|
| |
llvm-svn: 77537
|
|
|
|
|
|
|
|
|
|
| |
like finding
references of a declaration across translation units.
-Modify the index-test tool to use it.
llvm-svn: 77536
|
|
|
|
|
|
|
| |
TULocation is like ASTLocation but also contains the TranslationUnit* that
the ASTLocation originated from.
llvm-svn: 77535
|
|
|
|
|
|
| |
decls originated from.
llvm-svn: 77534
|
|
|
|
| |
llvm-svn: 77532
|
|
|
|
|
|
| |
of the iterator of the Indexer class.
llvm-svn: 77528
|
|
|
|
| |
llvm-svn: 77527
|
|
|
|
|
|
|
| |
Reinforces that they shouldn't be null and it's a bit more natural when
they are passed as stack objects.
llvm-svn: 77526
|
|
|
|
| |
llvm-svn: 77525
|
|
|
|
|
|
| |
-Introduce Indexer as an IndexProvider implementation.
llvm-svn: 77524
|
|
|
|
| |
llvm-svn: 76939
|
|
|
|
| |
llvm-svn: 76873
|
|
|
|
| |
llvm-svn: 76546
|
|
|
|
| |
llvm-svn: 76532
|