TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
ASML C Coding Standard
Search

Rule:  6.10.2.cChecked automatically with code checker

Synopsis:It is forbidden to include hpp files in C files.
Language:C
Severity Level:5
Category:Preprocessing Directives


Description:

Justification

The file extension "hpp" is reserved for C++ header files only. By including a file with extension "hpp" in a C file, the header file itself will also become a C file because it will be compiled by the C compiler.

Example

#include "KwShMem.hpp" /* WRONG */
#include "KwShMem.h" /* RIGHT */