| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
covers both declarations (@class) and definitions (@interface) of an
Objective-C class.
llvm-svn: 147299
|
| |
|
|
| |
llvm-svn: 147195
|
| |
|
|
|
|
|
|
| |
region
so translate the range to file locations.
llvm-svn: 147058
|
| |
|
|
|
|
|
|
|
|
| |
declarations and definitions) as ObjCInterfaceDecls within the same
redeclaration chain. This new representation matches what we do for
C/C++ variables/functions/classes/templates/etc., and makes it
possible to answer the query "where are all of the declarations of
this class?"
llvm-svn: 146679
|
| |
|
|
| |
llvm-svn: 146648
|
| |
|
|
|
|
|
|
|
| |
file.
Log:
[libclang] Try to unbreak mingw build.
llvm-svn: 146647
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
| |
exit()
when there is a report_fatal_error() call.
rdar://10507984
llvm-svn: 146641
|
| |
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
rdar://10567864&10567916
llvm-svn: 146497
|
| |
|
|
|
|
|
|
| |
@class forward references.
rdar://10568080&10568103&10568119
llvm-svn: 146496
|
| |
|
|
|
|
| |
a null pointer after getCursorDecl() is called. rdar://10298421.
llvm-svn: 146312
|
| |
|
|
|
|
| |
<rdar://problem/10553081>.
llvm-svn: 146287
|
| |
|
|
| |
llvm-svn: 146286
|
| |
|
|
| |
llvm-svn: 146213
|
| |
|
|
|
|
| |
passed to clang_findReferencesInFile.
llvm-svn: 146211
|
| |
|
|
|
|
|
|
| |
if we come up against a null Decl.
No test case unfortunately. rdar://10457799.
llvm-svn: 146127
|
| |
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
<rdar://problem/10538300>.
llvm-svn: 146011
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
- Exposes a CXType_Vector type kind for vector types.
- Adds generalized versions of the clang_getArrayElementType and clang_getArraySize functions, named clang_getElementType and clang_getNumElements, which work on array, vector, or complex types.
- Adds additional functions for querying function types. clang_isFunctionTypeVariadic returns true if a function type is variadic. clang_getFunctionCallingConv returns an enumeration value indicating the calling convention of the function type. clang_getNumArgTypes returns the number of static argument types, and clang_getArgType gets the type of an argument.
- Adds a clang_getTypedefDeclUnderlyingType function to get the underlying type from a TypedefDecl cursor.
- Adds a clang_getEnumDeclIntegerType function to get the integer type from an EnumDecl cursor.
- Adds clang_getEnumConstantDeclValue and clang_getEnumConstantDeclUnsignedValue functions to get the value of an EnumConstantDecl as a signed or unsigned long long, respectively.
- Exposes a CXCursor_AsmLabelAttr cursor kind for __asm__("label") attributes.
- Alters clang_getCursorSpelling to return the label value for AsmLabelAttr-kind cursors.
llvm-svn: 145972
|
| |
|
|
|
|
| |
of kind CXIdxEntity_CXXInstanceVariable. rdar://10522503.
llvm-svn: 145859
|
| |
|
|
| |
llvm-svn: 145751
|
| |
|
|
|
|
| |
C++ catch.
llvm-svn: 145750
|
| |
|
|
|
|
|
|
| |
__import_module__ std.vector;
in the AST.
llvm-svn: 145725
|
| |
|
|
| |
llvm-svn: 145557
|
| |
|
|
|
|
| |
clang_findReferencesInFile.
llvm-svn: 145455
|
| |
|
|
| |
llvm-svn: 145397
|
| |
|
|
| |
llvm-svn: 145396
|
| |
|
|
| |
llvm-svn: 145393
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
expansions/definition
of a macro in a file).
As a bonus, also make searching for declarations more efficient by ignoring
preprocessing entities when we know that we are looking for a declaration.
Fixes rdar://10427411.
llvm-svn: 145369
|
| |
|
|
|
|
| |
<rdar://problem/10473903>.
llvm-svn: 145339
|
| |
|
|
|
|
|
|
|
| |
before passing to RangeCompare.
Though no idea how this can occur with the decls returned from
findFileRegionDecls().
llvm-svn: 145301
|
| |
|
|
|
|
|
|
| |
after
indexing, honor all the TU options.
llvm-svn: 145229
|
| |
|
|
| |
llvm-svn: 145228
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
file region
inside an objc container that "contains" other file-level declarations.
When getting the array of file-level declarations that overlap with a file region,
we failed to report that the region overlaps with an objc container, if
the container had other file-level declarations declared lexically inside it.
Fix this by marking such declarations as "isTopLevelDeclInObjCContainer" in the AST
and handling them appropriately.
llvm-svn: 145109
|
| |
|
|
| |
llvm-svn: 145107
|
| |
|
|
| |
llvm-svn: 145058
|
| |
|
|
|
|
| |
parsing or false to abort parsing.
llvm-svn: 144943
|
| |
|
|
|
|
|
|
|
| |
-For indexDeclaration, also pass the declaration attributes as an array of cursors.
-Rename CXIndexOpt_OneRefPerFile -> CXIndexOpt_SuppressRedundantRefs, and only pass
a reference if a declaration/definition does not exist in the file.
-Other fixes.
llvm-svn: 144942
|
| |
|
|
|
|
| |
without USR or location.
llvm-svn: 144941
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
object. I discovered that llvm::RefCountedBase<T> has
a bug where the reference count is copied in the copy constructor, which means that there were cases when the CompilerInvocation
objects created by ASTUnit were actually leaked. When I fixed that bug locally, it showed that a whole bunch of code assumed
that the LangOptions object that was part of CompilerInvocation was still alive. By making it heap-allocated and reference counted,
we can keep it around after the CompilerInvocation object goes away.
As part of this change, change CompilerInvocation:getLangOptions() to return a pointer, acting as another clue that this
object may outlive the CompilerInvocation object.
This commit doesn't fix the CompilerInvocation leak itself. That will come when I commit the fix to llvm::RefCountedBase<T> to
mainline LLVM.
llvm-svn: 144930
|
| |
|
|
|
|
|
|
| |
reset of
diagnostic set is necessary.
llvm-svn: 144793
|
| |
|
|
|
|
|
|
| |
avoid
unnecessary deserializations.
llvm-svn: 144792
|