mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +01:00 
			
		
		
		
	Add pragma ignore for -Wnon-virtual-dtor in Catch matchers
This commit is contained in:
		 Igor Murashkin
					Igor Murashkin
				
			
				
					committed by
					
						 Martin Hořeňovský
						Martin Hořeňovský
					
				
			
			
				
	
			
			
			 Martin Hořeňovský
						Martin Hořeňovský
					
				
			
						parent
						
							c9de7dd12d
						
					
				
				
					commit
					38248f3f2c
				
			| @@ -34,6 +34,11 @@ namespace Matchers { | ||||
|             mutable std::string m_cachedToString; | ||||
|         }; | ||||
|  | ||||
| #ifdef __clang__ | ||||
| #    pragma clang diagnostic push | ||||
| #    pragma clang diagnostic ignored "-Wnon-virtual-dtor" | ||||
| #endif | ||||
|  | ||||
|         template<typename ObjectT> | ||||
|         struct MatcherMethod { | ||||
|             virtual bool match( ObjectT const& arg ) const = 0; | ||||
| @@ -43,6 +48,10 @@ namespace Matchers { | ||||
|             virtual bool match( PtrT* arg ) const = 0; | ||||
|         }; | ||||
|  | ||||
| #ifdef __clang__ | ||||
| #    pragma clang diagnostic pop | ||||
| #endif | ||||
|  | ||||
|         template<typename T> | ||||
|         struct MatcherBase : MatcherUntypedBase, MatcherMethod<T> { | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user