[clangd] NFC, avoid potential ODR violation.
This commit is contained in:
parent
ed23229a64
commit
b83b7d0873
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue