diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2011-01-11 01:21:20 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2011-01-11 01:21:20 +0000 |
commit | e503f89b4b146fc2d3f23d9ed04b4d1f79f3a129 (patch) | |
tree | aed055e0d1bfaaac419db34be0d3921cd56ab63b /clang/lib/StaticAnalyzer/HTMLDiagnostics.cpp | |
parent | 9b6853efd6beb7190238a6d87877531e237e09dc (diff) | |
download | bcm5719-llvm-e503f89b4b146fc2d3f23d9ed04b4d1f79f3a129.tar.gz bcm5719-llvm-e503f89b4b146fc2d3f23d9ed04b4d1f79f3a129.zip |
Replace all uses of PathV1::isDirectory with PathV2::fs::is_directory.
llvm-svn: 123208
Diffstat (limited to 'clang/lib/StaticAnalyzer/HTMLDiagnostics.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/HTMLDiagnostics.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/HTMLDiagnostics.cpp b/clang/lib/StaticAnalyzer/HTMLDiagnostics.cpp index 659c32d58d4..bd20d481a99 100644 --- a/clang/lib/StaticAnalyzer/HTMLDiagnostics.cpp +++ b/clang/lib/StaticAnalyzer/HTMLDiagnostics.cpp @@ -21,6 +21,7 @@ #include "clang/Rewrite/HTMLRewrite.h" #include "clang/Lex/Lexer.h" #include "clang/Lex/Preprocessor.h" +#include "llvm/Support/FileSystem.h" #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/raw_ostream.h" #include "llvm/Support/Path.h" @@ -121,7 +122,9 @@ void HTMLDiagnostics::ReportDiag(const PathDiagnostic& D, std::string ErrorMsg; Directory.createDirectoryOnDisk(true, &ErrorMsg); - if (!Directory.isDirectory()) { + bool IsDirectory; + if (llvm::sys::fs::is_directory(Directory.str(), IsDirectory) || + !IsDirectory) { llvm::errs() << "warning: could not create directory '" << Directory.str() << "'\n" << "reason: " << ErrorMsg << '\n'; |