forked from qt-creator/qt-creator
Clang: Use full paths in compilation database for symbol collector
We we FilePath and NativeFilePath so that compiler warns us if we mix them up. Change-Id: I33d7abc7e4e724dff2a9b2b9b23deea8b358ccfd Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -27,6 +27,8 @@
|
||||
|
||||
#include "clang/Tooling/CompilationDatabase.h"
|
||||
|
||||
#include <nativefilepath.h>
|
||||
|
||||
namespace ClangBackEnd {
|
||||
|
||||
|
||||
@@ -39,9 +41,7 @@ public:
|
||||
std::vector<std::string> getAllFiles() const override;
|
||||
std::vector<clang::tooling::CompileCommand> getAllCompileCommands() const override;
|
||||
|
||||
void addFile(const std::string &directory,
|
||||
const std::string &fileName,
|
||||
const std::vector<std::string> &commandLine);
|
||||
void addFile(NativeFilePathView filePath, Utils::SmallStringVector &&commandLine);
|
||||
|
||||
private:
|
||||
std::vector<clang::tooling::CompileCommand> m_compileCommands;
|
||||
|
||||
Reference in New Issue
Block a user