Introduce new kmp_safe_file_t class with RAII semantics for file open/close. It is essentially a wrapper around the C-style FILE* object. This also unifies the way we error report if a file can't be opened.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Time | Test | |
---|---|---|
1,270 ms | x64 windows > LLVM.CodeGen/XCore::threads.ll |
Event Timeline
Really nice cleanup. My only request is more documentation for new code.
openmp/runtime/src/kmp.h | ||
---|---|---|
4069 | Please include doxygen documentation, at least for non trivial methods and the class. Maybe use "RAII" in the class name to indicate the functionality and make it clear there is no "close" needed at use sites. |
clang-tidy: warning: invalid case style for class 'kmp_safe_raii_file_t' [readability-identifier-naming]
not useful