Rule 19.15 #include ssyntax, bad name - Printable Version +- MISRA Discussion Forums (https://forum.misra.org.uk) +-- Forum: MISRA C (https://forum.misra.org.uk/forumdisplay.php?fid=4) +--- Forum: MISRA-C: 2004 rules (https://forum.misra.org.uk/forumdisplay.php?fid=17) +---- Forum: 6.19 Preprocessing Directives (https://forum.misra.org.uk/forumdisplay.php?fid=43) +---- Thread: Rule 19.15 #include ssyntax, bad name (/showthread.php?tid=712) |
Rule 19.15 #include ssyntax, bad name - mshearer123 - 02-03-2010 Hi, My header files all include #ifndef / #define 's to stop them being included twice, however apparently the name is bad. i have things like #ifndef __DMA_h #define __DMA_h #endif and #ifndef __flash_h #define __flash_h #endif Also changing to the following gives the same error #ifndef flash_h #define flash_h #endif any help would be great, Matt Re: Rule 19.15 #include ssyntax, bad name - William Forbes - 02-03-2010 It may be useful to be more specific about the error and what tool reported the error. I have a feeling that your checker may be broken as the code looks ok to me. Re: Rule 19.15 #include ssyntax, bad name - mshearer123 - 03-03-2010 Hi, I am using IBM's logiscope there error reported states Code: MISRA_19_15 : Header inclusion Re: Rule 19.15 #include ssyntax, bad name - mshearer123 - 03-03-2010 Hi, I am using IBM's logiscope there error reported states Code: MISRA_19_15 : Header inclusion you could well be right about the tool not being set up correctly Re: Rule 19.15 #include ssyntax, bad name - misra-c - 10-03-2010 The code appears to be correct so it would be worth checking your tool configuration. If you have access to a different tool, you could try running your code through that too. |