User Activity

  • Posted a comment on discussion General Discussion on cppcheck

    Hi @danielmarjamaki, Here is the overall summary of our code with cppcheck Tokenizer::simplifyTokens1: 796.793s (avg. 3.3062s - 241 result(s)) Tokenizer::simplifyTokens1::ValueFlow: 264.826s (avg. 1.09886s - 241 result(s)) Tokenizer::createTokens: 183.26s (avg. 0.704846s - 260 result(s)) Tokenizer::tokenize::simplifyTypedef: 104.468s (avg. 0.433477s - 241 result(s)) Tokenizer::tokenize::setVarId: 99.194s (avg. 0.411593s - 241 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 55.909s (avg....

  • Posted a comment on discussion General Discussion on cppcheck

    Hi @danielmarjamaki, PFA for overall summary when run cppcheck passing database file as it is and when removing 2 included paths(-I) which havig the bunch of macros defined header files. Observed Tokenizer::simplifyTokens1 is taking 13 mins in first case. What stage it is? Can be able to optimize this? -D method is not saving the time and removing the included paths from database file is not reporting the some actual cppcheck errors Looking forward for optimized solution by analysing the attached...

  • Posted a comment on discussion General Discussion on cppcheck

    Hi @danielmarjamaki, With the --project option it is reporting an error. Actually, we are trying to hide a group of macros that are defined in some header files and these macros included in all source files. These macros get assigned with a unique constant value at the preprocessing stage. We observed these header files causing more time execution for cppcheck. But the above hiding a piece of code is not working for us(You can see our conversation here - https://sourceforge.net/p/cppcheck/discussion/general/thread/83bb029837/?limit=25&page=1#174f)....

  • Modified a comment on discussion General Discussion on cppcheck

    Hi @danielmarjamaki, In the json file main.h path was added already. [ { "directory": "D:/Cppcheck", "command": "D:\\Gen3\\GEN3_ENV_ROOT\\IAR\\Ver9_10_1\\arm\\bin\\iccarm.exe --silent D:\Cppcheck\src\main.c -ID:\Cppcheck\Include -ID:\Cppcheck\private", "file": "D:\Cppcheck\src\main.c" } ]

  • Posted a comment on discussion General Discussion on cppcheck

    Hi @danielmarjamaki, In the json file main.h path was added already. [ { "directory": "D:/Cppcheck", "command": "D:\\Gen3\\GEN3_ENV_ROOT\\IAR\\Ver9_10_1\\arm\\bin\\iccarm.exe --silent D:\Cppcheck\src\main.c **-ID:\Cppcheck\Include** -ID:\Cppcheck\private", "file": "D:\Cppcheck\src\main.c" } ]

  • Posted a comment on discussion General Discussion on cppcheck

    Hi @danielmarjamaki, I have fixed include path and tried, still not reporting overflow error. Please find the attachment. command that I have used - cppcheck.exe --enable=warning --enable=style --quiet --language=c --enable=performance --xml --inline-suppr --suppress=preprocessorErrorDirective -iD:\Cppcheck\private -DCPPCHECK_TEST D:\Cppcheck\ Thanks

  • Posted a comment on discussion General Discussion on cppcheck

    Hi @danielmarjamaki, Thanks for the reply. But that was using in main.c int main(void) { int temp = OVERFLOW; int status = foo(MACRO_123); printf("%d %d", status,temp); }

  • Posted a comment on discussion General Discussion on cppcheck

    Hi @danielmarjamaki, We are trying to hide preprocessor code from being checked by cppcheck(As seeing more execution time for cppcheck to expand & validate the preprocessor code). But that is not working as expected. So created a sample code and attached to this thread to demonstrate. I'm running the below command cppcheck.exe --enable=warning --enable=style --quiet --language=c --enable=performance --xml --inline-suppr --suppress=preprocessorErrorDirective -iC:\Users\Desktop\Cppcheck\private -DCPPCHECK_TEST...

View All

Personal Data

Username:
tlkcvprasad
Joined:
2021-04-22 11:55:32

Projects

  • No projects to display.

Personal Tools