-
Hi There Is codechecker supporting analyzing objective c code? If no do you have the plan to support it? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
Hi, Both the clang static analyzer and clang-tidy can analyze objective c code. I'm not sure how the current I think a solution which could work now is if you can execute the analyzers on your objective c code (convert the reports if needed), than you can store, view, manage the reports on the web UI or generate html reports. Br, |
Beta Was this translation helpful? Give feedback.
-
Hi Gyorgy Thank you for replying. Best, |
Beta Was this translation helpful? Give feedback.
-
Hi Peng, This is a great collection of tools, which can produce the compile command database. Br, |
Beta Was this translation helpful? Give feedback.
-
Thanks for pointing out xcpretty, I have found it and integrated it in CodeChecker, it works to generate json file successfully. |
Beta Was this translation helpful? Give feedback.
-
@lipeng28 Once your compilation database is ready, can you run the analysis itself to completion? You should look at the checker list, and perhaps will need to enable checkers from the |
Beta Was this translation helpful? Give feedback.
-
Hi Whisperity No, I can not run the analysis to completion, I have extended the implementation to finish it. And thanks for pointing out osx group is not enabled by default. Best, |
Beta Was this translation helpful? Give feedback.
-
You can see here which checkers are enabled by default and in additional profiles: https://github.com/Ericsson/codechecker/blob/master/config/config.json#L18 You can say |
Beta Was this translation helpful? Give feedback.
-
You can also add the |
Beta Was this translation helpful? Give feedback.
Hi,
Both the clang static analyzer and clang-tidy can analyze objective c code.
The clang static anlyzer can create plist report files which can be stored by CodeChecker.
For clang-tidy you will have to use the report-converter to convert the tidy output into a format which can be stored into a CodeChecker server.
I'm not sure how the current
CodeChecker analyze
part which executes the analyzers would work in an objective c build environment, I'm not familiar with that.I think a solution which could work now is if you can execute the analyzers on your objective c code (convert the reports if needed), than you can store, view, manage the reports on the web UI or generate html reports.
Br,
…