diff options
author | Kirill Bobyrev <kbobyrev@google.com> | 2022-01-26 18:24:37 +0100 |
---|---|---|
committer | Kirill Bobyrev <kbobyrev@google.com> | 2022-01-26 18:24:38 +0100 |
commit | a2fe81f32c3a2772e49cb5555d5978db4e5812a3 (patch) | |
tree | 0786bf40e35f3370e0470934ac4946a7bff42a8a /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp | |
parent | cbd0822f2730e2b0d5f1c44b645609fe9554f58e (diff) | |
download | llvm-a2fe81f32c3a2772e49cb5555d5978db4e5812a3.zip llvm-a2fe81f32c3a2772e49cb5555d5978db4e5812a3.tar.gz llvm-a2fe81f32c3a2772e49cb5555d5978db4e5812a3.tar.bz2 |
[clang] NFC: Use flush() idiomatically
Using both `raw_ostream::flush()` and `raw_ostream::str()` consecutively is
redundant. The alternatives are:
- Use `raw_ostream::str()` without `raw_ostream::flush()`
- Use `raw_ostream::flush()` and then use the destination for `raw_ostream`
writer
The latter is more idiomatic, so the fix resolves this particular case in its
favor.
Reviewed By: kadircet
Differential Revision: https://reviews.llvm.org/D118247
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions