Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Does rule A2-10-5 apply to reusing an external identifier as a member identifier?
#3
Rule A2-10-5 mentions 'function with static storage duration'. Was this meant to apply only to functions declared with the 'static' keyword? The rule documentation states "Regardless of scope, no identifier with static storage duration should be re-used across any source files in the project. This includes objects or functions with external linkage and any objects or functions with the static storage class specifier." Can we assume this was inserted incorrectly and the rule is meant to apply only to functions with 'static' (that do not have external linkage)?
Reply


Messages In This Thread
RE: Does rule A2-10-5 apply to reusing an external identifier as a member identifier? - by mstaron - 15-07-2026, 09:01 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)