bugprone-easily-swappable-parameters is completely impractical for real world usage. It's a reasonable thing to consider as part of API design but it mostly applies to having APIs taking a lot of parameters. It's unreasonable to disallow APIs simply taking 2 integer parameters even as a loose guideline.
		
			
				
	
	
		
			3 lines
		
	
	
		
			472 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			3 lines
		
	
	
		
			472 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| Checks: 'bugprone-*,-bugprone-easily-swappable-parameters,-bugprone-macro-parentheses,-bugprone-too-small-loop-variable,cert-*,clang-analyzer-*,-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,-clang-diagnostic-constant-logical-operand,readability-*,-readability-function-cognitive-complexity,-readability-inconsistent-declaration-parameter-name,-readability-magic-numbers,-readability-named-parameter,llvm-include-order,misc-*'
 | |
| WarningsAsErrors: '*'
 |