- Dec 04, 2009
-
-
Daniel Dunbar authored
from a source file. - This allows CIndex to avoid iterating over all the top-level decls when using a PCH, which means we deserialize far fewer decls. llvm-svn: 90559
-
Chris Lattner authored
test like this: #line 4 "foo" #define XX ? #if XX #endif We now emit: In file included from t.c:7: foo:7:5: error: invalid token at start of a preprocessor expression #if XX ^ foo:5:12: note: instantiated from: #define XX ? ^ instead of: In file included from t.c:7: foo:7:5: error: invalid token at start of a preprocessor expression #if XX ^ ./t.h:6:12: note: instantiated from: #define XX ? ^ (where the note doesn't obey #line or print the include stack when needed). This fixes PR5617 llvm-svn: 90554
-
Eli Friedman authored
llvm-svn: 90550
-
- Dec 03, 2009
-
-
Ted Kremenek authored
Try to make the output of PlistDiagnostics more deterministic by sorting PathDiagnostics before they are emitted. Fixes <rdar://problem/7439668>. llvm-svn: 90478
-
Daniel Dunbar authored
Fix two more diagnostic-on-stderr instances that thought they could hide from me -- they thought wrong. llvm-svn: 90442
-
Daniel Dunbar authored
llvm-svn: 90441
-
Daniel Dunbar authored
llvm-svn: 90438
-
Daniel Dunbar authored
Fix CompilerInstance::createOutputFile to use proper diagnostics, and (try to) update all clients to be able to handle failure. llvm-svn: 90437
-
Daniel Dunbar authored
llvm-svn: 90436
-
Daniel Dunbar authored
llvm-svn: 90434
-
Daniel Dunbar authored
llvm-svn: 90433
-
Daniel Dunbar authored
llvm-svn: 90422
-
Daniel Dunbar authored
llvm-svn: 90414
-
Daniel Dunbar authored
llvm-svn: 90413
-
Daniel Dunbar authored
llvm-svn: 90379
-
- Dec 02, 2009
-
-
Daniel Dunbar authored
llvm-svn: 90349
-
Daniel Dunbar authored
llvm-svn: 90348
-
Mike Stump authored
llvm-svn: 90334
-
Douglas Gregor authored
file. This is accomplished by introducing the notion of a "virtual" file into the file manager, which provides a FileEntry* for a named file whose size and modification time are known but which may not exist on disk. Added a cute little test that remaps both a .c file and a .h file it includes to alternative files. llvm-svn: 90329
-
Douglas Gregor authored
llvm-svn: 90322
-
Daniel Dunbar authored
source files. llvm-svn: 90311
-
Daniel Dunbar authored
llvm-svn: 90310
-
Douglas Gregor authored
-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
-
Douglas Gregor authored
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
-
Daniel Dunbar authored
(clang/driver) command line arguments (including the source file). - The arguments are expected to include the source file. - The idea is that even though this is a somewhat odd API, its the form which many tools can most easily use (for example, by interposing with the compiler). Also, switch index-test's -ast-from-source to use this entry point, and provide a -arg command line argument which can be used to test that the command line arguments are handled correctly. llvm-svn: 90288
-
- Dec 01, 2009
-
-
Daniel Dunbar authored
llvm-svn: 90263
-
Rafael Espindola authored
Exit the command line into <built-in> instead of going directly from the command line to the input file. We passed <built-in> on the way in, so we should pass it again on the way out. llvm-svn: 90250
-
Daniel Dunbar authored
Also, add an -ast-from-source option to index-test which allows index-test to run on source files directly. llvm-svn: 90223
-
Douglas Gregor authored
llvm-svn: 90209
-
Daniel Dunbar authored
where it belongs. llvm-svn: 90198
-
- Nov 30, 2009
-
-
Daniel Dunbar authored
Add CodeGenOptions::{SoftFloat,FloatABI}, and update the all the (far too many) places to use this instead of using the backend -soft-float and -float-abi= options. llvm-svn: 90127
-
Daniel Dunbar authored
Add TextDiagnosticBuffer::FlushDiagnostics, for forwarding the buffered diagnostics to a different diagnostics engine. llvm-svn: 90125
-
Daniel Dunbar authored
llvm-svn: 90118
-
Daniel Dunbar authored
llvm-svn: 90117
-
Chris Lattner authored
stat a file but where mmaping it fails. In this case, we emit an error like: t.c:1:10: fatal error: error opening file '../../foo.h' instead of "cannot find file". llvm-svn: 90110
-
- Nov 29, 2009
-
-
Daniel Dunbar authored
llvm-svn: 90091
-
Kovarththanan Rajaratnam authored
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
-
Alexis Hunt authored
function names outside of templates - they'll probably cause some damage there as they're largely untested. llvm-svn: 90064
-
Daniel Dunbar authored
Move LLVM backend options to explicit clang-cc / clang -cc1 options, which we then manually pass to the command line library; eventually the latter grossness should be fixed by a real API when creating the target machine. llvm-svn: 90063
-
Daniel Dunbar authored
- This is the last major parsing piece, main FIXMEs remain. llvm-svn: 90059
-