This broke check-tsan because of linter issues.
Details
Diff Detail
- Repository
- rCRT Compiler Runtime
Event Timeline
clang-format and lib/sanitizer_common/scripts/cpplint.py disagree about whitespace before braces.
I wonder if cpplint.py is worthwhile any more. Perhaps it should be replaced by a check that clang-format doesn't decide to change anything.
@kcc @vitalybuka lib/sanitizer_common/scripts/cpplint.py and clang-format seem to disagree on formatting of static initializers which is breaking the build. It's likely that the version that's in tree doesn't even support static initializers. I tried to replace lib/sanitizer_common/scripts/cpplint.py with the latest version from https://github.com/cpplint/cpplint which resolves this issue but starts throwing errors for other files in compiler-rt. Do you have any suggestion/opinion on what to do about this?
Yeah, it's know and a little bit annoying issue. I've filed https://github.com/google/sanitizers/issues/906 We need to do something about that.
For now you can just follow whatever it's asking for, even if it's conflicts for clang-format. If it gets very ugly or impossible just put // NOLINT
lib/sanitizer_common/sanitizer_coverage_fuchsia.cc | ||
---|---|---|
116 | BlockingMutex setup_lock_ = {LINKER_INITIALIZED}; uptr *array_ = nullptr; u32 next_index_ = 0; zx_handle_t vmo _ = {}; char vmo_name_[ZX_MAX_NAME_LEN] = {}; |