File completion bugfix
authorFrederic Riss <friss@apple.com>
Fri, 31 Aug 2018 23:03:28 +0000 (23:03 +0000)
committerFrederic Riss <friss@apple.com>
Fri, 31 Aug 2018 23:03:28 +0000 (23:03 +0000)
commit78a10a7a9bb2d56a10dabae58ebd488055b1d828
tree7149568a565e38a44e046c84c983c8e2788fdabc
parenta69696dca625cf9aed22988bd1c0d56a752221f6
File completion bugfix

If you tried to complete somwthing like ~/., lldb would come up with a lot
of non-existent filenames by concatenating every exisitng file in the directory
with an initial '.'.

This was due to a workaround for an llvm::fs::path::filename behavior that
was not applied selectively enough.

llvm-svn: 341268
lldb/source/Commands/CommandCompletions.cpp
lldb/unittests/Interpreter/TestCompletion.cpp