summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorLuke Cheeseman <luke.cheeseman@arm.com>2019-09-13 13:15:35 +0000
committerLuke Cheeseman <luke.cheeseman@arm.com>2019-09-13 13:15:35 +0000
commitab9acda026e4beee458a953f02fd8c342c89ad56 (patch)
tree99b131eab5ded7066c105a0d57f6b4dda5c89bb7 /clang/unittests/Format/FormatTest.cpp
parentd48ea5da94165dbaba14b1281b74994fe970a7e0 (diff)
downloadbcm5719-llvm-ab9acda026e4beee458a953f02fd8c342c89ad56.tar.gz
bcm5719-llvm-ab9acda026e4beee458a953f02fd8c342c89ad56.zip
Fix depfile name construction
- When using -o, the provided filename is using for constructing the depfile name (when -MMD is passed). - The logic looks for the rightmost '.' character and replaces what comes after with 'd'. - This works incorrectly when the filename has no extension and the directories have '.' in them (e.g. out.dir/test) - This replaces the funciton to just llvm::sys::path functionality Differential Revision: https://reviews.llvm.org/D67542 llvm-svn: 371853
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud