[all-commits] [llvm/llvm-project] df4da5: [ADT] Add drop_end.
Marek Kurdej via All-commits
all-commits at lists.llvm.org
Mon Mar 21 01:43:26 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: df4da5f37de30b0dc03b0f790b2100ccce410d08
https://github.com/llvm/llvm-project/commit/df4da5f37de30b0dc03b0f790b2100ccce410d08
Author: Marek Kurdej <marek.kurdej+llvm.org at gmail.com>
Date: 2022-03-21 (Mon, 21 Mar 2022)
Changed paths:
M llvm/include/llvm/ADT/STLExtras.h
M llvm/unittests/ADT/STLExtrasTest.cpp
Log Message:
-----------
[ADT] Add drop_end.
This patch adds drop_end that is analogical to drop_begin.
It tries to fill the functional gap where one could drop first elements but not the last ones.
The need for it came in when refactoring clang-format.
Reviewed By: dblaikie
Differential Revision: https://reviews.llvm.org/D122009
More information about the All-commits
mailing list