This section covers how BrowserStack Code Quality supports custom extensions for C and C++ languages.
UI Scan
On UI, custom extensions can be specified with Additional Options field of scan configuration page as shown below:

The flag for supplying C extension is “--xc
“ and for CPP is “--xcpp
“.
User can provide multiple C/CPP extensions with the help of pipe (|
) separator as shown above.
And multiple options can be provided using semicolon (;
) separator.
Remote Scan
Custom extensions can be specified in remote scan mode also by updating additionalOptions field of gammascan.json file as shown below:

In gammascan.json, multiple options are specified using comma (,) separator.
With these additional options, all the files in repository ending with .pc or .pcc will be considered as C and C++ files respectively, and parsed accordingly.