[PATCH] D143096: [clangd] Provide patched diagnostics with preamble patch
    Kadir Cetinkaya via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Mon Feb 13 02:52:01 PST 2023
    
    
  
kadircet updated this revision to Diff 496900.
kadircet marked 12 inline comments as done.
kadircet added a comment.
- Change patching logic to iterate over diags instead of preamble lines
- Change translation logic to:
  - Preserve a diagnostic if its range can be translated.
  - Preserve all the notes whose range can be translated.
  - Preserve all the fixes whose edit ranges can be translated.
- Drop restrictions on ranges being a single line, make sure contents for all the lines are matched between modified and basline contents.
- Add couple new tests to demonstrate what's preserved.
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D143096/new/
https://reviews.llvm.org/D143096
Files:
  clang-tools-extra/clangd/ParsedAST.cpp
  clang-tools-extra/clangd/Preamble.cpp
  clang-tools-extra/clangd/Preamble.h
  clang-tools-extra/clangd/unittests/PreambleTests.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143096.496900.patch
Type: text/x-patch
Size: 17304 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230213/f3417d7e/attachment-0001.bin>
    
    
More information about the cfe-commits
mailing list