ilya-biryukov added inline comments.

================
Comment at: include/clang/Basic/VirtualFileSystem.h:315
+IntrusiveRefCntPtr<OverlayFileSystem>
+createOverlayOnRealFilesystem(IntrusiveRefCntPtr<FileSystem> TopFS);
+
----------------
NIT: I'm not an expert in English, but shouldn't it be 
createOverlay**Over**Real.....
Also maybe shorten the suffix: `createOverlayOverRealFS`?


================
Comment at: lib/Basic/VirtualFileSystem.cpp:372
+vfs::createOverlayOnRealFilesystem(IntrusiveRefCntPtr<FileSystem> TopFS) {
+  IntrusiveRefCntPtr<OverlayFileSystem> OverlayFS =
+    new OverlayFileSystem(getRealFileSystem());
----------------
Maybe add an assert the parameter is non-null?


https://reviews.llvm.org/D45094



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to