https://github.com/kadircet commented:

thanks a lot for the revision!

One concern is, we can't really use `getAllCompileCommands()` reliably either, 
not all compilation databases implement that, and even if they do this is gonna 
be an overkill. For example for chromium we'll iterate over tens of thousands 
of compile flags, just to modify a handful of files. I've made some suggestions 
in line.

Also I think it's easier if we put absolute-paths from CDB into the 
`EditedFiles` and just remap them to absolute paths per tools working directory 
afterwards when we can.

https://github.com/llvm/llvm-project/pull/111375
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to