aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CommandFlags.cpp
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2021-04-27 12:31:09 -0400
committerNico Weber <thakis@chromium.org>2021-04-27 12:41:39 -0400
commit21da04f701735ecd42f1d43b3f58b708ad382905 (patch)
tree07b551a50d5444b670708883390a84b7e0aaa2d9 /llvm/lib/CodeGen/CommandFlags.cpp
parent4dc6763289a0496f59af28141fff6133ba322a04 (diff)
downloadllvm-21da04f701735ecd42f1d43b3f58b708ad382905.zip
llvm-21da04f701735ecd42f1d43b3f58b708ad382905.tar.gz
llvm-21da04f701735ecd42f1d43b3f58b708ad382905.tar.bz2
[llvm, clang] Remove stdlib includes from .h files without `std::`
Found files not containing `std::` with: INCL="algorithm|array|list|map|memory|queue|set|string|utility|vector|unordered_map|unordered_set" git ls-files llvm/include/llvm | grep '\.h$' | xargs grep -L std:: | \ xargs grep -El "#include <($INCL)>$" > to_process.txt git ls-files clang/include/clang | grep '\.h$' | xargs grep -L std:: | \ xargs grep -El "#include <($INCL)>$" >> to_process.txt Then removed these headers from those files with INCL_ESCAPED="$(echo $INCL|sed 's/|/\\|/g')" cat to_process.txt | xargs sed -i "/^#include <\($INCL_ESCAPED\)>$/d" cat to_process.txt | xargs sed -i '/^$/N;/^\n$/D' No behavior change. Differential Revision: https://reviews.llvm.org/D101378
Diffstat (limited to 'llvm/lib/CodeGen/CommandFlags.cpp')
0 files changed, 0 insertions, 0 deletions