From 251ad5e06b2002ae8e0a0c1b2c03f89356fb55f5 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Tue, 4 Dec 2012 07:26:44 +0000 Subject: Introduce CompilationDatabase::getAllCompileCommands() that returns all compile commands of the database and expose it via the libclang API. llvm-svn: 169226 --- clang/lib/Tooling/CompilationDatabase.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'clang/lib/Tooling/CompilationDatabase.cpp') diff --git a/clang/lib/Tooling/CompilationDatabase.cpp b/clang/lib/Tooling/CompilationDatabase.cpp index 4149cda3787..ebdb96519c4 100644 --- a/clang/lib/Tooling/CompilationDatabase.cpp +++ b/clang/lib/Tooling/CompilationDatabase.cpp @@ -132,6 +132,11 @@ FixedCompilationDatabase::getAllFiles() const { return std::vector(); } +std::vector +FixedCompilationDatabase::getAllCompileCommands() const { + return std::vector(); +} + // This anchor is used to force the linker to link in the generated object file // and thus register the JSONCompilationDatabasePlugin. extern volatile int JSONAnchorSource; -- cgit v1.2.3