summaryrefslogtreecommitdiffstats
path: root/clang/tools
Commit message (Collapse)AuthorAgeFilesLines
* Add c++-analyzer symlink (which is used by scan-build)Ted Kremenek2009-12-221-0/+1
| | | | llvm-svn: 91937
* Extend code-completion results with the type of each resultDouglas Gregor2009-12-182-0/+5
| | | | llvm-svn: 91702
* Change clang_codeComplete API to return the results in a structure onDouglas Gregor2009-12-183-20/+62
| | | | | | | | 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
* Test for errors during fread() inside c-index-test and handle themChandler Carruth2009-12-171-1/+9
| | | | | | appropriately. This also silences some pedantic GCC warnings. llvm-svn: 91596
* Compute the right extension for preprocessed Objective-C++ files.Ted Kremenek2009-12-161-1/+1
| | | | llvm-svn: 91547
* Fix pretty stack traces.Daniel Dunbar2009-12-161-2/+0
| | | | llvm-svn: 91537
* Add logic for computing preprocessor file extensions for C++ files.Ted Kremenek2009-12-161-0/+2
| | | | llvm-svn: 91505
* scan-build/ccc-analyzer: start analyzing C++ FTW.Ted Kremenek2009-12-152-30/+67
| | | | llvm-svn: 91398
* Add -resource-dir to clang -cc1, this allows the base directory for compilerDaniel Dunbar2009-12-152-7/+6
| | | | | | | resources (e.g., /usr/lib/clang/1.1) to be passed on the command line instead of computed. llvm-svn: 91370
* Lift builtin-include-path logic out of ASTUnit::LoadFromCommandLine and fix ↵Daniel Dunbar2009-12-132-12/+34
| | | | | | 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: Move builtin-include-path logic out of ↵Daniel Dunbar2009-12-131-9/+12
| | | | | | CompilerInvocation::CreateFromArgs. llvm-svn: 91237
* Un-namespace-qualify llvm_unreachable. It's a macro, so the qualification gaveJeffrey Yasskin2009-12-121-1/+1
| | | | | | no extra safety anyway. llvm-svn: 91207
* Remove clang-cc tool, it has joined in unholy union with clang.Daniel Dunbar2009-12-125-404/+1
| | | | | | - tools/driver will be renamed to tools/clang at some point. llvm-svn: 91195
* scan-build: when the build command is 'make', override the CC and CXX ↵Ted Kremenek2009-12-111-0/+2
| | | | | | options by passing them as arguments to make. This fixes <rdar://problem/6790224>. llvm-svn: 91179
* Remove more old references to clang-cc.Ted Kremenek2009-12-111-3/+3
| | | | llvm-svn: 91177
* Convert scan-build and ccc-analyzer over to using 'clang -cc1' instead of ↵Ted Kremenek2009-12-112-74/+29
| | | | | | using 'clang-cc'. llvm-svn: 91172
* Implement clang -cc1.Daniel Dunbar2009-12-113-14/+342
| | | | | | - I apologize for the link time horrors, my goal is to kill off clang-cc in fairly short order. llvm-svn: 91170
* clang_getCompletionChunkText() will treat optional strings as empty text blocksDouglas Gregor2009-12-101-1/+1
| | | | llvm-svn: 91072
* Remove several .c_str() to be forward-compatible with StringRef.Jeffrey Yasskin2009-12-081-2/+2
| | | | llvm-svn: 90822
* Enable '-analyzer-opt-analyze-nested-blocks' by default for testing.Ted Kremenek2009-12-071-0/+1
| | | | llvm-svn: 90812
* Document that CompilerInvocation::createDiagnostics keeps a reference to the ↵Daniel Dunbar2009-12-062-2/+4
| | | | | | DiagnosticOptions, and update callers to make sure they don't pass in a temporary. llvm-svn: 90704
* Remove 'LangOpts' from Diagnostic (added in ↵Steve Naroff2009-12-051-2/+0
| | | | | | | | | | 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
* CIndex: For the time being, don't return translation units if we encounter ↵Daniel Dunbar2009-12-051-4/+14
| | | | | | | | | 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
* Integrate the following from the 'objective-rewrite' branch:Steve Naroff2009-12-051-0/+2
| | | | | | | | | | | | 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
* Add gcc's -no-canonical-prefixes option to clang.Rafael Espindola2009-12-041-3/+14
| | | | llvm-svn: 90577
* ASTUnit/CIndex: Explicitly track the top-level decls when using an ASTUnit madeDaniel Dunbar2009-12-041-1/+11
| | | | | | | | 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
* Kill off one last exit() call.Daniel Dunbar2009-12-031-1/+1
| | | | llvm-svn: 90439
* clang-cc: Move to CompilerInvocation based command line parsing.Daniel Dunbar2009-12-034-1437/+3
| | | | llvm-svn: 90426
* clang-cc: Honor -help and -version when using new style option parsing.Daniel Dunbar2009-12-031-0/+16
| | | | llvm-svn: 90422
* Update test and CIndex to use -FOO BAR form for ↵Daniel Dunbar2009-12-031-3/+5
| | | | | | -{remap-file,code-completion-at}. llvm-svn: 90416
* Add clang -cc1 -load option.Daniel Dunbar2009-12-031-1/+12
| | | | llvm-svn: 90413
* Switch clang_createTranslationUnitFromSourceFile to use ↵Daniel Dunbar2009-12-033-3/+48
| | | | | | | | | | | | | | | | | | | 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
* Fix ASTUnit to allows require a (persistent) Diagnostic object be provided; ↵Daniel Dunbar2009-12-032-33/+28
| | | | | | propogate and simplify. llvm-svn: 90379
* Normalize CIndex/c-index-test/index-test link lines in the hopes it will fixDaniel Dunbar2009-12-026-9/+22
| | | | | | | | *something*. - We really need to fix how LLVM's build systems manage linking. Pretty-please-someone-else-do-this? :) llvm-svn: 90350
* this also depends on libDriver. this almost fixes the build problems of ↵Nuno Lopes2009-12-021-1/+1
| | | | | | c-index-test llvm-svn: 90342
* Change rtti/Rtti to RTTI, as it is an acronym.Mike Stump2009-12-021-2/+2
| | | | llvm-svn: 90334
* Extend the CIndex code-completion API to perform code completionDouglas Gregor2009-12-022-2/+137
| | | | | | | involving unsaved files, using the -remap-file= functionality recently added to clang-cc. llvm-svn: 90314
* Fix relative ordering of Analyis library.Daniel Dunbar2009-12-022-3/+3
| | | | llvm-svn: 90312
* Introduce a new clang-cc option Douglas Gregor2009-12-021-0/+18
| | | | | | | | | | | | | | | | | | -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
* libFrontend depends on libDriver now.Zhongxing Xu2009-12-021-1/+1
| | | | llvm-svn: 90295
* Add ASTUnit::LoadFromCommandLine, which creates an ASTUnit out of a list ofDaniel Dunbar2009-12-021-11/+13
| | | | | | | | | | | | | | (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
* fix build on linuxNuno Lopes2009-12-012-2/+2
| | | | llvm-svn: 90229
* Add ASTUnit::LoadFromCompilerInvocation, which does what it says.Daniel Dunbar2009-12-015-3/+41
| | | | | | | Also, add an -ast-from-source option to index-test which allows index-test to run on source files directly. llvm-svn: 90223
* Tuck away scan-build related files into tools/scan-buildKovarththanan Rajaratnam2009-12-014-0/+2484
| | | | llvm-svn: 90215
* Switch the clang-to-CIndex interface for code-completion to a binary format, ↵Douglas Gregor2009-12-011-89/+19
| | | | | | for a massive speedup llvm-svn: 90209
* CIndex: Normalize formatting some more.Daniel Dunbar2009-12-011-70/+43
| | | | llvm-svn: 90196
* c-index-test: Split "function scanning" behavior into its own "filter" -- itsDaniel Dunbar2009-12-011-68/+63
| | | | | | | | 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
* Add c-index-test -test-load-source, which loads the translation unit from a ↵Daniel Dunbar2009-12-011-1/+36
| | | | | | source file (and other command line arguments). llvm-svn: 90187
* Reindent buffer, switches in particular were totally out of style.Daniel Dunbar2009-11-301-161/+159
| | | | llvm-svn: 90155
* Strip trailing space.Daniel Dunbar2009-11-301-144/+144
| | | | llvm-svn: 90154
OpenPOWER on IntegriCloud