This revision updates the SourceMgrDiagnosticHandler to not print the source location of a note if it is the same location as the previously printed diagnostic. This helps avoid redundancy, and potential confusion, when looking at the diagnostic output.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
We don't have tests for the note emission?
mlir/include/mlir/IR/Diagnostics.h | ||
---|---|---|
551 | Worth documenting it here? |
Comment Actions
We don't have tests that check that a specific line of source code is printed. We have many tests for note emission.
mlir/include/mlir/IR/Diagnostics.h | ||
---|---|---|
551 | When I originally wrote a comment it came out as redundant with the parameter name. |
Worth documenting it here?