User Activity

  • Posted a comment on discussion General Discussion on cppcheck

    I have some warnings come up which I would like to suppress from the GUI without adding inline suppressions. In the project Warning options tab I can add a suppression, and it works for global suppression. If I try to qualify it by adding a filename then it stops suppressing the error altogether. I can get it to work if I put the full path name as the filename, but I don't really want to do that as it makes everything specific to the layout on my machine. I can also make it work by prefixing the...

  • Posted a comment on discussion General Discussion on cppcheck

    OK, so I finally got a proper pull request set up. You can ignore the files here.

  • Posted a comment on discussion General Discussion on cppcheck

    Here's an update for the PDF. It gets processed via LaTeX, so doesn't use the CSS at all. It's a bit more cumbersome to put on the command line but it now looks similar to the GitHub style CSS. I've set it to use the xelatex engine so that it can use any font on your system. I don't know if you have Segoe UI and Consolas on yours, or if they're just Microsoft. You could change those fonts if required.

  • Posted a comment on discussion General Discussion on cppcheck

    Hi Daniel, I created this CSS file which mimics (in a simple way) the Github markdown CSS to make the online manual prettier. I've tested it locally on the html manual but not yet PDF (need to install pdflatex). You need to add --css cppcheck.css to the pandoc command line. You also need to put the CSS file in the same directory as the html file as it's not embedded. There's a small change to the .md file to format some of the bullet lists correctly. I'd create a pull request but my Git foo is useless...

  • Posted a comment on discussion General Discussion on cppcheck

    Ah, OK. I thought that directory had to be defined to get whole program analysis, as the tooltip says.

  • Posted a comment on discussion General Discussion on cppcheck

    This is another AVR problem. I have some old library code which pulls in various register writes depending on which registers are defined in the particular micro's I/O definitions file. #ifdef EEARL outb(EEARL,addr); // warning #endif outb(EEDR,data); // no warning I don't really understand why this is an error when the line with EEDR does not generate an error. Neither of those symbols is defined. If I provide the path to the AVR library headers then the error goes away, but analysis is very slow...

  • Posted a comment on discussion General Discussion on cppcheck

    Looking at mainwindow.cpp::1015 it seems like the results are always saved if the build directory is defined, and the GUI always generates a default name for that directory and offers to create it. Is that what you mean by having autosave enabled?

  • Posted a comment on discussion General Discussion on cppcheck

    I couldn't find any sample projects. I found a few files in the compiler directory. Some of them trigger this and some don't. It seems that if the address is a simple number then it is OK, but if the address is an expression then it throws a syntax error. Zip file attached. EEP.c is mine, the other two are IAR samples.

View All

Personal Data

Username:
slarge
Joined:
2007-06-27 13:15:00

Projects

This is a list of open source software projects that Simon Large is associated with:

  • Atmel USB DFU Programmer A command-line programmer for Atmel USB microcontrollers Last Updated:
  • es-printf A configurable C printf function for embedded systems Last Updated:

Personal Tools

MongoDB Logo MongoDB