Author: Björn Schäpers Date: 2026-03-29T23:59:13+02:00 New Revision: f10509133f783d297e531b894f72e4a62f08f206
URL: https://github.com/llvm/llvm-project/commit/f10509133f783d297e531b894f72e4a62f08f206 DIFF: https://github.com/llvm/llvm-project/commit/f10509133f783d297e531b894f72e4a62f08f206.diff LOG: [clang-format][NFC] Fix warning llvm-project/clang/lib/Format/UnwrappedLineFormatter.cpp:725:11: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers] 725 | static_cast<decltype(N)>(Distance) <= N) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Added: Modified: clang/lib/Format/UnwrappedLineFormatter.cpp Removed: ################################################################################ diff --git a/clang/lib/Format/UnwrappedLineFormatter.cpp b/clang/lib/Format/UnwrappedLineFormatter.cpp index 492e0901385b4..79d4217f78a36 100644 --- a/clang/lib/Format/UnwrappedLineFormatter.cpp +++ b/clang/lib/Format/UnwrappedLineFormatter.cpp @@ -722,7 +722,7 @@ class LineJoiner { const auto N = MergedLines + LinesToBeMerged; // Check if there is even a line after the inner result. if (auto Distance = std::distance(I, E); - static_cast<decltype(N)>(Distance) <= N) { + static_cast<std::remove_const_t<decltype(N)>>(Distance) <= N) { return 0; } // Check that the line after the inner result starts with a closing brace _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
