aboutsummaryrefslogtreecommitdiff
path: root/clang/tools/libclang/CXCompilationDatabase.cpp
AgeCommit message (Collapse)AuthorFilesLines
2017-05-23[Tooling][libclang] Remove unused CompilationDatabase::MappedSourcesKrasimir Georgiev1-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
2016-12-17[libclang] Remove the 'extern "C"' blocks from the implementation files.Argyrios Kyrtzidis1-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
2015-09-11[tooling] In CompileCommand, Expose the 'file' that was associated with the ↵Argyrios Kyrtzidis1-0/+10
command. llvm-svn: 247468
2014-08-08CompilationDatabase: Sure-up ownership of compilation databases using ↵David Blaikie1-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
2014-06-08[C++11] Use 'nullptr'. Tools edition.Craig Topper1-4/+4
llvm-svn: 210422
2014-03-20Tooling: Move heavyweight vectors around instead of copying.Benjamin Kramer1-8/+6
While there convert to range-based for loops. No functionality change. llvm-svn: 204338
2013-12-05Fix a tranche of comment, test and doc typosAlp Toker1-1/+1
llvm-svn: 196510
2013-11-13Add an optional mapping from source paths to source contents.Manuel Klimek1-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
2013-08-19Use cstdio instead of stdio.hDmitri Gribenko1-1/+1
llvm-svn: 188678
2013-08-18libclang: cleanup unused includes in public headerDmitri Gribenko1-0/+1
llvm-svn: 188625
2013-02-03libclang: remove 'using namespace cxstring'Dmitri Gribenko1-1/+0
llvm-svn: 174285
2013-02-02libclang: introduce cxstring::{createRef,createDup} for C stringsDmitri Gribenko1-2/+2
Also migrate all clients from the old API. llvm-svn: 174238
2013-02-01libclang: introduce cxstring::createNull()Dmitri Gribenko1-3/+3
llvm-svn: 174173
2012-12-04Sort #include lines for tools/...Chandler Carruth1-1/+1
Completely automated with sort_includes.py llvm-svn: 169240
2012-12-04[libclang] Avoid copying the CompileCommand related strings when wrapping ↵Argyrios Kyrtzidis1-2/+2
them to a CXString. llvm-svn: 169227
2012-12-04Introduce CompilationDatabase::getAllCompileCommands() that returns allArgyrios Kyrtzidis1-0/+11
compile commands of the database and expose it via the libclang API. llvm-svn: 169226
2012-07-03[libclang] CompilationDatabase naming and comment fixesArnaud A. de Grandmaison1-12/+11
llvm-svn: 159682
2012-06-30[libclang] Make implementation filename match the header's name for ↵Arnaud A. de Grandmaison1-0/+130
CXCompilationDatabase llvm-svn: 159493