summaryrefslogtreecommitdiffstats
path: root/clang/tools/libclang/CXCompilationDatabase.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [Tooling][libclang] Remove unused CompilationDatabase::MappedSourcesKrasimir Georgiev2017-05-231-22/+9
| | | | | | | | | | | | | | | | Summary: This field is never assigned to and it's only ever read from libclang. This patch removes it and adapts libclang to return constants. Reviewers: klimek, bkramer Reviewed By: klimek Subscribers: cfe-commits, klimek Differential Revision: https://reviews.llvm.org/D32351 llvm-svn: 303635
* [libclang] Remove the 'extern "C"' blocks from the implementation files.Argyrios Kyrtzidis2016-12-171-4/+0
| | | | | | | These are unnecessary, the declarations already carry the 'extern C' property, and if there is mismatch between declaration and definition then we will get linker errors via libclang.exports. llvm-svn: 290025
* [tooling] In CompileCommand, Expose the 'file' that was associated with the ↵Argyrios Kyrtzidis2015-09-111-0/+10
| | | | | | command. llvm-svn: 247468
* CompilationDatabase: Sure-up ownership of compilation databases using ↵David Blaikie2014-08-081-3/+3
| | | | | | | | | | | | | std::unique_ptr Diving into the memory leaks fixed by r213851 there was one case of a memory leak of a CompilationDatabase due to not properly taking ownership of the result of "CompilationDatabase::autoDetectFromSource". Given that both implementations and callers have been using unique_ptr to own CompilationDatabase objects - make this explicit in the API to reduce the risk of further leaks. llvm-svn: 215215
* [C++11] Use 'nullptr'. Tools edition.Craig Topper2014-06-081-4/+4
| | | | llvm-svn: 210422
* Tooling: Move heavyweight vectors around instead of copying.Benjamin Kramer2014-03-201-8/+6
| | | | | | While there convert to range-based for loops. No functionality change. llvm-svn: 204338
* Fix a tranche of comment, test and doc typosAlp Toker2013-12-051-1/+1
| | | | llvm-svn: 196510
* Add an optional mapping from source paths to source contents.Manuel Klimek2013-11-131-0/+36
| | | | | | | | This allows compilation database implementations for distributed build systems to hand all data to the client to make parsing independent of the file system. llvm-svn: 194571
* Use cstdio instead of stdio.hDmitri Gribenko2013-08-191-1/+1
| | | | llvm-svn: 188678
* libclang: cleanup unused includes in public headerDmitri Gribenko2013-08-181-0/+1
| | | | llvm-svn: 188625
* libclang: remove 'using namespace cxstring'Dmitri Gribenko2013-02-031-1/+0
| | | | llvm-svn: 174285
* libclang: introduce cxstring::{createRef,createDup} for C stringsDmitri Gribenko2013-02-021-2/+2
| | | | | | Also migrate all clients from the old API. llvm-svn: 174238
* libclang: introduce cxstring::createNull()Dmitri Gribenko2013-02-011-3/+3
| | | | llvm-svn: 174173
* Sort #include lines for tools/...Chandler Carruth2012-12-041-1/+1
| | | | | | Completely automated with sort_includes.py llvm-svn: 169240
* [libclang] Avoid copying the CompileCommand related strings when wrapping ↵Argyrios Kyrtzidis2012-12-041-2/+2
| | | | | | them to a CXString. llvm-svn: 169227
* Introduce CompilationDatabase::getAllCompileCommands() that returns allArgyrios Kyrtzidis2012-12-041-0/+11
| | | | | | compile commands of the database and expose it via the libclang API. llvm-svn: 169226
* [libclang] CompilationDatabase naming and comment fixesArnaud A. de Grandmaison2012-07-031-12/+11
| | | | llvm-svn: 159682
* [libclang] Make implementation filename match the header's name for ↵Arnaud A. de Grandmaison2012-06-301-0/+130
CXCompilationDatabase llvm-svn: 159493
OpenPOWER on IntegriCloud