aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/VirtualFileSystem.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2016-06-12 19:02:34 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2016-06-12 19:02:34 +0000
commitea76b6fde2a02522d81e8702acb7bd02fca17258 (patch)
tree0ee87519e6804975eada8025c352e52290ceacdb /clang/lib/Basic/VirtualFileSystem.cpp
parent5bf7fd81857c643fc3411cfc0074d9052af1b9a9 (diff)
downloadllvm-ea76b6fde2a02522d81e8702acb7bd02fca17258.zip
llvm-ea76b6fde2a02522d81e8702acb7bd02fca17258.tar.gz
llvm-ea76b6fde2a02522d81e8702acb7bd02fca17258.tar.bz2
Use 'auto' to avoid implicit copies.
td_type is std::pair<std::string, std::string>, but the map returns elements of std::pair<const std::string, std::string>. In well-designed languages like C++ that yields an implicit copy perfectly hidden by constref's lifetime extension. Just use auto, the typedef obscured the real type anyways. Found with a little help from clang-tidy's performance-implicit-cast-in-loop. llvm-svn: 272519
Diffstat (limited to 'clang/lib/Basic/VirtualFileSystem.cpp')
0 files changed, 0 insertions, 0 deletions