How to disable Xcode static analysis messages (Clang)?

I want my Xcode project to go through the build and analysis phase without creating any errors, warnings or static analysis messages. The problem is that my project includes libraries that generate (possibly harmless) warnings and static analysis messages.

I cannot find a way to disable certain Clang warnings so that "my" code builds with zero problems. Is it possible?

+3
source share
2 answers

I could not find a way to do this and made a mistake against the Clan. The team seems to want to add this functionality, but it is not there yet.

: http://llvm.org/bugs/show_bug.cgi?id=7296

, a __clang_analyzer__ macro, , , Clang .

+4

clang - "". , , . , .

, clang WWDC, , , , . , , , , bugreport , Apple .

, .

-1

Source: https://habr.com/ru/post/1747275/


All Articles