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
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
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 ↗ | (On Diff #31395) | Huh? |
| lib/sanitizer_common/sanitizer_internal_defs.h | ||
|---|---|---|
| 122 ↗ | (On Diff #31421) | This is irrelevant |
| 130 ↗ | (On Diff #31421) | This (together with MSC_PREREQ def) can probably go to sanitizer_platform.h (where we define which OS are not supported). |
| 140 ↗ | (On Diff #31421) | 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). |
Comment Actions
LGTM
| lib/sanitizer_common/sanitizer_internal_defs.h | ||
|---|---|---|
| 146 ↗ | (On Diff #31480) | Please don't define one macro through another. Also, this macro seem to be unused, maybe we can just delete it? |
| 166 ↗ | (On Diff #31480) | Indentation and below: #if blah # define FOO bar #endif |
| lib/sanitizer_common/sanitizer_platform.h | ||
| 145 ↗ | (On Diff #31480) | Remove reference to LLVM_MSC_PREREQ |