Browse Source

Now also getting compile commands for header-files.

merge-requests/37/head
eidheim 11 years ago
parent
commit
ef0183c371
  1. 2
      src/CompileCommands.cc

2
src/CompileCommands.cc

@ -4,6 +4,8 @@ clang::CompileCommands::
CompileCommands(const std::string &filename, CompilationDatabase *db) { CompileCommands(const std::string &filename, CompilationDatabase *db) {
commands_ = commands_ =
clang_CompilationDatabase_getCompileCommands(db->db_, filename.c_str()); clang_CompilationDatabase_getCompileCommands(db->db_, filename.c_str());
if(clang_CompileCommands_getSize(commands_)==0)
commands_ = clang_CompilationDatabase_getAllCompileCommands(db->db_);
} }
clang::CompileCommands:: clang::CompileCommands::

Loading…
Cancel
Save