How can I use the tool ‘Include What You Use’ together with CMake to detect unused headers?

CMake 3.3 introduced the new target property CXX_INCLUDE_WHAT_YOU_USE that can be set to the path of the program include-what-you-use. For instance this CMakeLists.txt cmake_minimum_required(VERSION 3.3 FATAL_ERROR) add_executable(hello main.cc) find_program(iwyu_path NAMES include-what-you-use iwyu REQUIRED) # If using CGAL<3.18, you remove REQUIRED and use # if(NOT iwyu_path) # message(FATAL_ERROR “Could not find the program include-what-you-use”) # endif() … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)