[PATCH] D18399: Added support for different VFSs in format::getStyle.

Manuel Klimek via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 23 09:50:40 PDT 2016


klimek added inline comments.

================
Comment at: lib/Format/Format.cpp:2148
@@ -2140,3 +2147,3 @@
     // the file or not.
-    llvm::sys::fs::is_regular_file(Twine(ConfigFile), IsFile);
-
+    Status = FS->status(ConfigFile.c_str());
+    bool IsFile =
----------------
Prefer .str to .c_str, the former is nicely typed. (here and below)


http://reviews.llvm.org/D18399





More information about the cfe-commits mailing list