iAI icon indicating copy to clipboard operation
iAI copied to clipboard

Document when to use forward declarations versus #includes

Open blipper opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe. Not clear to me what the rules are?

Describe the solution you'd like Convert all forward declarations to include style

Describe alternatives you've considered Clarify the policy and criteria

Additional context Add any other context or screenshots about the feature request here.

blipper avatar Apr 20 '21 13:04 blipper

We need to document the policy for this. The implicit policy is: only include when needed, don't if forward declarations suffice.

MMory avatar May 06 '22 14:05 MMory

See https://github.com/secure-software-engineering/phasar/wiki/Coding-Conventions#include-vs-forward-declaration

fabianbs96 avatar Dec 19 '22 14:12 fabianbs96