| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The TypeLoc hierarchy used the llvm::cast machinery to perform undefined
behavior by casting pointers/references to TypeLoc objects to derived types
and then using the derived copy constructors (or even returning pointers to
derived types that actually point to the original TypeLoc object).
Some context is in this thread:
http://lists.cs.uiuc.edu/pipermail/llvmdev/2012-December/056804.html
Though it's spread over a few months which can be hard to read in the mail
archive.
llvm-svn: 175462
|
|
|
|
|
|
| |
into a getter cxtu::getASTUnit(TU)
llvm-svn: 173585
|
|
|
|
|
|
| |
Use const_cast<> to avoid a cast-away-const error.
llvm-svn: 172565
|
|
|
|
| |
llvm-svn: 172373
|
|
|
|
|
|
|
| |
No testcase because this did not affect correctness: a declaration can only be
ClassTemplateDecl or a FunctionTemplateDecl, not both.
llvm-svn: 170565
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
that were already parsed in the same "indexing session".
An indexing session is defined as using the same CXIndexAction object
for multiple clang_indexSourceFile calls.
Passing CXIndexOpt_SkipParsedBodiesInSession as an indexing option will
enable the mode where we try to skip bodies that were already parsed in
another translation unit.
If a function's body was skipped, the "flags" field in the CXIdxDeclInfo
structure will have "CXIdxDeclFlag_Skipped" bit was set.
llvm-svn: 169539
|
|
|
|
|
|
| |
Completely automated with sort_includes.py
llvm-svn: 169240
|
|
|
|
| |
llvm-svn: 166913
|
|
|
|
|
|
| |
imports.
llvm-svn: 166161
|
|
|
|
|
|
| |
importedASTFile indexing callback.
llvm-svn: 165281
|
|
|
|
| |
llvm-svn: 165161
|
|
|
|
|
|
| |
imports via ImportDecls.
llvm-svn: 165160
|
|
|
|
|
|
| |
info about imported modules.
llvm-svn: 165020
|
|
|
|
|
|
| |
rdar://12257073
llvm-svn: 163563
|
|
|
|
| |
llvm-svn: 163032
|
|
|
|
|
|
| |
instead of aliasing to "struct" which had some incorrect behaviour. Patch by David Robins.
llvm-svn: 163013
|
|
|
|
|
|
|
|
|
| |
When indexing a property with a getter/setter with attributes, the allocated memory
for AttrListInfo could get released before its destructor is run.
Fixes rdar://11113442.
llvm-svn: 153792
|
|
|
|
|
|
|
|
|
|
| |
make sure to record the source location of the ivar name.
[libclang] When indexing @synthesized objc methods, report the @implementation
as the lexical container.
Fixes rdar://10905472
llvm-svn: 151635
|
|
|
|
|
|
|
|
| |
the getter/setter objc method entities that the property is associated with.
rdar://10244558
llvm-svn: 151634
|
|
|
|
|
|
|
| |
well as improving the RecursiveASTVisitor's walk of lambda
expressions.
llvm-svn: 150549
|
|
|
|
|
|
| |
opt-in indexing option.
llvm-svn: 150517
|
|
|
|
|
|
| |
More cleanup after r149799.
llvm-svn: 150380
|
|
|
|
| |
llvm-svn: 150267
|
|
|
|
|
|
| |
of bases in C++ classes. rdar://10768707
llvm-svn: 150048
|
|
|
|
| |
llvm-svn: 150007
|
|
|
|
|
|
| |
process removed some naming ambiguities.
llvm-svn: 149870
|
|
|
|
|
|
|
|
|
| |
@implementation I(cat)
suppress subsequent references to 'I'.
rdar://10568103
llvm-svn: 148730
|
|
|
|
|
|
|
|
|
| |
without C++-specific features.
Use it to set the language to C++ when indexing non-C-like structs.
rdar://10732579
llvm-svn: 148708
|
|
|
|
| |
llvm-svn: 148524
|
|
|
|
| |
llvm-svn: 148319
|
|
|
|
|
|
|
|
|
|
|
|
| |
we have a redeclarable type, and only use the new virtual versions
(getPreviousDeclImpl() and getMostRecentDeclImpl()) when we don't have
that type information. This keeps us from penalizing users with strict
type information (and is the moral equivalent of a "final" method).
Plus, settle on the names getPreviousDecl() and getMostRecentDecl()
throughout.
llvm-svn: 148187
|
|
|
|
|
|
| |
index parameters.
llvm-svn: 148169
|
|
|
|
|
|
| |
that one wants indexing callbacks for function-local symbols as well.
llvm-svn: 148160
|
|
|
|
|
|
| |
ObjCProtocolDecl modules forward declarations properly.
llvm-svn: 147415
|
|
|
|
|
|
|
|
|
| |
separately-allocated DefinitionData structure. Introduce various
functions that will help with the separation of declarations from
definitions (isThisDeclarationADefinition(), hasDefinition(),
getDefinition()).
llvm-svn: 147408
|
|
|
|
|
|
|
| |
covers both declarations (@class) and definitions (@interface) of an
Objective-C class.
llvm-svn: 147299
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
separately-allocated DefinitionData structure, which we manage the
same way as CXXRecordDecl::DefinitionData. This prepares the way for
making ObjCInterfaceDecls redeclarable, to more accurately model
forward declarations of Objective-C classes and eliminate the mutation
of ObjCInterfaceDecl that causes us serious trouble in the AST reader.
Note that ObjCInterfaceDecl's accessors are fairly robust against
being applied to forward declarations, because Clang (and Sema in
particular) doesn't perform RequireCompleteType/hasDefinition() checks
everywhere it has to. Each of these overly-robust cases is marked with
a FIXME, which we can tackle over time.
llvm-svn: 146644
|
|
|
|
|
|
| |
so that we can access the attributes of an entity for a reference.
llvm-svn: 146616
|
|
|
|
|
|
| |
in a superclass and the protocols in a protocol list.
llvm-svn: 146615
|
|
|
|
|
|
|
| |
members into ObjCClassDecl, saving ourselves one pointer per forward
declaration.
llvm-svn: 146564
|
|
|
|
|
|
| |
rdar://10573361
llvm-svn: 146498
|
|
|
|
|
|
|
|
| |
@class forward references.
rdar://10568080&10568103&10568119
llvm-svn: 146496
|
|
|
|
| |
llvm-svn: 146213
|
|
|
|
|
|
| |
now that client containers can be set via function calls.
llvm-svn: 146117
|
|
|
|
|
|
| |
They are generally the same except in C++ cases like out-of-line member functions.
llvm-svn: 146069
|
|
|
|
| |
llvm-svn: 146068
|
|
|
|
|
|
| |
of an indexed entity.
llvm-svn: 146067
|
|
|
|
| |
llvm-svn: 146019
|
|
|
|
|
|
| |
of kind CXIdxEntity_CXXInstanceVariable. rdar://10522503.
llvm-svn: 145859
|
|
|
|
| |
llvm-svn: 145396
|