summaryrefslogtreecommitdiff
path: root/src/tools/clangrefactoringbackend/source/sourcerangeextractor.cpp
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@qt.io>2017-11-16 17:48:53 +0100
committerMarco Bubke <marco.bubke@qt.io>2017-11-23 11:55:15 +0000
commita15250051d711df826b1e07990e144f1cea0971d (patch)
treeb4280581e7e646765e5a38d17795d594d9635244 /src/tools/clangrefactoringbackend/source/sourcerangeextractor.cpp
parentbb2f9574b4a5f3db75c1ba506f2f394eeb08b16d (diff)
downloadqt-creator-a15250051d711df826b1e07990e144f1cea0971d.tar.gz
Clang: Handle native file in the file cache
Different types are introduced for normalized and native file path. So the compiler is warning you if you try the wrong format. Change-Id: I1da0686b142cbf9bb7578468c2b50f90a94cebf9 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src/tools/clangrefactoringbackend/source/sourcerangeextractor.cpp')
-rw-r--r--src/tools/clangrefactoringbackend/source/sourcerangeextractor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/clangrefactoringbackend/source/sourcerangeextractor.cpp b/src/tools/clangrefactoringbackend/source/sourcerangeextractor.cpp
index d275cfe4e2..15dde240a4 100644
--- a/src/tools/clangrefactoringbackend/source/sourcerangeextractor.cpp
+++ b/src/tools/clangrefactoringbackend/source/sourcerangeextractor.cpp
@@ -139,7 +139,7 @@ FilePathId SourceRangeExtractor::findFileId(clang::FileID fileId, const clang::F
}
auto filePath = absolutePath(fileEntry->getName());
- return filePathCache.filePathId(fromNativePath(filePath));
+ return filePathCache.filePathId(FilePath::fromNativeFilePath(filePath));
}
void SourceRangeExtractor::addSourceRange(const clang::SourceRange &sourceRange)