diff options
author | Björn Schäpers <bjoern@hazardy.de> | 2021-01-20 21:48:19 +0100 |
---|---|---|
committer | Björn Schäpers <bjoern@hazardy.de> | 2021-01-25 21:02:40 +0100 |
commit | 7c8b9c102f38a4d29ac56ef7bd1da003f03900d0 (patch) | |
tree | 77dc3788b513fa0e75cdba64e200b61d597a3c91 /llvm/lib/Transforms/Utils/InlineFunction.cpp | |
parent | 6cb288797122ad931aba91e05030c24984e1031c (diff) | |
download | llvm-7c8b9c102f38a4d29ac56ef7bd1da003f03900d0.zip llvm-7c8b9c102f38a4d29ac56ef7bd1da003f03900d0.tar.gz llvm-7c8b9c102f38a4d29ac56ef7bd1da003f03900d0.tar.bz2 |
[clang-format] [NFC] Restructure getLineCommentIndentPrefix
When sorting the known prefixes after length the if in the loop will hit
at most once, so we can return from there.
Also replace the inner loop with an algorithm, that makes it more
readable.
Differential Revision: https://reviews.llvm.org/D95081
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
0 files changed, 0 insertions, 0 deletions