aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/TestModuleFileExtension.cpp
diff options
context:
space:
mode:
authorLogan Smith <logan.r.smith0@gmail.com>2021-12-09 14:52:30 -0800
committerLogan Smith <logan.r.smith0@gmail.com>2021-12-09 16:05:46 -0800
commitad17ea12e70abb05b6984f530618131181be9dad (patch)
tree69953f25b30ce90d338df50b38dd329ab1c123f8 /clang/lib/Frontend/TestModuleFileExtension.cpp
parent715c72b4fbf43d00909ebc9677d59ce8bb24bc23 (diff)
downloadllvm-ad17ea12e70abb05b6984f530618131181be9dad.zip
llvm-ad17ea12e70abb05b6984f530618131181be9dad.tar.gz
llvm-ad17ea12e70abb05b6984f530618131181be9dad.tar.bz2
[NFC][AST] 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