mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-01 07:30:43 +03:00
Merge pull request #1649 from JohanEngelen/warningfix1
Fix a few clang warnings [NFC]
This commit is contained in:
commit
dbc9733a05
5 changed files with 6 additions and 18 deletions
|
@ -34,13 +34,6 @@
|
|||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
static bool endsWith(const std::string &str, const std::string &end) {
|
||||
return (str.length() >= end.length() &&
|
||||
std::equal(end.rbegin(), end.rend(), str.rbegin()));
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
static void CreateDirectoryOnDisk(llvm::StringRef fileName) {
|
||||
auto dir = llvm::sys::path::parent_path(fileName);
|
||||
if (!dir.empty() && !llvm::sys::fs::exists(dir)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue