mirror of
https://github.com/neovim/neovim
synced 2025-07-15 16:51:49 +00:00
build: allow IWYU to fix includes for all .c files
Allow Include What You Use to remove unnecessary includes and only include what is necessary. This helps with reducing compilation times and makes it easier to visualise which dependencies are actually required. Work on https://github.com/neovim/neovim/issues/549, but doesn't close it since this only works fully for .c files and not headers.
This commit is contained in:
@ -67,6 +67,17 @@
|
||||
"inherits": [
|
||||
"base"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "iwyu",
|
||||
"displayName": "IWYU",
|
||||
"description": "Run include-what-you-use with the compiler",
|
||||
"cacheVariables": {
|
||||
"ENABLE_IWYU": "ON"
|
||||
},
|
||||
"inherits": [
|
||||
"base"
|
||||
]
|
||||
}
|
||||
],
|
||||
"buildPresets": [
|
||||
@ -90,6 +101,10 @@
|
||||
"lhs": "${hostSystemName}",
|
||||
"rhs": "Windows"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "iwyu",
|
||||
"configurePreset": "iwyu"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user