mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +01:00 
			
		
		
		
	Suppress clang-tidy warnings about inline asm
This commit is contained in:
		| @@ -21,14 +21,14 @@ namespace Catch{ | ||||
|  | ||||
| #ifdef CATCH_PLATFORM_MAC | ||||
|  | ||||
|     #define CATCH_TRAP() __asm__("int $3\n" : : ) | ||||
|     #define CATCH_TRAP() __asm__("int $3\n" : : ) /* NOLINT */ | ||||
|  | ||||
| #elif defined(CATCH_PLATFORM_LINUX) | ||||
|     // If we can use inline assembler, do it because this allows us to break | ||||
|     // directly at the location of the failing check instead of breaking inside | ||||
|     // raise() called from it, i.e. one stack frame below. | ||||
|     #if defined(__GNUC__) && (defined(__i386) || defined(__x86_64)) | ||||
|         #define CATCH_TRAP() asm volatile ("int $3") | ||||
|         #define CATCH_TRAP() asm volatile ("int $3") /* NOLINT */ | ||||
|     #else // Fall back to the generic way. | ||||
|         #include <signal.h> | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Phil Nash
					Phil Nash