Replies: 1 comment 12 replies
-
I'm afraid you would indeed need to build a database out of some subset of your code, and the best way to achieve that is to run a build command that only builds part of your application. For example, if there's some large library that gets build (either your code or third-party but nontheless built locally) and then an application that uses it, you could build the library outside CodeQL and then build just the user application under CodeQL. Alternatively you could make a database available to us so that we can analyse why the C/C++ queries are consuming too much memory. FWIW I would always expect CodeQL to report an out of memory situation rather than freeze entirely -- make sure your |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using CodeQL to analyse an open-source code base which uses
./waf build
for building at the root level. I created 3 databases for 3 different languages: C, C++, and Python, with some C and C++ packages, extra like MISRA, CERTC, etc . Also, I successfully created a DB for all of them. When I tried to analyse the codebase for the MISRA C package, it took me a lot of time (not analysed). All the queries were loaded, but all of them were queued, and my terminal stopped. My ram is 20gb and i5 processor.So, to avoid this, I tried analysing the subdirectory present in the root, but couldn't do it
I tried
Also, if there are any other methods to try, please let me know
Beta Was this translation helpful? Give feedback.
All reactions