|
From: Philipp K. K. <pk...@sp...> - 2025-10-23 15:38:21
|
Am 23.10.25 um 17:21 schrieb "Janko Stamenović" via sdcc-devel: > "Not allowing if they look the same" is problematic especially as > the "looking the same" is relative. > > Would MISRA disallow the use of I (capital i) and l (lowercase L) > in the same C file? They can already look identical depending on > the font selected. MISRA disallows two identifiers that are identical except for looking the same, such as I vs. l. E.g. having AI and Al is disallowed, but having AI and lA is allowed. > With your change, how would SDCC react if a Cyrillic identifier > exists in a C file where other identifiers are Latin? Not sure; I think it would emit a warning (I can't compile and test the code yet, due to another issue not yet resolved). That might not be ideal, but at least it would just require a #pragma disable_warning 325 in code that does so intentionally. Philipp |