Silencing “Documentation issue” warnings in Xcode?

前端 未结 2 1041
既然无缘
既然无缘 2020-12-30 03:27

E.g. \'@param\' command used in a comment that is not attached to a function declaration

This warning is valid, however, I am compiling 3rd party code a

2条回答
  •  既然无缘
    2020-12-30 04:22

    This solved it for me, surpassing the warnings only in the third party library headers. Just wrap the problematic header #includes with these pragmas:

    #pragma clang diagnostic push
    #pragma clang diagnostic ignored "-Wdocumentation"
    #include 
    #include 
    #pragma clang diagnostic pop
    

    this is a combination of a hint from Konchog and Vladimir Grigorov’s super helpful answer here.

提交回复
热议问题