forked from qt-creator/qt-creator
Clang: Compile against llvm/clang 4.0
Task-number: QTCREATORBUG-17692 Change-Id: I2781129543c09aa64938c9570896d592b57a753c Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -82,7 +82,11 @@ void RefactoringCompilationDatabase::addFile(const std::string &directory,
|
||||
const std::string &fileName,
|
||||
const std::vector<std::string> &commandLine)
|
||||
{
|
||||
#if LLVM_VERSION_MAJOR >= 4
|
||||
compileCommands.emplace_back(directory, fileName, commandLine, nullptr);
|
||||
#else
|
||||
compileCommands.emplace_back(directory, fileName, commandLine);
|
||||
#endif
|
||||
}
|
||||
|
||||
} // namespace ClangBackEnd
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
namespace ClangBackEnd {
|
||||
|
||||
inline
|
||||
llvm::SmallString<256> absolutePath(const char *path)
|
||||
llvm::SmallString<256> absolutePath(const llvm::StringRef &path)
|
||||
{
|
||||
llvm::SmallString<256> absolutePath(path);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user