| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
llvm-svn: 91937
|
| |
|
|
| |
llvm-svn: 91702
|
| |
|
|
|
|
|
|
| |
the heap, so that clients are not forced to copy the results during
the initial iteration. A separate clang_disposeCodeCompleteResults
function frees the returned results.
llvm-svn: 91690
|
| |
|
|
|
|
| |
appropriately. This also silences some pedantic GCC warnings.
llvm-svn: 91596
|
| |
|
|
| |
llvm-svn: 91547
|
| |
|
|
| |
llvm-svn: 91537
|
| |
|
|
| |
llvm-svn: 91505
|
| |
|
|
| |
llvm-svn: 91398
|
| |
|
|
|
|
|
| |
resources (e.g., /usr/lib/clang/1.1) to be passed on the command line instead of
computed.
llvm-svn: 91370
|
| |
|
|
|
|
| |
CIndex to pass in the right directory (previously it was using the path to the main executable, which generally is wrong).
llvm-svn: 91238
|
| |
|
|
|
|
| |
CompilerInvocation::CreateFromArgs.
llvm-svn: 91237
|
| |
|
|
|
|
| |
no extra safety anyway.
llvm-svn: 91207
|
| |
|
|
|
|
| |
- tools/driver will be renamed to tools/clang at some point.
llvm-svn: 91195
|
| |
|
|
|
|
| |
options by passing them as arguments to make. This fixes <rdar://problem/6790224>.
llvm-svn: 91179
|
| |
|
|
| |
llvm-svn: 91177
|
| |
|
|
|
|
| |
using 'clang-cc'.
llvm-svn: 91172
|
| |
|
|
|
|
| |
- I apologize for the link time horrors, my goal is to kill off clang-cc in fairly short order.
llvm-svn: 91170
|
| |
|
|
| |
llvm-svn: 91072
|
| |
|
|
| |
llvm-svn: 90822
|
| |
|
|
| |
llvm-svn: 90812
|
| |
|
|
|
|
| |
DiagnosticOptions, and update callers to make sure they don't pass in a temporary.
llvm-svn: 90704
|
| |
|
|
|
|
|
|
|
|
| |
http://llvm.org/viewvc/llvm-project?view=rev&revision=90642).
Simply use the 'LangOpts' member already present in TextDiagnosticPrinter.
Sorry for the confusion!
llvm-svn: 90664
|
| |
|
|
|
|
|
|
|
| |
an error during parsing.
- We need to be more careful in the rest of CIndex if we are to handle
possibly-invalid ASTs, and don't have much experience with this yet.
llvm-svn: 90643
|
| |
|
|
|
|
|
|
|
|
|
|
| |
http://llvm.org/viewvc/llvm-project?view=rev&revision=71086
Note - This commit only includes the fix for:
<rdar://problem/6309338> slightly different error message format for Visual Studio.
The fix for <rdar://problem/6845623> from protocol to template. is separate/forthcoming.
llvm-svn: 90642
|
| |
|
|
| |
llvm-svn: 90577
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
llvm-svn: 90439
|
| |
|
|
| |
llvm-svn: 90426
|
| |
|
|
| |
llvm-svn: 90422
|
| |
|
|
|
|
| |
-{remap-file,code-completion-at}.
llvm-svn: 90416
|
| |
|
|
| |
llvm-svn: 90413
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ASTUnit::LoadFromCommandLine.
- This is much faster, as it avoids the overhead of dumping an AST file to disk and reloading it.
- For debugging purposes, there is a clang_setUseExternalASTGeneration hook which can be used to disable this.
On the Sketch Cocoa app, the speedup is pretty nice, especially when using a PCH file while scanning the source:
Wall time to c-index-test all files (no PCH):
Old: 23.4221
New: 12.3884
Wall time to c-index-test all files (with a PCH, and "local" mode):
Old: 10.9233
New: 1.9038
llvm-svn: 90385
|
| |
|
|
|
|
| |
propogate and simplify.
llvm-svn: 90379
|
| |
|
|
|
|
|
|
| |
*something*.
- We really need to fix how LLVM's build systems manage
linking. Pretty-please-someone-else-do-this? :)
llvm-svn: 90350
|
| |
|
|
|
|
| |
c-index-test
llvm-svn: 90342
|
| |
|
|
| |
llvm-svn: 90334
|
| |
|
|
|
|
|
| |
involving unsaved files, using the -remap-file= functionality recently
added to clang-cc.
llvm-svn: 90314
|
| |
|
|
| |
llvm-svn: 90312
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
-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
|
| |
|
|
| |
llvm-svn: 90295
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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
|
| |
|
|
| |
llvm-svn: 90229
|
| |
|
|
|
|
|
| |
Also, add an -ast-from-source option to index-test which allows index-test to
run on source files directly.
llvm-svn: 90223
|
| |
|
|
| |
llvm-svn: 90215
|
| |
|
|
|
|
| |
for a massive speedup
llvm-svn: 90209
|
| |
|
|
| |
llvm-svn: 90196
|
| |
|
|
|
|
|
|
| |
quite slow and doesn't really stress the APIs people should really use.
- I'm not even sure if this mode is still useful given the other scanning mode;
Steve?
llvm-svn: 90193
|
| |
|
|
|
|
| |
source file (and other command line arguments).
llvm-svn: 90187
|
| |
|
|
| |
llvm-svn: 90155
|
| |
|
|
| |
llvm-svn: 90154
|