[llvm] [Support] Refactor SourceMgr location formatting to reduce code duplication (NFC) (PR #213798)

via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 4 04:56:57 PDT 2026


zhangweize9-cyber wrote:

Here's my locally test, all 42 test in `SourceMgr` passed successfully!  

```bash
# RUN: cd build
#      ninja SupportTests
#      ./unittests/Support/SupportTests --gtest_filter=*SourceMgr*

# Command Output:
# ......
[----------] Global test environment tear-down
[==========] 42 tests from 1 test suite ran. (2 ms total)
[  PASSED  ] 42 tests.
```

<img width="855" height="776" alt="2026-08-04 195129" src="https://github.com/user-attachments/assets/8f756689-c653-4c48-aa74-3db3141087d5" />


https://github.com/llvm/llvm-project/pull/213798


More information about the llvm-commits mailing list