[llvm-branch-commits] [clang-tools-extra] [clang-doc][nfc] Use static declarations to enforce internal linkage (PR #198072)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri May 15 23:58:01 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang-tools-extra
Author: Paul Kirth (ilovepi)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/198072.diff
1 Files Affected:
- (modified) clang-tools-extra/clang-doc/YAMLGenerator.cpp (+2-2)
``````````diff
diff --git a/clang-tools-extra/clang-doc/YAMLGenerator.cpp b/clang-tools-extra/clang-doc/YAMLGenerator.cpp
index da48126a4bf0d..83869b7a1bc8c 100644
--- a/clang-tools-extra/clang-doc/YAMLGenerator.cpp
+++ b/clang-tools-extra/clang-doc/YAMLGenerator.cpp
@@ -34,7 +34,7 @@ LLVM_YAML_IS_SEQUENCE_VECTOR(OwnedPtr<CommentInfo>)
namespace llvm {
template <typename T>
-bool operator==(const llvm::simple_ilist<T> &LHS,
+static bool operator==(const llvm::simple_ilist<T> &LHS,
const llvm::simple_ilist<T> &RHS) {
auto LIt = LHS.begin(), LEnd = LHS.end();
auto RIt = RHS.begin(), REnd = RHS.end();
@@ -46,7 +46,7 @@ bool operator==(const llvm::simple_ilist<T> &LHS,
}
template <typename T>
-bool operator!=(const llvm::simple_ilist<T> &LHS,
+static bool operator!=(const llvm::simple_ilist<T> &LHS,
const llvm::simple_ilist<T> &RHS) {
return !(LHS == RHS);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/198072
More information about the llvm-branch-commits
mailing list