aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorMark de Wever <koraq@xs4all.nl>2021-09-26 15:47:42 +0200
committerMark de Wever <koraq@xs4all.nl>2022-04-09 09:35:48 +0200
commit889302292bf6607a6606a771bb2bf0ce919e80bc (patch)
treebdf5c12db78b4b8fcf09d832fdc980f259969b6e /clang/lib/Frontend/CompilerInvocation.cpp
parentca68038d12a23fa7ebb2b1ccbda93c321635e6bf (diff)
downloadllvm-889302292bf6607a6606a771bb2bf0ce919e80bc.zip
llvm-889302292bf6607a6606a771bb2bf0ce919e80bc.tar.gz
llvm-889302292bf6607a6606a771bb2bf0ce919e80bc.tar.bz2
[libc++][format][3/6] Adds a __container_buffer.
Instead of writing every character directly into the container by using a `back_insert_iterator` the data is buffered in an `array`. This buffer is then inserted to the container by calling its `insert` member function. Since there's no guarantee every container's `insert` behaves properly containers need to opt-in to this behaviour. The appropriate standard containers opt-in to this behaviour. This change improves the performance of the format functions that use a `back_insert_iterator`. Depends on D110495 Reviewed By: ldionne, vitaut, #libc Differential Revision: https://reviews.llvm.org/D110497
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions