llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang-tools-extra Author: Aditya Medhane (flash1729) <details> <summary>Changes</summary> These operator== and operator!= templates in YAMLGenerator.cpp were never called. They went in as infrastructure that never got wired up, and a later static cleanup exposed them under -Wunused-template. Remove the dead code. NFC. Part of #<!-- -->202945. --- Full diff: https://github.com/llvm/llvm-project/pull/206309.diff 1 Files Affected: - (modified) clang-tools-extra/clang-doc/YAMLGenerator.cpp (-18) ``````````diff diff --git a/clang-tools-extra/clang-doc/YAMLGenerator.cpp b/clang-tools-extra/clang-doc/YAMLGenerator.cpp index 5a1d822526daa..7ccf526c59e22 100644 --- a/clang-tools-extra/clang-doc/YAMLGenerator.cpp +++ b/clang-tools-extra/clang-doc/YAMLGenerator.cpp @@ -32,24 +32,6 @@ LLVM_YAML_IS_SEQUENCE_VECTOR(BaseRecordInfo) namespace llvm { -template <typename T> -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) { - if (!(*LIt == *RIt)) - return false; - } - return LIt == LEnd && RIt == REnd; -} - -template <typename T> -static bool operator!=(const llvm::simple_ilist<T> &LHS, - const llvm::simple_ilist<T> &RHS) { - return !(LHS == RHS); -} - namespace yaml { // Provide SequenceTraits for ArrayRef<T*> since YAMLTraits only provides it for `````````` </details> https://github.com/llvm/llvm-project/pull/206309 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
