[llvm-branch-commits] [clang-tools-extra] b83b7d0 - [clangd] NFC, avoid potential ODR violation.
Haojian Wu via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Jan 8 04:38:03 PST 2021
Author: Haojian Wu
Date: 2021-01-08T13:29:11+01:00
New Revision: b83b7d08730e2b67d911653f59091b1b311c0213
URL: https://github.com/llvm/llvm-project/commit/b83b7d08730e2b67d911653f59091b1b311c0213
DIFF: https://github.com/llvm/llvm-project/commit/b83b7d08730e2b67d911653f59091b1b311c0213.diff
LOG: [clangd] NFC, avoid potential ODR violation.
Added:
Modified:
clang-tools-extra/clangd/index/Merge.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/index/Merge.cpp b/clang-tools-extra/clangd/index/Merge.cpp
index 29174ff0d354..0dd0d9e01518 100644
--- a/clang-tools-extra/clangd/index/Merge.cpp
+++ b/clang-tools-extra/clangd/index/Merge.cpp
@@ -164,7 +164,7 @@ void MergedIndex::relations(
// Returns true if \p L is (strictly) preferred to \p R (e.g. by file paths). If
// neither is preferred, this returns false.
-bool prefer(const SymbolLocation &L, const SymbolLocation &R) {
+static bool prefer(const SymbolLocation &L, const SymbolLocation &R) {
if (!L)
return false;
if (!R)
More information about the llvm-branch-commits
mailing list