Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Add indexing support for the block and @property type location information | John McCall | 2010-06-04 | 1 | -4/+5 | |
| | | | | | | I just implemented. llvm-svn: 105491 | |||||
* | Return a proper null CXSourceLocation from clang_getLocation() when the ↵ | Ted Kremenek | 2010-06-03 | 1 | -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 Gohman | 2010-06-01 | 1 | -1/+0 | |
| | | | | llvm-svn: 105275 | |||||
* | Add check for an invalid CXType in clang_getTypeDeclaration. | Ted Kremenek | 2010-05-29 | 1 | -0/+7 | |
| | | | | llvm-svn: 105111 | |||||
* | When handling raw_ostream errors manually, use clear_error() so that | Dan Gohman | 2010-05-27 | 1 | -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 conditional | Bill Wendling | 2010-05-27 | 1 | -1/+1 | |
| | | | | | | expression". llvm-svn: 104863 | |||||
* | Remove clang_isFromMainFile(). It doesn't work correctly with ↵ | Ted Kremenek | 2010-05-27 | 3 | -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 Gregor | 2010-05-26 | 3 | -8/+40 | |
| | | | | llvm-svn: 104751 | |||||
* | Turn vertical spacing into horizontal spacing in code-completion results | Douglas Gregor | 2010-05-25 | 1 | -1/+4 | |
| | | | | llvm-svn: 104586 | |||||
* | Make clang_isFromMainFile() robust against NULL source locations. | Douglas Gregor | 2010-05-23 | 1 | -0/+3 | |
| | | | | llvm-svn: 104474 | |||||
* | Make crashreport data in libclang a compile-time option. | Ted Kremenek | 2010-05-22 | 1 | -2/+1 | |
| | | | | llvm-svn: 104413 | |||||
* | Fix __crashreport_info__ declaration. | Daniel Dunbar | 2010-05-20 | 1 | -1/+2 | |
| | | | | llvm-svn: 104301 | |||||
* | Renamed misleading getSourceRange -> getLocalSourceRange and ↵ | Abramo Bagnara | 2010-05-20 | 1 | -1/+1 | |
| | | | | | | getFullSourceRange -> getSourceRange for TypeLoc. llvm-svn: 104220 | |||||
* | Add libclang function 'clang_isFromMainFile()' (which just wraps ↵ | Ted Kremenek | 2010-05-20 | 3 | -0/+9 | |
| | | | | | | SourceManager::isFromMainFile()). llvm-svn: 104208 | |||||
* | Move CXCursor_FirstDecl definition later to make the results more readable ↵ | Ted Kremenek | 2010-05-19 | 1 | -4/+5 | |
| | | | | | | in the debugger. llvm-svn: 104171 | |||||
* | Remove clang_isDeclarationADefinition() since its functionality is already ↵ | Ted Kremenek | 2010-05-19 | 3 | -10/+0 | |
| | | | | | | provided by clang_isCursorDefinition(). llvm-svn: 104138 | |||||
* | Add clang support for IBOutletCollection. | Ted Kremenek | 2010-05-19 | 2 | -0/+3 | |
| | | | | llvm-svn: 104135 | |||||
* | Add function 'clang_isTagDeclDefinition()' to allow clients of libclang to ↵ | Ted Kremenek | 2010-05-18 | 3 | -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 Kremenek | 2010-05-18 | 1 | -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 Kremenek | 2010-05-17 | 1 | -0/+1 | |
| | | | | llvm-svn: 103966 | |||||
* | Add libclang function 'clang_CXXMethod_isStatic' to query of a C++ method | Ted Kremenek | 2010-05-17 | 3 | -2/+17 | |
| | | | | | | is declared static. llvm-svn: 103963 | |||||
* | Substantially alter the design of the Objective C type AST by introducing | John McCall | 2010-05-15 | 2 | -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 Kremenek | 2010-05-14 | 1 | -1/+1 | |
| | | | | | | <rdar://problem/7987039>. llvm-svn: 103837 | |||||
* | Add CXType and an initial set of supporting functions to libclang. This ↵ | Ted Kremenek | 2010-05-14 | 4 | -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 Kremenek | 2010-05-13 | 1 | -3/+2 | |
| | | | | llvm-svn: 103716 | |||||
* | Remove stale comment. | Ted Kremenek | 2010-05-13 | 1 | -2/+0 | |
| | | | | llvm-svn: 103696 | |||||
* | Specially handle CaseStmts in CursorVisitor because they can be nested and ↵ | Ted Kremenek | 2010-05-13 | 1 | -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 Kremenek | 2010-05-12 | 1 | -2/+2 | |
| | | | | | | | | locations for many things. llvm-svn: 103583 | |||||
* | Temporarily revert r103581 so I can fix the failing tests. | Ted Kremenek | 2010-05-12 | 1 | -2/+2 | |
| | | | | llvm-svn: 103582 | |||||
* | Correctly check if a cursor is a declaration before returning its ↵ | Ted Kremenek | 2010-05-12 | 1 | -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 Kremenek | 2010-05-12 | 1 | -4/+0 | |
| | | | | llvm-svn: 103578 | |||||
* | Adjust clang_annotateTokens() to correctly account for the TypeSourceInfo ↵ | Ted Kremenek | 2010-05-12 | 1 | -2/+22 | |
| | | | | | | | | for DeclaratorDecls when annotating tokens. Fixes <rdar://problem/7971430>. llvm-svn: 103577 | |||||
* | Merged Elaborated and QualifiedName types. | Abramo Bagnara | 2010-05-11 | 2 | -8/+8 | |
| | | | | llvm-svn: 103517 | |||||
* | Extend C++ usrs to include type mangling for tag decl arguments, indicating ↵ | Ted Kremenek | 2010-05-07 | 1 | -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 Kremenek | 2010-05-07 | 1 | -92/+98 | |
| | | | | | | NamedDecl::printName(). llvm-svn: 103285 | |||||
* | Add initial USR support for mangling in the types of C++ functions and methods. | Ted Kremenek | 2010-05-07 | 1 | -2/+138 | |
| | | | | llvm-svn: 103225 | |||||
* | Add CXCursor support for LinkageSpecDecl (e.g., 'extern "C"'). | Ted Kremenek | 2010-05-07 | 1 | -0/+7 | |
| | | | | llvm-svn: 103224 | |||||
* | Add USR support for C++ namespaces, and unify mangling of location ↵ | Ted Kremenek | 2010-05-06 | 1 | -37/+47 | |
| | | | | | | | | information in USRs for anonymous symbols. llvm-svn: 103212 | |||||
* | Add CXCursor support for C++ namespaces. | Ted Kremenek | 2010-05-06 | 2 | -0/+8 | |
| | | | | llvm-svn: 103211 | |||||
* | Rework clang_annotateTokens() to annotate tokens with information that more ↵ | Ted Kremenek | 2010-05-05 | 1 | -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 Kremenek | 2010-05-05 | 1 | -3/+9 | |
| | | | | llvm-svn: 103063 | |||||
* | Move post-processing of token annotations to method in AnnotateTokensWorker. | Ted Kremenek | 2010-05-05 | 1 | -12/+23 | |
| | | | | llvm-svn: 103062 | |||||
* | Refactor visitor logic for clang_annotateTokens() into a worker class. No ↵ | Ted Kremenek | 2010-05-05 | 1 | -27/+48 | |
| | | | | | | functionality change yet. llvm-svn: 103061 | |||||
* | Fix NON_ANSI_COMPILE_FLAGS setting, for MSVC. | Daniel Dunbar | 2010-05-01 | 1 | -1/+1 | |
| | | | | llvm-svn: 102811 | |||||
* | Rename 'CIndex' to 'libclang', since it has basically become our stable public | Daniel Dunbar | 2010-04-30 | 15 | -0/+5055 | |
(C) API, and will likely grow further in this direction in the future. llvm-svn: 102779 |