You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tools (complete and add to the following information):
HEMTT:1.14.1
Operating System: Windows
Description:
The external_parent_case config linter is identifying a class definition as its own parent, which results in the config linter missing some errors and misidentifying others.
Steps to reproduce:
Include the following in a config.cpp:
class A {
class B {
};
};
class A1 : A {
class b : B {
};
};
Run "hemtt.exe dev"
Expected behavior:
The config should build without error, as the child class 'b' correctly identifies the parent class 'B' with the correct letter case.
Logs:
PS E:\arma_dev\test> hemtt.exe dev
INFO Config loaded for Test 1.0.0.0
INFO Creating `dev` version
INFO Compiled 0 sqf files
INFO Rapified 1 addon configs
error[L-C05]: parent case does not match parent definition
┌─ addons/main/config.cpp:14:12
│
14 │ class b : B {
│ - ^ parent does not match definition case
│ │
│ parent definition here
│
= help: change the parent case to match the parent definition
= try: b
error[L-C05]: parent case does not match parent definition
┌─ addons/main/config.cpp:14:12
│
14 │ class b : B {
│ - ^ parent does not match definition case
│ │
│ parent definition here
│
= help: change the parent case to match the parent definition
= try: b
Additional context:
If the config is changed to
class A {
class B {
};
};
class A1 : A {
class b : b {
};
};
then the linter incorrectly misses the case error.
The text was updated successfully, but these errors were encountered:
Tools (complete and add to the following information):
1.14.1
Description:
The external_parent_case config linter is identifying a class definition as its own parent, which results in the config linter missing some errors and misidentifying others.
Steps to reproduce:
Expected behavior:
The config should build without error, as the child class 'b' correctly identifies the parent class 'B' with the correct letter case.
Logs:
Additional context:
If the config is changed to
then the linter incorrectly misses the case error.
The text was updated successfully, but these errors were encountered: