aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/TestModuleFileExtension.cpp
diff options
context:
space:
mode:
authorLogan Smith <logan.r.smith0@gmail.com>2021-12-09 14:51:24 -0800
committerLogan Smith <logan.r.smith0@gmail.com>2021-12-09 16:05:46 -0800
commit715c72b4fbf43d00909ebc9677d59ce8bb24bc23 (patch)
tree79e391957955c90e4350ff9ef078c9808766c475 /clang/lib/Frontend/TestModuleFileExtension.cpp
parent76d3d07845c9340298c3356e698294728c8c21bd (diff)
downloadllvm-715c72b4fbf43d00909ebc9677d59ce8bb24bc23.zip
llvm-715c72b4fbf43d00909ebc9677d59ce8bb24bc23.tar.gz
llvm-715c72b4fbf43d00909ebc9677d59ce8bb24bc23.tar.bz2
[NFC][analyzer] Return underlying strings directly instead of OS.str()
This avoids an unnecessary copy required by 'return OS.str()', allowing instead for NRVO or implicit move. The .str() call (which flushes the stream) is no longer required since 65b13610a5226b84889b923bae884ba395ad084d, which made raw_string_ostream unbuffered by default. Differential Revision: https://reviews.llvm.org/D115374
Diffstat (limited to 'clang/lib/Frontend/TestModuleFileExtension.cpp')
0 files changed, 0 insertions, 0 deletions