aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Modules/ModuleModuleDebugInfo.cpp
diff options
context:
space:
mode:
authorJacques Pienaar <jpienaar@google.com>2025-07-29 13:29:00 +0200
committerGitHub <noreply@github.com>2025-07-29 13:29:00 +0200
commitb6a98b934f63431243ba062aa9e07a52aae05f70 (patch)
tree35cf8401a654fb9794d5b9aa5629e0dc60a46c5d /clang/test/Modules/ModuleModuleDebugInfo.cpp
parentb30034da0ffaf67a144d062607e8f627e14227d1 (diff)
downloadllvm-b6a98b934f63431243ba062aa9e07a52aae05f70.zip
llvm-b6a98b934f63431243ba062aa9e07a52aae05f70.tar.gz
llvm-b6a98b934f63431243ba062aa9e07a52aae05f70.tar.bz2
[mlir] Report line number from file rather than split (#150982)
Add convention for lexer if the last file is contained in the first, then the first is used for error reporting. This requires that these two overlap to make it easy to find the corresponding spots. Enables going from ``` within split at mlir/test/IR/invalid.mlir::10 offset :6:9: error: reference to an undefined block ``` to ``` mlir/test/IR/invalid.mlir:15:9: error: reference to an undefined block ``` This does change the split to not produce always null terminated buffers and tools that need it, need to do so themselves (which is mostly by copying - this may have little actual impact as previously this was a copy too).
Diffstat (limited to 'clang/test/Modules/ModuleModuleDebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions