aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Tooling/CompilationDatabaseTest.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2017-04-26 22:45:04 +0000
committerRui Ueyama <ruiu@google.com>2017-04-26 22:45:04 +0000
commit87b30ac9d369ff8b0d553e6d2070a4fa686c67bd (patch)
treeb7229433f0047d5793dc45a7d903bf036d3375e3 /clang/unittests/Tooling/CompilationDatabaseTest.cpp
parent1b07d689c3180decabb4f267223db4fd1524cf37 (diff)
downloadllvm-87b30ac9d369ff8b0d553e6d2070a4fa686c67bd.zip
llvm-87b30ac9d369ff8b0d553e6d2070a4fa686c67bd.tar.gz
llvm-87b30ac9d369ff8b0d553e6d2070a4fa686c67bd.tar.bz2
Replace HashString algorithm with xxHash64
The previous algorithm processed one character at a time, which is very painful on a modern CPU. Replace it with xxHash64, which both already exists in the codebase and is fairly fast. Patch from Scott Smith! Differential Revision: https://reviews.llvm.org/D32509 llvm-svn: 301487
Diffstat (limited to 'clang/unittests/Tooling/CompilationDatabaseTest.cpp')
-rw-r--r--clang/unittests/Tooling/CompilationDatabaseTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/unittests/Tooling/CompilationDatabaseTest.cpp b/clang/unittests/Tooling/CompilationDatabaseTest.cpp
index 1a6fffe..5d4ed20 100644
--- a/clang/unittests/Tooling/CompilationDatabaseTest.cpp
+++ b/clang/unittests/Tooling/CompilationDatabaseTest.cpp
@@ -81,10 +81,10 @@ TEST(JSONCompilationDatabase, GetAllFiles) {
std::vector<std::string> expected_files;
SmallString<16> PathStorage;
- llvm::sys::path::native("//net/dir/file1", PathStorage);
- expected_files.push_back(PathStorage.str());
llvm::sys::path::native("//net/dir/file2", PathStorage);
expected_files.push_back(PathStorage.str());
+ llvm::sys::path::native("//net/dir/file1", PathStorage);
+ expected_files.push_back(PathStorage.str());
EXPECT_EQ(expected_files,
getAllFiles("[{\"directory\":\"//net/dir\","
"\"command\":\"command\","