Commit 1c1dfaa
committed
Fix iwyu integration test by creating compile_commands.json
The iwyu integration test was passing when it should fail because
include-what-you-use needs a compilation database (compile_commands.json)
to properly analyze files.
The integration_test function was not creating compile_commands.json
before running pre-commit, so iwyu couldn't detect unused includes.
Added call to set_compilation_db() to create the compilation database
for integration tests, matching the shell command test setup.1 parent ecba2e5 commit 1c1dfaa
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
| |||
0 commit comments