-
Notifications
You must be signed in to change notification settings - Fork 79
Troubleshooting problems with C or Cpp analysis
Rita Gorokhod edited this page Oct 9, 2020
·
6 revisions
Starting with version 4.21, it is possible to create a "reproducer" file for C/C++ analysis. A reproducer file contains diagnostic information to help the developers at SonarSource investigate problems that occur during C/C++ analysis.
Note: Starting with version 4.27, a second "reproducer" file is created with additional debug information.
If you encounter a problem with C/C++ analysis, please contact us in the community forum and include the reproducer file(s).
To create a reproducer:
- open the C/C++ file that is not being analysed correctly
- open Visual Studio's Command Window, found under
View
->Other Windows
->Command Window
. - type in the command window "Analyze.SonarLint.CFamily.CreateReproducer":
You can then view the location of the created reproducer file(s) in the SonarLint Output pane:
Reproducer file in SonarLint 4.21-4.26
Reproducer files in SonarLint 4.27
Notes:
- the reproducer file(s) are regenerated each time the command is invoked. Invoking the command will overwrite the previous reproducer file(s).
- running the reproducer will only produce the reproducer file(s). It will not report any issues for the active C/C++ file.