#
4a94ba56 |
| 17-Mar-2010 |
Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> |
Issue a proper diagnostic if we couldn't open dump file
llvm-svn: 98719
|
#
00a0cf70 |
| 16-Mar-2010 |
Douglas Gregor <dgregor@apple.com> |
Don't consume tokens past the end-of-file in an @interface. Fixes <rdar://problem/7735566>.
llvm-svn: 98613
|
#
e0fbb83b |
| 16-Mar-2010 |
Douglas Gregor <dgregor@apple.com> |
Give SourceManager a Diagnostic object with which to report errors, and start simplifying the interfaces in SourceManager that can fail.
llvm-svn: 98594
|
#
1c558cd7 |
| 06-Mar-2010 |
Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> |
Lowercase for consistency
llvm-svn: 97878
|
#
33cdd810 |
| 18-Feb-2010 |
Douglas Gregor <dgregor@apple.com> |
Rework how CIndex handles diagnostics. Rather than using a callback, we attach diagnostics to translation units and code-completion results, so they can be queried at any time.
To facilitate this, t
Rework how CIndex handles diagnostics. Rather than using a callback, we attach diagnostics to translation units and code-completion results, so they can be queried at any time.
To facilitate this, the new StoredDiagnostic class stores a diagnostic in a serializable/deserializable form, and ASTUnit knows how to capture diagnostics in this stored form. CIndex's CXDiagnostic is a thin wrapper around StoredDiagnostic, providing a C interface to stored or de-serialized diagnostics.
I've XFAIL'd one test case temporarily, because currently we end up storing diagnostics in an ASTUnit that's never returned to the user (because it contains errors). I'll introduce a temporary fix for this soon; the real fix will be to allow us to return and query invalid ASTs.
llvm-svn: 96592
show more ...
|
#
e922d9bd |
| 16-Feb-2010 |
Daniel Dunbar <daniel@zuster.org> |
CompilerInstance: Move LLVMContext member out of constructor.
llvm-svn: 96314
|
#
68242254 |
| 30-Jan-2010 |
Daniel Dunbar <daniel@zuster.org> |
CompilerInstance: Change to not contain the CompilerInvocation object.
This allows clients to install their own CompilerInvocation object, which is important for clients that may wish to create refe
CompilerInstance: Change to not contain the CompilerInvocation object.
This allows clients to install their own CompilerInvocation object, which is important for clients that may wish to create references to things like LangOptions whose lifetime will extend past that of the CompilerInstance.
llvm-svn: 94923
show more ...
|
#
ac0605e9 |
| 28-Jan-2010 |
Douglas Gregor <dgregor@apple.com> |
Introduce serialization and deserialization of diagnostic information so that CIndex can report diagnostics through the normal mechanisms even when executing Clang in a separate process. This applies
Introduce serialization and deserialization of diagnostic information so that CIndex can report diagnostics through the normal mechanisms even when executing Clang in a separate process. This applies both when performing code completion and when using ASTs as an intermediary for clang_createTranslationUnitFromSourceFile().
The serialized format is not perfect at the moment, because it does not encapsulate macro-instantiation information. Instead, it maps all source locations back to the instantiation location. However, it does maintain source-range and fix-it information. To get perfect fidelity from the serialized format would require serializing a large chunk of the source manager; at present, it isn't clear if this code will live long enough for that to matter.
llvm-svn: 94740
show more ...
|
#
3f7b8b27 |
| 13-Jan-2010 |
Fariborz Jahanian <fjahanian@apple.com> |
Predefine __weak attribute when doing objective-c rewriting for any target. (refixes radar 7530235).
llvm-svn: 93331
|
#
4f2bc55d |
| 13-Jan-2010 |
Daniel Dunbar <daniel@zuster.org> |
cc1: Factor out CompilerInstance::ExecuteAction which has the majority of the clang -cc1 logic for running an action against a set of options. - This should make it easier to build tools that have a
cc1: Factor out CompilerInstance::ExecuteAction which has the majority of the clang -cc1 logic for running an action against a set of options. - This should make it easier to build tools that have a clang -cc1 like interface, but aren't actually part of clang -cc1.
llvm-svn: 93282
show more ...
|
#
520d1e6c |
| 11-Dec-2009 |
Daniel Dunbar <daniel@zuster.org> |
Update docs/comments/utils/examples to refer to clang -cc1 instead of clang-cc.
llvm-svn: 91176
|
#
7554699a |
| 03-Dec-2009 |
Daniel Dunbar <daniel@zuster.org> |
Fix CompilerInstance::createOutputFile to use proper diagnostics, and (try to) update all clients to be able to handle failure.
llvm-svn: 90437
|
#
692bc47d |
| 03-Dec-2009 |
Daniel Dunbar <daniel@zuster.org> |
Remove an unnecessary (I believe) exit() on error.
llvm-svn: 90436
|
#
6ae34abd |
| 02-Dec-2009 |
Douglas Gregor <dgregor@apple.com> |
Move file-remapping logic into InitPreprocesor. No functionality change
llvm-svn: 90322
|
#
d062bff7 |
| 02-Dec-2009 |
Douglas Gregor <dgregor@apple.com> |
Introduce a new clang-cc option
-remap-file=from;to
which takes the file "from" and transparently replaces its contents with the contents of the file "to" from the source manager's perspective.
Introduce a new clang-cc option
-remap-file=from;to
which takes the file "from" and transparently replaces its contents with the contents of the file "to" from the source manager's perspective. This is the moral equivalent of
cp from saved cp to from <call clang> cp saved from rm saved
without all of the pesky file copying.
llvm-svn: 90307
show more ...
|
#
53ad6b94 |
| 02-Dec-2009 |
Douglas Gregor <dgregor@apple.com> |
Extend the source manager with the ability to override the contents of files with the contents of an arbitrary memory buffer. Use this new functionality to drastically clean up the way in which we ha
Extend the source manager with the ability to override the contents of files with the contents of an arbitrary memory buffer. Use this new functionality to drastically clean up the way in which we handle file truncation for code-completion: all of the truncation/completion logic is now encapsulated in the preprocessor where it belongs (<rdar://problem/7434737>).
llvm-svn: 90300
show more ...
|
#
f09935f1 |
| 01-Dec-2009 |
Douglas Gregor <dgregor@apple.com> |
Switch the clang-to-CIndex interface for code-completion to a binary format, for a massive speedup
llvm-svn: 90209
|
#
5505dff8 |
| 29-Nov-2009 |
Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> |
This patch moves the frontend timer from clang-cc into CompilerInstance. CompilerInstance already contains various objects that are used throughout the entire run.
Also addresses Daniels review comm
This patch moves the frontend timer from clang-cc into CompilerInstance. CompilerInstance already contains various objects that are used throughout the entire run.
Also addresses Daniels review comments in:
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20091123/024508.html
llvm-svn: 90073
show more ...
|
#
2eaef18e |
| 20-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Fix refactoro, clang-cc wasn't properly reporting errors when opening an output file failed.
llvm-svn: 89502
|
#
d6ea9028 |
| 17-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Simplify PreprocessorOptions, it doesn't need abstracted field access.
llvm-svn: 89047
|
#
1b39a2ed |
| 14-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Shuffle VerifyDiagnosticsClient API to be less fragile.
llvm-svn: 88765
|
#
409e890f |
| 14-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Add CompilerInstance::InitializeSourceManager.
llvm-svn: 88764
|
#
50ec0da0 |
| 14-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Switch -verify implementation to use VerifyDiagnosticClient. - Not tested, but -verify with multiple inputs should work now.
llvm-svn: 88750
|
#
56d9c293 |
| 14-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Add ASTConsumer to CompilerInstance.
llvm-svn: 88743
|
#
e01dc86d |
| 14-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Move CompilerInstance::set* methods out-of-line.
llvm-svn: 88731
|