Open Quuxplusone opened 6 years ago
Bugzilla Link | PR38240 |
Status | NEW |
Importance | P normal |
Reported by | Tom Schultz (tom.schultz@km.kongsberg.com) |
Reported on | 2018-07-20 00:08:03 -0700 |
Last modified on | 2018-08-28 12:55:56 -0700 |
Version | unspecified |
Hardware | PC Windows NT |
CC | alexfh@google.com, djasper@google.com, klimek@google.com, legalize@xmission.com, tom.schultz@km.kongsberg.com |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
Note the compilation error:
C:\Repository###....\source\code\include###/lib/stdafx.h(26): error [clang-diagnostic-error]: '###/logging/facade/logger.h' file not found
It means that the AST clang-tidy operates on is incomplete / invalid, which may result in many checks producing spurious warnings and bad fixes. Clang-tidy doesn't apply fixes in the presence of compilation errors by default (partly for that reason). Did you run it with -fix-errors
?
(though it still may be reasonable to disable the check on code that doesn't compile)
Yes i did run this with -fix-errors, so i was expecting it to do changes in the files. I was not suspecting it would do this.
Can you provide an isolated case that reproduces the problem?