[clang-doc] sys::fs::F_None -> OF_None. NFC
authorFangrui Song <maskray@google.com>
Mon, 9 Sep 2019 12:42:10 +0000 (12:42 +0000)
committerFangrui Song <maskray@google.com>
Mon, 9 Sep 2019 12:42:10 +0000 (12:42 +0000)
F_None, F_Text and F_Append are kept for compatibility.

llvm-svn: 371394

clang-tools-extra/clang-doc/HTMLGenerator.cpp
clang-tools-extra/clang-doc/tool/ClangDocMain.cpp

index d1247595b230135f0c9470c90553703e87d7f9af..0035e3fb01a0abdb95c0074ac2ffcabde69b597f 100644 (file)
@@ -889,7 +889,7 @@ static llvm::Error SerializeIndex(ClangDocContext &CDCtx) {
   llvm::SmallString<128> FilePath;
   llvm::sys::path::native(CDCtx.OutDirectory, FilePath);
   llvm::sys::path::append(FilePath, "index_json.js");
-  llvm::raw_fd_ostream OS(FilePath, FileErr, llvm::sys::fs::F_None);
+  llvm::raw_fd_ostream OS(FilePath, FileErr, llvm::sys::fs::OF_None);
   if (FileErr != OK) {
     return llvm::createStringError(llvm::inconvertibleErrorCode(),
                                    "error creating index file: " +
@@ -938,7 +938,7 @@ static llvm::Error GenIndex(const ClangDocContext &CDCtx) {
   llvm::SmallString<128> IndexPath;
   llvm::sys::path::native(CDCtx.OutDirectory, IndexPath);
   llvm::sys::path::append(IndexPath, "index.html");
-  llvm::raw_fd_ostream IndexOS(IndexPath, FileErr, llvm::sys::fs::F_None);
+  llvm::raw_fd_ostream IndexOS(IndexPath, FileErr, llvm::sys::fs::OF_None);
   if (FileErr != OK) {
     return llvm::createStringError(llvm::inconvertibleErrorCode(),
                                    "error creating main index: " +
index a674b179f13847a59200420db0e82f2a8157b379..38b781ed39f4196561f6ae03cbf78689cd84e04b 100644 (file)
@@ -303,7 +303,7 @@ int main(int argc, const char **argv) {
       }
       std::error_code FileErr;
       llvm::raw_fd_ostream InfoOS(InfoPath.get(), FileErr,
-                                  llvm::sys::fs::F_None);
+                                  llvm::sys::fs::OF_None);
       if (FileErr != OK) {
         llvm::errs() << "Error opening info file: " << FileErr.message()
                      << "\n";