reapply #131804 and #159289 Fixed cmake link issue. --------- Co-authored-by: DeNiCoN <denicon1234@gmail.com> Co-authored-by: Baranov Victor <bar.victor.2002@gmail.com>
11 lines
280 B
YAML
11 lines
280 B
YAML
CustomChecks:
|
|
- Name: avoid-long-type
|
|
Query: |
|
|
match varDecl(
|
|
hasType(asString("long")),
|
|
hasTypeLoc(typeLoc().bind("long"))
|
|
)
|
|
Diagnostic:
|
|
- BindName: long
|
|
Message: use 'int' instead of 'long' override
|
|
Level: Warning
|