linter-clang
linter-clang copied to clipboard
[Bug] Array index error is not linting after upgrade to 4.1.1
@Arcanemagus This problem is not duplicated either #200 and #202, linter only not linting when array index error, here's an example:
v4.1.1
however,
v4.0.0
doesn't have this problem:
@Arcanemagus Can you take a look ??
@Arcanemagus linter-gcc doesn't have this problem, maybe you can take a look.
Hi @ooJerryLeeoo Can you show us the error message? and how it differs from the expected behavior
@steelbrain The error message in the screenshot is
error: array type 'int [1]' is not assignable
and the expected behavior is in the second screenshot.
Can you post the result of Linter: Debug
command from command palette?
@steelbrain
Platform: darwin
Atom Version: 1.18.0-beta1
Linter Version: 2.1.4
All Linter Providers:
- clang
- ESLint
- JSON Lint
Matching Linter Providers:
- clang
Disabled Linter Providers;
Current File scopes:
- *
- source.cpp
- meta.block.c
- constant.numeric.c
I can debug it this weekend, busy before that sorry
Okay, I got it 👍
@steelbrain I've just found another linter error is not working too:
and the error message in the screenshot should be:
error: cannot initialize a variable of type 'int *' with an lvalue of type 'const char [5]'
@steelbrain Can you take a look ??