chriskohlhoff / asio

Asio C++ Library
http://think-async.com/Asio
4.72k stars 1.19k forks source link

asio.hpp: Added IWYU Pragma export #1447

Open FlorianReimold opened 3 months ago

FlorianReimold commented 3 months ago

asio.hpp is an umbrella header, however it needs to be marked as such when using static IWYU (Include What You Use) checks like recent clang-tidy versions. Without those IWYU pragmas, clang tidy will complain a lot:

image

Clang tidy include cleaner documentation can be found here: https://clangd.llvm.org/design/include-cleaner