================
@@ -0,0 +1,77 @@
+// RUN: %clang_analyze_cc1 -triple x86_64-pc-linux-gnu 
-analyzer-checker=core,alpha.core -std=gnu99 -analyzer-config 
suppress-all-address-spaces=false -verify=x86-nosuppress %s
+// RUN: %clang_analyze_cc1 -triple x86_64-pc-linux-gnu 
-analyzer-checker=core,alpha.core -std=gnu99 -verify=x86-suppress %s
+// RUN: %clang_analyze_cc1 -triple arm-pc-linux-gnu 
-analyzer-checker=core,alpha.core -std=gnu99 -analyzer-config 
suppress-all-address-spaces=false -verify=other-nosuppress %s
+// RUN: %clang_analyze_cc1 -triple arm-pc-linux-gnu 
-analyzer-checker=core,alpha.core -std=gnu99 -verify=other-suppress %s
----------------
NagyDonat wrote:

```suggestion
// RUN: %clang_analyze_cc1 -triple x86_64-pc-linux-gnu 
-analyzer-checker=core,alpha.core -std=gnu99 -analyzer-config 
suppress-all-address-spaces=false -verify=common,x86-nosuppress %s
// RUN: %clang_analyze_cc1 -triple x86_64-pc-linux-gnu 
-analyzer-checker=core,alpha.core -std=gnu99 -verify=common,x86-suppress %s
// RUN: %clang_analyze_cc1 -triple arm-pc-linux-gnu 
-analyzer-checker=core,alpha.core -std=gnu99 -analyzer-config 
suppress-all-address-spaces=false -verify=common,other-nosuppress %s
// RUN: %clang_analyze_cc1 -triple arm-pc-linux-gnu 
-analyzer-checker=core,alpha.core -std=gnu99 -verify=common,other-suppress %s
```
The `-verify` argument can accept multiple comma-separated labels and this can 
be used to simplify the code in cases where the same warning is emitted in many 
run lines. For example if you add the same string (e.g. `common` as in the 
suggested edit), you can write `common-warning {{....}}` instead of separately 
listing each of the four different labels.

https://github.com/llvm/llvm-project/pull/127191
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to