This is an archive of the discontinued LLVM Phabricator instance.

libcxx: Rename .hpp files in libcxx/test/support to .h
ClosedPublic

Authored by thakis on Aug 12 2019, 12:38 PM.

Details

Summary

LLVM uses .h as its extension for header files.

Files renamed using:

for f in libcxx/test/support/*.hpp; do git mv $f ${f%.hpp}.h; don

References to the files updated using:

for f in $(git diff master | grep 'rename from' | cut -f 3 -d ' '); do
    a=$(basename $f);
    echo $a;
    rg -l $a libcxx | xargs sed -i '' "s/$a/${a%.hpp}.h/";
done

HPP include guards updated manually using:

for f in $(git diff master | grep 'rename from' | cut -f 3 -d ' '); do
  echo ${f%.hpp}.h ;
done | xargs mvim

Diff Detail

Repository
rL LLVM

Event Timeline

thakis created this revision.Aug 12 2019, 12:38 PM

EricWF: ping. This patch looks scary in Phab, but if you click on "Download raw diff" it's not that large.

EricWF accepted this revision.Aug 20 2019, 4:58 PM
This revision is now accepted and ready to land.Aug 20 2019, 4:58 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptAug 20 2019, 5:17 PM
libcxx/trunk/test/support/variant_test_helpers.h