Skip to content

Commit 727f6ef

Browse files
committed
Mark dummy includes for IWYU.
1 parent 72d20f8 commit 727f6ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ if(BUILD_HEADERS)
408408
# Create a dummy .cpp file that includes the header file we want to
409409
# check.
410410
set(DUMMYCPP ${CMAKE_BINARY_DIR}/header_check/${libname}.cpp)
411-
file(WRITE ${DUMMYCPP} "#include <${hpp}>\n")
411+
file(WRITE ${DUMMYCPP} "#include <${hpp}> // IWYU pragma: keep\n")
412412

413413
# There is no way in CMake to just compile but not link a C++ file,
414414
# so we pretend to build a library here.

osmium.imp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# Configuration for Include-What-You-Use tool
44
#
5-
# http://include-what-you-use.org/
5+
# https://include-what-you-use.org/
66
#
77
#-----------------------------------------------------------------------------
88
[

0 commit comments

Comments
 (0)