AaronBallman wrote:

> I am not sure how to keep only the `llvm-project/xxxx/Filename` path except 
> by hard-coding. Or how about only keeping the base file name? This could 
> limit it to within 80 characters.

I'd recommend using this API: 
https://github.com/llvm/llvm-project/blob/2f23666ae7e434a222a67ac6499d118035ab7903/llvm/include/llvm/Support/Path.h#L357
 to get the base filename from the path, and then print just the base filename.

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

Reply via email to