diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_atomic_msvc.h b/compiler-rt/lib/sanitizer_common/sanitizer_atomic_msvc.h index 212e069145c4..3a1a94741281 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_atomic_msvc.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_atomic_msvc.h @@ -34,9 +34,9 @@ extern "C" void *_InterlockedCompareExchangePointer( // There's no _InterlockedCompareExchangePointer intrinsic on x86, // so call _InterlockedCompareExchange instead. extern "C" -long __cdecl _InterlockedCompareExchange( - long volatile *Destination, - long Exchange, long Comparand); +long __cdecl _InterlockedCompareExchange( // NOLINT + long volatile *Destination, // NOLINT + long Exchange, long Comparand); // NOLINT #pragma intrinsic(_InterlockedCompareExchange) inline static void *_InterlockedCompareExchangePointer( @@ -44,9 +44,9 @@ inline static void *_InterlockedCompareExchangePointer( void *Exchange, void *Comparand) { return reinterpret_cast( _InterlockedCompareExchange( - reinterpret_cast(Destination), - reinterpret_cast(Exchange), - reinterpret_cast(Comparand))); + reinterpret_cast(Destination), // NOLINT + reinterpret_cast(Exchange), // NOLINT + reinterpret_cast(Comparand))); // NOLINT } #endif