brintos

brintos / llvm-project-archived public Read only

0
0
Text · 271 B · 861ed10 Raw
12 lines · yaml
1CustomChecks:2  - Name: avoid-long-type3    Query: |4      match varDecl(5          hasType(asString("long")),6          hasTypeLoc(typeLoc().bind("long"))7      )8    Diagnostic:9      - BindName: long10        Message: use 'int' instead of 'long'11        Level: Warning12