Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule8.9 applicability to const ?
#1
Hello,

I have a question regarding rule 8.9.

We are currenly using static const instead of defines at the top of our files to manage implementation specific constants, however this is being flagged as a violation of rule8.9 if only used in one function, however as per the rationale of 8.9 this does not make all that much sense to us, is this really the intent of the rule?

Best regards

Soren


Messages In This Thread
Rule8.9 applicability to const ? - by Soren_Kolbach_Hansen - 24-09-2021, 01:49 PM
RE: Rule8.9 applicability to const ? - by misra-c - 27-11-2021, 11:10 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)