vinayakdsci wrote: Done! I added the diagnostic to the TableGen file, and passed in only the Record's source range instead of the whole expression's. Now only the lambda's initializer is highlighted in the diagnostic. I hope this does it! https://github.com/llvm/llvm-project/pull/83152