From d610cf3793a34739a71d612b6bc1bab0b4d5cec7 Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Mon, 5 Aug 2019 14:11:35 +0200 Subject: [PATCH] Clang: Sort file path ids We will move that code to an other place where we will implement the tests for the sorting. Change-Id: Ia6e868466e2c43acdc0f5a8ed73b32cfc24613c1 Reviewed-by: Tim Jenssen --- src/libs/clangsupport/filepathcachinginterface.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libs/clangsupport/filepathcachinginterface.h b/src/libs/clangsupport/filepathcachinginterface.h index 098fd39ca92..53cdc3515b9 100644 --- a/src/libs/clangsupport/filepathcachinginterface.h +++ b/src/libs/clangsupport/filepathcachinginterface.h @@ -56,6 +56,8 @@ public: std::back_inserter(filePathIds), [&] (const auto &filePath) { return this->filePathId(filePath); }); + std::sort(filePathIds.begin(), filePathIds.end()); + return filePathIds; }