From 25f0b4f397255dfb235d285bd391536a1fe8fe8c Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Fri, 27 Jan 2023 11:09:07 -0500 Subject: CMake: add an option to run IWYU in verbose mode This helps to diagnose places where IWYU asks to include headers for internal stdlib details. --- Utilities/IWYU/mapping.imp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Utilities/IWYU') diff --git a/Utilities/IWYU/mapping.imp b/Utilities/IWYU/mapping.imp index b0ed911bb0..0ba2f519e9 100644 --- a/Utilities/IWYU/mapping.imp +++ b/Utilities/IWYU/mapping.imp @@ -76,7 +76,7 @@ # __decay_and_strip is used internally in the C++11 standard library. # IWYU does not classify it as internal and suggests to add . # To ignore it, we simply map it to a file that is included anyway. - # Use '-Xiwyu -v7' to see the fully qualified names that need this. + # Use 'CMake_IWYU_VERBOSE' to see the fully qualified names that need this. # TODO: Can this be simplified with an @-expression? #{ symbol: [ "@std::__decay_and_strip<.*>::__type", private, "\"cmConfigure.h\"", public ] }, { symbol: [ "std::__decay_and_strip::__type", private, "\"cmConfigure.h\"", public ] }, -- cgit v1.2.1