self-contained headers

Moderators: david ward, misra cpp

Post Reply
Posts: 2
Joined: Thu Jan 13, 2011 7:31 am
Company: SAAB

self-contained headers

Post by sthrjo » Mon Dec 05, 2011 8:31 am

There is no rule in MISRA for header files to be self-contained, is there? Is there a reason for this decision? Other rule-sets has this rule, allegedly "Goddard Space Flight Center" has a rule-set for C.

misra cpp
Posts: 161
Joined: Mon Jun 02, 2008 1:55 pm
Company: MISRA

Re: self-contained headers

Post by misra cpp » Mon Oct 05, 2015 2:35 pm

This issue was not considered for MISRA C++:2008.

Note that many of the guidelines prevent the issues that can arise if a header file is included more than once.
Posted by and on behalf of
the MISRA C++ Working Group

Post Reply

Return to “6.1 General (C++)”