summaryrefslogtreecommitdiffstats
path: root/clang/tools/libclang
Commit message (Collapse)AuthorAgeFilesLines
...
* Add indexing support for the block and @property type location informationJohn McCall2010-06-041-4/+5
| | | | | | I just implemented. llvm-svn: 105491
* Return a proper null CXSourceLocation from clang_getLocation() when the ↵Ted Kremenek2010-06-031-1/+3
| | | | | | SourceLocation is invalid. Fixes <rdar://problem/8056640>. llvm-svn: 105392
* Delete a blank line to make it easier to process this file with a script.Dan Gohman2010-06-011-1/+0
| | | | llvm-svn: 105275
* Add check for an invalid CXType in clang_getTypeDeclaration.Ted Kremenek2010-05-291-0/+7
| | | | llvm-svn: 105111
* When handling raw_ostream errors manually, use clear_error() so thatDan Gohman2010-05-271-0/+1
| | | | | | raw_ostream doesn't try to do its own error handling. llvm-svn: 104880
* Silence warning about "enumeral and non-enumeral type in conditionalBill Wendling2010-05-271-1/+1
| | | | | | expression". llvm-svn: 104863
* Remove clang_isFromMainFile(). It doesn't work correctly with ↵Ted Kremenek2010-05-273-12/+0
| | | | | | | | CXDiagnostics, and we shouldn't have an API around that cannot be implemented correctly yet. llvm-svn: 104849
* Introduce priorities into the code-completion results.Douglas Gregor2010-05-263-8/+40
| | | | llvm-svn: 104751
* Turn vertical spacing into horizontal spacing in code-completion resultsDouglas Gregor2010-05-251-1/+4
| | | | llvm-svn: 104586
* Make clang_isFromMainFile() robust against NULL source locations.Douglas Gregor2010-05-231-0/+3
| | | | llvm-svn: 104474
* Make crashreport data in libclang a compile-time option.Ted Kremenek2010-05-221-2/+1
| | | | llvm-svn: 104413
* Fix __crashreport_info__ declaration.Daniel Dunbar2010-05-201-1/+2
| | | | llvm-svn: 104301
* Renamed misleading getSourceRange -> getLocalSourceRange and ↵Abramo Bagnara2010-05-201-1/+1
| | | | | | getFullSourceRange -> getSourceRange for TypeLoc. llvm-svn: 104220
* Add libclang function 'clang_isFromMainFile()' (which just wraps ↵Ted Kremenek2010-05-203-0/+9
| | | | | | SourceManager::isFromMainFile()). llvm-svn: 104208
* Move CXCursor_FirstDecl definition later to make the results more readable ↵Ted Kremenek2010-05-191-4/+5
| | | | | | in the debugger. llvm-svn: 104171
* Remove clang_isDeclarationADefinition() since its functionality is already ↵Ted Kremenek2010-05-193-10/+0
| | | | | | provided by clang_isCursorDefinition(). llvm-svn: 104138
* Add clang support for IBOutletCollection.Ted Kremenek2010-05-192-0/+3
| | | | llvm-svn: 104135
* Add function 'clang_isTagDeclDefinition()' to allow clients of libclang to ↵Ted Kremenek2010-05-183-0/+12
| | | | | | | | distinguish between forward declarations and definitions of structs/classes/enums. llvm-svn: 104075
* Teach CursorVisitor about duplicate ObjCPropertyDecls that can arise because ↵Ted Kremenek2010-05-181-3/+48
| | | | | | | | | | of a current design limitation in how we handle Objective-C class extensions. This was causing the CursorVisitor to essentially visit an @property twice (once in the @interface, the other in the class extension). Fixes <rdar://problem/7410145>. llvm-svn: 104055
* Fix missing '}'.Ted Kremenek2010-05-171-0/+1
| | | | llvm-svn: 103966
* Add libclang function 'clang_CXXMethod_isStatic' to query of a C++ methodTed Kremenek2010-05-173-2/+17
| | | | | | is declared static. llvm-svn: 103963
* Substantially alter the design of the Objective C type AST by introducingJohn McCall2010-05-152-13/+12
| | | | | | | | | | | | | | | | | | | | | ObjCObjectType, which is basically just a pair of one of {primitive-id, primitive-Class, user-defined @class} with a list of protocols. An ObjCObjectPointerType is therefore just a pointer which always points to one of these types (possibly sugared). ObjCInterfaceType is now just a kind of ObjCObjectType which happens to not carry any protocols. Alter a rather large number of use sites to use ObjCObjectType instead of ObjCInterfaceType. Store an ObjCInterfaceType as a pointer on the decl rather than hashing them in a FoldingSet. Remove some number of methods that are no longer used, at least after this patch. By simplifying ObjCObjectPointerType, we are now able to easily remove and apply pointers to Objective-C types, which is crucial for a certain kind of ObjC++ metaprogramming common in WebKit. llvm-svn: 103870
* Change install_name for libclang.dylib to '@rpath/libclang.dylib'. Fixes ↵Ted Kremenek2010-05-141-1/+1
| | | | | | <rdar://problem/7987039>. llvm-svn: 103837
* Add CXType and an initial set of supporting functions to libclang. This ↵Ted Kremenek2010-05-144-0/+259
| | | | | | | | | exposes details of Clang's representation of the C type system to clients. It is nowhere near complete, and will be expanded on demand. llvm-svn: 103809
* Fold assertion into condition, as it does not hold all the time.Ted Kremenek2010-05-131-3/+2
| | | | llvm-svn: 103716
* Remove stale comment.Ted Kremenek2010-05-131-2/+0
| | | | llvm-svn: 103696
* Specially handle CaseStmts in CursorVisitor because they can be nested and ↵Ted Kremenek2010-05-131-22/+73
| | | | | | | | walking them can blow out the stack. llvm-svn: 103687
* Re-apply r103581 with updated tests. It turns out we were computing bogus ↵Ted Kremenek2010-05-121-2/+2
| | | | | | | | locations for many things. llvm-svn: 103583
* Temporarily revert r103581 so I can fix the failing tests.Ted Kremenek2010-05-121-2/+2
| | | | llvm-svn: 103582
* Correctly check if a cursor is a declaration before returning its ↵Ted Kremenek2010-05-121-2/+2
| | | | | | | | | | location/range in clang_getCursorLocation()/clang_getCursorExtent(). This fixes a horrible bug reported in <rdar://problem/7961995> and <rdar://problem/7967123> where declarations with attributes would get grossly annotated with the wrong tokens because the attribute would be interpreted as if it was a Decl*. llvm-svn: 103581
* Remove debugging aids I did not intend to commit.Ted Kremenek2010-05-121-4/+0
| | | | llvm-svn: 103578
* Adjust clang_annotateTokens() to correctly account for the TypeSourceInfo ↵Ted Kremenek2010-05-121-2/+22
| | | | | | | | for DeclaratorDecls when annotating tokens. Fixes <rdar://problem/7971430>. llvm-svn: 103577
* Merged Elaborated and QualifiedName types.Abramo Bagnara2010-05-112-8/+8
| | | | llvm-svn: 103517
* Extend C++ usrs to include type mangling for tag decl arguments, indicating ↵Ted Kremenek2010-05-071-4/+21
| | | | | | | | whether a method is static, and mangling in the qualifers of the method. llvm-svn: 103289
* Switch USR generation over from NamedDecl::getNameAsString() to ↵Ted Kremenek2010-05-071-92/+98
| | | | | | NamedDecl::printName(). llvm-svn: 103285
* Add initial USR support for mangling in the types of C++ functions and methods.Ted Kremenek2010-05-071-2/+138
| | | | llvm-svn: 103225
* Add CXCursor support for LinkageSpecDecl (e.g., 'extern "C"').Ted Kremenek2010-05-071-0/+7
| | | | llvm-svn: 103224
* Add USR support for C++ namespaces, and unify mangling of location ↵Ted Kremenek2010-05-061-37/+47
| | | | | | | | information in USRs for anonymous symbols. llvm-svn: 103212
* Add CXCursor support for C++ namespaces.Ted Kremenek2010-05-062-0/+8
| | | | llvm-svn: 103211
* Rework clang_annotateTokens() to annotate tokens with information that more ↵Ted Kremenek2010-05-051-71/+171
| | | | | | | | | closely matches clang_getCursor(). Tokens are now annotated with the cursor (for the matching AST element) that most closely encompasses that token. llvm-svn: 103064
* Map Objective-C keywords to CXToken_Keyword.Ted Kremenek2010-05-051-3/+9
| | | | llvm-svn: 103063
* Move post-processing of token annotations to method in AnnotateTokensWorker.Ted Kremenek2010-05-051-12/+23
| | | | llvm-svn: 103062
* Refactor visitor logic for clang_annotateTokens() into a worker class. No ↵Ted Kremenek2010-05-051-27/+48
| | | | | | functionality change yet. llvm-svn: 103061
* Fix NON_ANSI_COMPILE_FLAGS setting, for MSVC.Daniel Dunbar2010-05-011-1/+1
| | | | llvm-svn: 102811
* Rename 'CIndex' to 'libclang', since it has basically become our stable publicDaniel Dunbar2010-04-3015-0/+5055
(C) API, and will likely grow further in this direction in the future. llvm-svn: 102779
OpenPOWER on IntegriCloud