- Mar 17, 2010
-
-
Douglas Gregor authored
ASTUnit::LoadFromCompilerInvocation() fails to create target information. llvm-svn: 98697
-
- Mar 16, 2010
-
-
Douglas Gregor authored
llvm-svn: 98655
-
Douglas Gregor authored
and start simplifying the interfaces in SourceManager that can fail. llvm-svn: 98594
-
- Mar 05, 2010
-
-
Douglas Gregor authored
The Windows build is just too weird; there's no real cost to doing the concurrency checks for ASTUnit in all builds llvm-svn: 97840
-
Douglas Gregor authored
llvm-svn: 97835
-
Douglas Gregor authored
llvm-svn: 97831
-
- Feb 27, 2010
-
-
Douglas Gregor authored
copy the source buffers provided rather than referencing them directly, so that the caller can free those buffers immediately after calling clang_createTranslationUnitFromSourceFile(). Otherwise, we risk hitting those buffers later (when building source ranges, forming diagnostics, etc.). llvm-svn: 97296
-
- Feb 19, 2010
-
-
Douglas Gregor authored
the ASTUnit itself is destroyed. Fixes <rdar://problem/7649385>. llvm-svn: 96628
-
- Feb 18, 2010
-
-
Douglas Gregor authored
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
-
- Feb 16, 2010
-
-
Daniel Dunbar authored
llvm-svn: 96316
-
Daniel Dunbar authored
llvm-svn: 96315
-
- Jan 30, 2010
-
-
Daniel Dunbar authored
live as long as the ASTUnit. This is useful for clients which want to maintain pointers to the LangOptions object which ultimately lives in the CompilerInvocation, although it would be nice to make all of this ownership stuff more explicit and obvious. llvm-svn: 94924
-
Benjamin Kramer authored
PCHReader doesn't implement classof so dyn_casting it will do really weird stuff. Use a static_cast instead. I don't know if this hack is the right fix. Doug, please take a look. llvm-svn: 94895
-
- Jan 25, 2010
-
-
Daniel Dunbar authored
line -- they may be remapped (fake) files. This is useful for testing parsing entirely from memory. llvm-svn: 94395
-
- Jan 23, 2010
-
-
Douglas Gregor authored
translation units that include unsaved files. llvm-svn: 94258
-
- Dec 15, 2009
-
-
Daniel Dunbar authored
resources (e.g., /usr/lib/clang/1.1) to be passed on the command line instead of computed. llvm-svn: 91370
-
- Dec 13, 2009
-
-
Daniel Dunbar authored
Lift builtin-include-path logic out of ASTUnit::LoadFromCommandLine and fix CIndex to pass in the right directory (previously it was using the path to the main executable, which generally is wrong). llvm-svn: 91238
-
Daniel Dunbar authored
llvm-svn: 91237
-
- Dec 08, 2009
-
-
Jeffrey Yasskin authored
llvm-svn: 90822
-
- 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
-
- Dec 03, 2009
-
-
Daniel Dunbar authored
llvm-svn: 90379
-
- Dec 02, 2009
-
-
Daniel Dunbar authored
llvm-svn: 90349
-
Daniel Dunbar authored
llvm-svn: 90348
-
Daniel Dunbar authored
source files. llvm-svn: 90311
-
Daniel Dunbar authored
llvm-svn: 90310
-
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
-
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
-
- Nov 28, 2009
-
-
Benjamin Kramer authored
llvm-svn: 90033
-
- Nov 15, 2009
-
-
Daniel Dunbar authored
- This ended up being hard to factor, sorry for the large diff. - Some post-commit cleanup to come. llvm-svn: 88833
-
- Nov 11, 2009
-
-
Daniel Dunbar authored
the front-end (as far as the preprocessor goes), follow the usual logic of inserting the (original include path) name into the predefines buffer. This pushes the responsibility for handling this to PCH instead of the front-end. In PCH this requires being a little more clever when we diff the predefines buffers. Neither of these solutions are particularly great, I think what we eventually should do is something like gcc where we insert a special marker to indicate the PCH file, but then run the preprocessor as usual. This would be clearer and would allow us to drop the overly clever predefines handling. llvm-svn: 86806
-
Daniel Dunbar authored
llvm-svn: 86775
-
- Oct 19, 2009
-
-
Ted Kremenek authored
alternate DiagnosticClients. To match this API, ASTUnit::LoadFromPCHFile() now takes a corresponding DiagnosticClient* argument as well. The DiagnosticClient object is destroyed when the ASTUnit object is destroyed. The CIndex library now uses this API to create a 'IgnoreDiagnosticsClient' that simply silences diagnostics when using the clang_createTranslationUnitFromSourceFile() function. This fixes <rdar://problem/7312058>. This API can change in the future as we add more flexibility for clients. llvm-svn: 84539
-
Steve Naroff authored
Removing this shared data should enable clang_createTranslationUnit/clang_createTranslationUnitFromSourceFile to be run from multiple threads (related to <rdar://problem/7303432>). llvm-svn: 84499
-
- Oct 18, 2009
-
-
Benjamin Kramer authored
llvm-svn: 84415
-
- Oct 17, 2009
-
-
Ted Kremenek authored
its own BumpPtrAllocator to allocate ASTs. Change clang_createTranslationUnit (CIndex) to pass 'UseBumpPtrAllocator = true' to ASTUnit::LoadFromPCHFile(). llvm-svn: 84296
-
- Oct 16, 2009
-
-
Douglas Gregor authored
header or not via a new "PCHLevel" field in Decl. We currently use this information to help CIndex filter out declarations that came from a precompiled header (rather than from an AST file). Further down the road, it can be used to help implement multi-level precompiled headers. llvm-svn: 84267
-
Steve Naroff authored
llvm-svn: 84208
-
- Sep 21, 2009
-
-
Daniel Dunbar authored
- It isn't really clear what to do with the preprocessor here, but this is more sensible. llvm-svn: 82431
-
Daniel Dunbar authored
llvm-svn: 82430
-