arsenm / sanitizers-cmake

CMake modules to help use sanitizers
Other
377 stars 65 forks source link

Address cmake-lint errors in FindSanitizers.cmake #35

Closed chardin-cpi closed 1 year ago

chardin-cpi commented 1 year ago

Runnging cmake-lint on some ci builds and it included some errors in the FindSanitizers file.

    $ cmake-lint --version
    0.6.13

    $ cmake-lint --tab-size 4 build/FindSanitizers.cmake
    ... snip snip ...
    build/FindSanitizers.cmake:52,24: [E0109] Invalid argument name ...
        in function/macro definition
    build/FindSanitizers.cmake:82,00: [C0306] Tab-policy violation.
        Found tab but should be space
    build/FindSanitizers.cmake:90,00: [C0306] Tab-policy violation.
        Found tab but should be space
    build/FindSanitizers.cmake:77,08: [C0307] Bad indentation:
        # If the target is compiled by no or no known compiler, give a warning.
            ^----BodyNode: 1:0->FlowControlNode: 52:0->BodyNode:
                           52:24->FlowControlNode: 59:4->BodyNode:
                           59:28->IfBlockNode: 71:8->BodyNode:
                           71:36->CommentNode: 77:8

Signed-off-by: Charles Hardin charles.hardin@chargepoint.com