#
89929282 |
| 30-Jan-2012 |
Douglas Gregor <dgregor@apple.com> |
Thread a TargetInfo through to the module map; we'll need it for target-specific module requirements.
llvm-svn: 149224
|
#
e1fbde55 |
| 29-Jan-2012 |
Douglas Gregor <dgregor@apple.com> |
Ensure that we clean up after a failed module build and cope with the results in libclang.
llvm-svn: 149200
|
#
32fbe312 |
| 20-Jan-2012 |
Douglas Gregor <dgregor@apple.com> |
Extract the (InputKind, std::string) pair used to describe inputs to the front end into its own class, FrontendInputFile, to make it easier to introduce new per-input data. No functionality change.
Extract the (InputKind, std::string) pair used to describe inputs to the front end into its own class, FrontendInputFile, to make it easier to introduce new per-input data. No functionality change.
llvm-svn: 148546
show more ...
|
#
da6e0547 |
| 17-Jan-2012 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[libclang] Make sure Preprocessor is set in ASTUnit during indexing.
llvm-svn: 148319
|
#
f6102675 |
| 01-Jan-2012 |
Douglas Gregor <dgregor@apple.com> |
Eliminate ObjCForwardProtocolDecl, which is redundant now that ObjCProtocolDecl modules forward declarations properly.
llvm-svn: 147415
|
#
1fb5c3a6 |
| 31-Dec-2011 |
Douglas Gregor <dgregor@apple.com> |
Implement support for module requirements, which indicate the language features needed for a particular module to be available. This allows mixed-language modules, where certain headers only work und
Implement support for module requirements, which indicate the language features needed for a particular module to be available. This allows mixed-language modules, where certain headers only work under some language variants (e.g., in C++, std.tuple might only be available in C++11 mode).
llvm-svn: 147387
show more ...
|
#
deafd0b2 |
| 27-Dec-2011 |
Douglas Gregor <dgregor@apple.com> |
Eliminate ObjCClassDecl, which is redundant now that ObjCInterfaceDecl covers both declarations (@class) and definitions (@interface) of an Objective-C class.
llvm-svn: 147299
|
#
65e025ca |
| 25-Dec-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Remove unused variables.
llvm-svn: 147260
|
#
de3ef502 |
| 30-Nov-2011 |
Douglas Gregor <dgregor@apple.com> |
Promote ModuleMap::Module to a namespace-scope class in the Basic library, since modules cut across all of the libraries. Rename serialization::Module to serialization::ModuleFile to side-step the an
Promote ModuleMap::Module to a namespace-scope class in the Basic library, since modules cut across all of the libraries. Rename serialization::Module to serialization::ModuleFile to side-step the annoying naming conflict. Prune a bunch of ModuleMap.h includes that are no longer needed (most files only needed the Module type).
llvm-svn: 145538
show more ...
|
#
f7a700fd |
| 30-Nov-2011 |
Douglas Gregor <dgregor@apple.com> |
When writing a module file, pass the module through to the AST writer. No functionality change.
llvm-svn: 145479
|
#
85b4a37d |
| 29-Nov-2011 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Initialize NumWarningsInPreamble in ASTUnit's constructor, for safety.
llvm-svn: 145412
|
#
b11f5a4c |
| 28-Nov-2011 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[libclang] Indexing API: If the client requested to get a CXTranslationUnit after indexing, honor all the TU options.
llvm-svn: 145229
|
#
67aa7db0 |
| 28-Nov-2011 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[libclang] Indexing API: Capture diagnostics during indexing.
llvm-svn: 145228
|
#
8ad3bab5 |
| 23-Nov-2011 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[libclang] Fix operations (token annotation, getting cursor, etc.) with a file region inside an objc container that "contains" other file-level declarations.
When getting the array of file-level dec
[libclang] Fix operations (token annotation, getting cursor, etc.) with a 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
show more ...
|
#
841dd886 |
| 18-Nov-2011 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Change ASTConsumer::HandleTopLevelDecl to return true for the parser to continue parsing or false to abort parsing.
llvm-svn: 144943
|
#
8cf47df7 |
| 17-Nov-2011 |
Ted Kremenek <kremenek@apple.com> |
Make 'LangOptions' in CompilerInvocation a heap-allocated, reference counted object. I discovered that llvm::RefCountedBase<T> has a bug where the reference count is copied in the copy constructor,
Make 'LangOptions' in CompilerInvocation a heap-allocated, reference counted 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
show more ...
|
#
25047602 |
| 17-Nov-2011 |
Ted Kremenek <kremenek@apple.com> |
Simplify crash cleanup logic in ASTUnit::LoadFromCommandLine() by zeroing out two IntrusiveRefCnt pointers after we have assigned their respective values into fields of ASTUnit.
llvm-svn: 144929
|
Revision tags: llvmorg-3.0.0, llvmorg-3.0.0-rc4 |
|
#
516eec2d |
| 16-Nov-2011 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[libclang] Fix crash on invalid code. Fixes rdar://10451854
llvm-svn: 144766
|
#
197ac203 |
| 11-Nov-2011 |
Douglas Gregor <dgregor@apple.com> |
I predict that HeaderSearch will need the ability to generate diagnostics in the future. Make it so.
llvm-svn: 144347
|
Revision tags: llvmorg-3.0.0-rc3 |
|
#
61d63d0f |
| 07-Nov-2011 |
Douglas Gregor <dgregor@apple.com> |
ASTConsumer::handleTopLevelDecl will end up getting called for function template instantiations. Fixes <rdar://problem/10398005> / PR11312.
llvm-svn: 143984
|
#
462ff35d |
| 03-Nov-2011 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
After resetting the diagnostic state, set the number of warning occurring in the preamble.
llvm-svn: 143647
|
#
f50f7b2c |
| 03-Nov-2011 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[libclang] Fix crash when a #pragma diagnostic is included in the preamble.
A PCH file keeps track of #pragma diagnostics state; when loading the preamble, they conflicted with the #pragma diagnosti
[libclang] Fix crash when a #pragma diagnostic is included in the preamble.
A PCH file keeps track of #pragma diagnostics state; when loading the preamble, they conflicted with the #pragma diagnostic state already present in the DiagnosticsEngine object due to parsing the preamble.
Fix this by clearing the state of the DiagnosticsEngine object. Fixes rdar://10363572 && http://llvm.org/PR11254.
llvm-svn: 143644
show more ...
|
#
e9681525 |
| 03-Nov-2011 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[libclang] Add infrastructure to be able to only deserialize decls in a file region and use it for clang_getCursor.
llvm-svn: 143605
|
#
244ce8b2 |
| 01-Nov-2011 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Put a reference of the ASTReader in the ASTUnit.
This is intended for direct access of the ASTReader for uses that make little sense to try to shoehorn in the ExternalASTSource interface.
llvm-svn:
Put a reference of the ASTReader in the ASTUnit.
This is intended for direct access of the ASTReader for uses that make little sense to try to shoehorn in the ExternalASTSource interface.
llvm-svn: 143465
show more ...
|
Revision tags: llvmorg-3.0.0-rc2 |
|
#
3689337c |
| 31-Oct-2011 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Revert r143342. Caching of code-completion results was intentionally placed in "reparse" because we don't want to take this performance hit when doing code completion
Log of r143342: Move caching of
Revert r143342. Caching of code-completion results was intentionally placed in "reparse" because we don't want to take this performance hit when doing code completion
Log of r143342: Move caching of code-completion results from ASTUnit::Reparse to ASTUnit::CodeComplete, so that it will happen when we are doing code-completion, not reparsing.
llvm-svn: 143367
show more ...
|