This is a small refactoring to prepare for porting LSan to Fuchsia.
Factor out parts of lsan_thread.{cpp,h} that don't apply to Fuchsia.
Since existing supported systems are POSIX-based, the affected code
is moved to lsan_posix.{cpp.h}.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 44789 Build 46255: arc lint + arc unit
Event Timeline
I've made the style changes you asked for and clang-format'd the files I touched. But note that all of these changes are to existing code that I just moved and left exactly as it had been and not anything I'd added. I erred on the side of leaving things alone rather than cleaning them up. I've now done the opposite as you asked, though it's not entirely consistent with the style and formatting of the existing code in the same directory. I'm happy to use whatever style choices you prefer, but it's easiest to do that when the codebase is consistent with those choices already.
compiler-rt/lib/lsan/lsan_posix.cpp | ||
---|---|---|
31 | Consistent with what? I'm changing this as you asked, but it was verbatim moved from the existing code in the other file and all the style choices were not mine. | |
65 | It was moved verbatim from the old code. |
same about one per line