REPOSITORY rL LLVM ================ Comment at: clang-tidy/ClangTidy.cpp:374 @@ +373,3 @@ + yaml::Output YAML(OS); + YAML << TUR; +} ---------------- bkramer wrote: > alexfh wrote: > > "return YAML.error();" seems like a good idea in case the file is not > > writable or any other error occurs. > yaml::Output has no way to retrieve errors :( Oh, didn't know that. In this case, you could use raw_fd_ostream::has_error() after manually closing it. It doesn't provide much detail about what was wrong, but it's better than nothing. WDYT?
http://reviews.llvm.org/D5176 _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
