Author: Paul Kirth
Date: 2026-05-22T13:32:44-07:00
New Revision: 90d4ed570dbc685120fb5824efd8eb9b568ac5ff

URL: 
https://github.com/llvm/llvm-project/commit/90d4ed570dbc685120fb5824efd8eb9b568ac5ff
DIFF: 
https://github.com/llvm/llvm-project/commit/90d4ed570dbc685120fb5824efd8eb9b568ac5ff.diff

LOG: [clang-doc][nfc] Use static declarations to enforce internal linkage 
(#198072)

Added: 
    

Modified: 
    clang-tools-extra/clang-doc/YAMLGenerator.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clang-doc/YAMLGenerator.cpp 
b/clang-tools-extra/clang-doc/YAMLGenerator.cpp
index 88102e9c51d5f..3d2bb97335b6f 100644
--- a/clang-tools-extra/clang-doc/YAMLGenerator.cpp
+++ b/clang-tools-extra/clang-doc/YAMLGenerator.cpp
@@ -33,8 +33,8 @@ LLVM_YAML_IS_SEQUENCE_VECTOR(BaseRecordInfo)
 namespace llvm {
 
 template <typename T>
-bool operator==(const llvm::simple_ilist<T> &LHS,
-                const llvm::simple_ilist<T> &RHS) {
+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();
   for (; LIt != LEnd && RIt != REnd; ++LIt, ++RIt) {
@@ -45,8 +45,8 @@ bool operator==(const llvm::simple_ilist<T> &LHS,
 }
 
 template <typename T>
-bool operator!=(const llvm::simple_ilist<T> &LHS,
-                const llvm::simple_ilist<T> &RHS) {
+static bool operator!=(const llvm::simple_ilist<T> &LHS,
+                       const llvm::simple_ilist<T> &RHS) {
   return !(LHS == RHS);
 }
 


        
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to