aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/InlineFunction.cpp
diff options
context:
space:
mode:
authorBjörn Schäpers <bjoern@hazardy.de>2021-01-20 21:48:19 +0100
committerBjörn Schäpers <bjoern@hazardy.de>2021-01-25 21:02:40 +0100
commit7c8b9c102f38a4d29ac56ef7bd1da003f03900d0 (patch)
tree77dc3788b513fa0e75cdba64e200b61d597a3c91 /llvm/lib/Transforms/Utils/InlineFunction.cpp
parent6cb288797122ad931aba91e05030c24984e1031c (diff)
downloadllvm-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