I've copy/pasted the LLVM_NOEXCEPT definition macro goo from LLVM's Compiler.h. Is there somewhere I should put this in Compiler RT? Is there a useful header to define/share things like this?
Details
Diff Detail
Event Timeline
The correct header for this is lib/sanitizer_common/sanitizer_internal_defs.h. BTW we already have NOTHROW define there, but it does smth. different.
lib/tsan/rtl/tsan_new_delete.cc | ||
---|---|---|
39 | Huh? |
lib/sanitizer_common/sanitizer_internal_defs.h | ||
---|---|---|
122 | This is irrelevant | |
130 | This (together with MSC_PREREQ def) can probably go to sanitizer_platform.h (where we define which OS are not supported). | |
140 | Please move this below (under //Platform-specific defs) for consistency. I also don't quite like defining one macro via another (their order becomes important). |
LGTM
lib/sanitizer_common/sanitizer_internal_defs.h | ||
---|---|---|
146 | Please don't define one macro through another. Also, this macro seem to be unused, maybe we can just delete it? | |
166 | Indentation and below: #if blah # define FOO bar #endif | |
lib/sanitizer_common/sanitizer_platform.h | ||
145 | Remove reference to LLVM_MSC_PREREQ |
This is irrelevant