xinghuayu007 commented on PR #11287:
URL:
https://github.com/apache/incubator-gluten/pull/11287#issuecomment-3707588192
> Can we enable IWYU in a way embed in cmake? We can enable the check only
when code changes are made under cpp/ path.
>
> ```
> if(ENABLE_IWYU)
> find_program(IWYU_PATH NAMES include-what-you-use iwyu)
> if(IWYU_PATH)
> set(CMAKE_CXX_INCLUDE_WHAT_YOU_USE ${IWYU_PATH})
> endif()
> endif()
> ```
Compiling include-what-you-use needs clang and source code. Currently design
can ensure only check modified cpp files.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]