- Fixed issue with
iwyu.diagnostics.only_re
setting default (needs to be""
). - Improved error handling for bad
iwyu.compile_commands
settings.
- Updated dependencies due to detected vulnerabilities.
- Updated
iwyu.compile_commands
so that if it is set to the defaultauto
, then the extension will try:${workspaceFolder}/compile_commands.json
,${workspaceFolder}/build/compile_commands.json
,${fileWorkspaceFolder}/compile_commands.json
, and${fileWorkspaceFolder}/build/compile_commands.json
.
- Added rudimentary support for
${fileWorkspaceFolder}
iniwyu.compile_commands
settings.
- Fixed #2. When the
compile_commands.json
file cannot be found the extension would not be able to initialize. - Fixed and issue with the actual setting name for the
compile_commands.json
file. The correct setting name isiwyu.compile_commands
as documented. - Renamed settings
iwyu.diagnostics
toiwyu.diagnostics.unused_includes
.
- Fixed include guard trigger.
- Refactored most extension code to use class Extension.
Bad release!
- Updated README.md.
- Changed to only check
iwyu.diagnostics.include_guard
once per file. - Fixed lookup of setting
iwyu.diagnostics.include_guard
. - Provided a direct link for diagnostics to the documentation.
- Disabled include guard checks by default. Seeting
iwyu.diagnostics.include_guard
to ".
- Added support for include guard detection and correction.
- Added new settings:
iwyu.diagnostics.include_guard_files
: `Regular expression for files that should be checked for include guards."iwyu.diagnostics.include_guard
: If this is non empty, then include guards are checked. The relative filename is denoted as '${file}' (as-is) or '${FILE}' (uppercase) , so in order to require include guards that end in a '_ thi must be set to '${file}_'.
- Fixed settings default for
iwyu.iwyu.keep
. - Changed default for
iwyu.diagnostics.iwyu_interval
to 5 (seconds).
- Added new command
Include What You Use (all targets)
. See README.md for details.
- Added new config settings:
iwyu.diagnostics.full_line_squiggles
: Whether to underline the whole line with squiggles or only the actual include part. The error is technically only on the actual include (from#
to eiter>
or second"
) but tools commonly underline the whole line and the fix script will also remove the whole line.- Use LogOutputChannel instead of OutputChannel for better log output control.
- Also removed setting
iwyu.debug
.
- Fixed per file IWYU data handling.
- Improved header processing:
- Rename
iwyu.fix.safe
toiwyu.fix.safe_headers
to match the actual argument name. - Change
iwyu.fix.safe_headers
to default to false, so that the tool works for headers by default. - Provide
--basedir
tofix_includes.py
invocation to explicitly apply fixes only to the selected file. - Change
iwyu.fix.comments
to default to false. - Add
iwyu.fix.dry_run
config for additional debugging. - Add
iwyu.fix.update_comments
to go along withiwyu.fix.comments
.
- Rename
- Sped up diagnostics by limiting how often iwyu is run and apply heuristics to early skip source scanning.
- Added new config settings:
iwyu.diagnostics.iwyu_interval
: Minimum interval time in seconds between iwyu calls.iwyu.diagnostics.only_re
: Only compute diagnostics for files that match this regexp.iwyu.diagnostics.scan_min
: Scan at least this many lines, if no include is found, then stop.iwyu.diagnostics.scan_more
: After finding an include, scan at least this many more lines.
- Added diagnostic support.
- Added quickfix support.
- Fixed image link.
- Initial release.