summaryrefslogtreecommitdiffstats
path: root/clang/tools/libclang
Commit message (Collapse)AuthorAgeFilesLines
...
* Move various diagnostic operator<< overloads out of line and remove includes ↵Benjamin Kramer2012-02-041-0/+2
| | | | | | | | | of Diagnostic.h. Fix all the files that depended on transitive includes of Diagnostic.h. With this patch in place changing a diagnostic no longer requires a full rebuild of the StaticAnalyzer. llvm-svn: 149781
* [libclang] Stick to the silly notion that a forward class/protocolArgyrios Kyrtzidis2012-02-041-0/+14
| | | | | | declaration is a reference. rdar://10749990 llvm-svn: 149733
* Added source location for the template keyword in AST template-id expressions.Abramo Bagnara2012-01-271-1/+1
| | | | llvm-svn: 149127
* [libclang] In clang::getCursorKindForDecl() don't return "UnexposedDecl"Argyrios Kyrtzidis2012-01-241-6/+2
| | | | | | | | for forward references of classes and protocols, this breaks libclang API usage. rdar://10747438. llvm-svn: 148861
* [libclang] When calling clang_getCursorReferenced on a class or protocolArgyrios Kyrtzidis2012-01-241-3/+11
| | | | | | | | | forward reference, do give an interface or protocol cursor back, don't give an 'UnexposedDecl' one. rdar://10743193 llvm-svn: 148848
* [libclang] For:Argyrios Kyrtzidis2012-01-231-0/+3
| | | | | | | | | @implementation I(cat) suppress subsequent references to 'I'. rdar://10568103 llvm-svn: 148730
* Introduce CXXRecordDecl::isCLike() that is true if the class is C-like,Argyrios Kyrtzidis2012-01-231-5/+2
| | | | | | | | | without C++-specific features. Use it to set the language to C++ when indexing non-C-like structs. rdar://10732579 llvm-svn: 148708
* [libclang] Index C++ template specializations, rdar://10732708Argyrios Kyrtzidis2012-01-231-0/+8
| | | | llvm-svn: 148707
* [libclang] Index namespaces in C++ qualified lookup of members, rdar://10732798Argyrios Kyrtzidis2012-01-231-0/+5
| | | | llvm-svn: 148706
* [libclang] Index C++ constructor initializers, rdar://10732164Argyrios Kyrtzidis2012-01-231-0/+16
| | | | llvm-svn: 148705
* More dead code removal (using -Wunreachable-code)David Blaikie2012-01-201-2/+1
| | | | llvm-svn: 148577
* Extract the (InputKind, std::string) pair used to describe inputs toDouglas Gregor2012-01-201-0/+1
| | | | | | | the front end into its own class, FrontendInputFile, to make it easier to introduce new per-input data. No functionality change. llvm-svn: 148546
* [libclang] Fix crash when indexing attributes, rdar://10702250.Argyrios Kyrtzidis2012-01-201-1/+1
| | | | llvm-svn: 148524
* [libclang] Make sure Preprocessor is set in ASTUnit during indexing.Argyrios Kyrtzidis2012-01-173-0/+6
| | | | llvm-svn: 148319
* Remove unreachable code in Clang. (replace with llvm_unreachable where ↵David Blaikie2012-01-176-25/+13
| | | | | | appropriate or when GCC requires it) llvm-svn: 148292
* Remove unnecessary default cases in switches over enums.David Blaikie2012-01-171-2/+0
| | | | | | This allows -Wswitch-enum to find switches that need updating when these enums are modified. llvm-svn: 148281
* [libclang] Make clang_getCursorCompletionString not depend on the ASTUnit havingArgyrios Kyrtzidis2012-01-171-18/+16
| | | | | | | | a Sema. This allows it to work when Sema is not available, like when loading AST files. llvm-svn: 148279
* De-virtualize getPreviousDecl() and getMostRecentDecl() when we knowDouglas Gregor2012-01-142-4/+4
| | | | | | | | | | | | 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
* [libclang] If CXIndexOpt_IndexFunctionLocalSymbols is enabled, alsoArgyrios Kyrtzidis2012-01-142-3/+19
| | | | | | index parameters. llvm-svn: 148169
* [libclang] Add CXIndexOpt_IndexFunctionLocalSymbols indexing option to indicateArgyrios Kyrtzidis2012-01-143-1/+11
| | | | | | that one wants indexing callbacks for function-local symbols as well. llvm-svn: 148160
* Revert 148045 to fix the bots.Rafael Espindola2012-01-121-2/+0
| | | | llvm-svn: 148049
* Add a SONAME to the libclang library.Rafael Espindola2012-01-121-0/+2
| | | | | | Patch by Sylvestre Ledru. llvm-svn: 148045
* Add IsImplicit field in ObjCMessageExpr that is true when the messageArgyrios Kyrtzidis2012-01-121-11/+3
| | | | | | | | | | was constructed, e.g. for a property access. This allows the selector identifier locations machinery for ObjCMessageExpr to function correctly, in that there are not real locations to handle/report for such a message. llvm-svn: 148013
* Eliminate the ForwardDecl/InitiallyForwardDecl bits from ObjCProtocolDecl. ↵Douglas Gregor2012-01-011-1/+1
| | | | | | They are no longer needed llvm-svn: 147419
* Eliminate ObjCForwardProtocolDecl, which is redundant now thatDouglas Gregor2012-01-016-64/+22
| | | | | | ObjCProtocolDecl modules forward declarations properly. llvm-svn: 147415
* Move the data that corresponds to the definition of a protocol into aDouglas Gregor2012-01-013-6/+11
| | | | | | | | | separately-allocated DefinitionData structure. Introduce various functions that will help with the separation of declarations from definitions (isThisDeclarationADefinition(), hasDefinition(), getDefinition()). llvm-svn: 147408
* Eliminate ObjCClassDecl, which is redundant now that ObjCInterfaceDeclDouglas Gregor2011-12-276-65/+28
| | | | | | | covers both declarations (@class) and definitions (@interface) of an Objective-C class. llvm-svn: 147299
* remove unneeded config.h includesDylan Noblesmith2011-12-221-1/+1
| | | | llvm-svn: 147195
* [libclang] In visitPreprocessedEntitiesInRange we are interested in a file ↵Argyrios Kyrtzidis2011-12-211-2/+2
| | | | | | | | region so translate the range to file locations. llvm-svn: 147058
* Keep track of all declarations of an Objective-C class (both forwardDouglas Gregor2011-12-153-14/+14
| | | | | | | | | | 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
* [libclang] Give up on using write(); hopefully unbreaks mingw build.Argyrios Kyrtzidis2011-12-151-15/+1
| | | | llvm-svn: 146648
* Revert r146646 that was a mistake, and make the intended change in the right ↵Argyrios Kyrtzidis2011-12-151-0/+10
| | | | | | | | | file. Log: [libclang] Try to unbreak mingw build. llvm-svn: 146647
* Move the definition-specific data of ObjCInterfaceDecl into aDouglas Gregor2011-12-151-1/+4
| | | | | | | | | | | | | | | | 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
* [libclang] Install a fatal error handler that will call abort() instead of ↵Argyrios Kyrtzidis2011-12-151-0/+12
| | | | | | | | | | exit() when there is a report_fatal_error() call. rdar://10507984 llvm-svn: 146641
* [libclang] Indexing API: provide an attribute list inside CXIdxEntityInfoArgyrios Kyrtzidis2011-12-152-52/+126
| | | | | | so that we can access the attributes of an entity for a reference. llvm-svn: 146616
* [libclang] Suppress indexing references for occurrences of the interfaceArgyrios Kyrtzidis2011-12-151-0/+6
| | | | | | in a superclass and the protocols in a protocol list. llvm-svn: 146615
* Eliminate the vistigial ObjCClassDecl::ObjCClassRef, and inline itsDouglas Gregor2011-12-142-4/+3
| | | | | | | members into ObjCClassDecl, saving ourselves one pointer per forward declaration. llvm-svn: 146564
* [libclang] Indexing API: Provide the protocols list for objc categories as well.Argyrios Kyrtzidis2011-12-133-0/+11
| | | | | | rdar://10573361 llvm-svn: 146498
* [libclang] Indexing API: Fix indexing of missed references.Argyrios Kyrtzidis2011-12-134-29/+100
| | | | | | rdar://10567864&10567916 llvm-svn: 146497
* [libclang] Indexing API: Fix suppressing of references in macros and suppressArgyrios Kyrtzidis2011-12-131-2/+15
| | | | | | | | @class forward references. rdar://10568080&10568103&10568119 llvm-svn: 146496
* [libclang] Add defensive checks to make sure we don't try to dereferenceArgyrios Kyrtzidis2011-12-105-22/+52
| | | | | | a null pointer after getCursorDecl() is called. rdar://10298421. llvm-svn: 146312
* Add clang_getDiagnosticSetFromTU() to libclang. Fixes ↵Ted Kremenek2011-12-092-2/+10
| | | | | | <rdar://problem/10553081>. llvm-svn: 146287
* Sort exports list.Ted Kremenek2011-12-091-8/+8
| | | | llvm-svn: 146286
* Save category name loc in ObjCCategoryImplDecl, patch by Jason Haslam!Argyrios Kyrtzidis2011-12-091-1/+1
| | | | llvm-svn: 146213
* [libclang] Make sure we don't try to handle a CXCursor_NoDeclFoundArgyrios Kyrtzidis2011-12-092-2/+9
| | | | | | passed to clang_findReferencesInFile. llvm-svn: 146211
* [libclang] When doing clang_findReferencesInFile, make sure we don't crashArgyrios Kyrtzidis2011-12-081-3/+15
| | | | | | | | if we come up against a null Decl. No test case unfortunately. rdar://10457799. llvm-svn: 146127
* [libclang] Remove IndexingContext's getScopedContext(), it's not usefulArgyrios Kyrtzidis2011-12-082-28/+0
| | | | | | now that client containers can be set via function calls. llvm-svn: 146117
* [libclang] Indexing API: provide both the semantic and the lexical container.Argyrios Kyrtzidis2011-12-072-8/+11
| | | | | | They are generally the same except in C++ cases like out-of-line member functions. llvm-svn: 146069
* [libclang] Fix indexing of C++ bases in a C++ class.Argyrios Kyrtzidis2011-12-072-4/+38
| | | | llvm-svn: 146068
* [libclang] Introduce CXIdxEntityLanguage that indicates the languageArgyrios Kyrtzidis2011-12-071-18/+54
| | | | | | of an indexed entity. llvm-svn: 146067
OpenPOWER on IntegriCloud