[all-commits] [llvm/llvm-project] f61c13: [clang][modules] NFCI: Pragma diagnostic mappings:...

Jan Svoboda via All-commits all-commits at lists.llvm.org
Tue Nov 1 19:06:25 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f61c135a69084e470b73c26a8134785808ee246f
      https://github.com/llvm/llvm-project/commit/f61c135a69084e470b73c26a8134785808ee246f
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2022-11-01 (Tue, 01 Nov 2022)

  Changed paths:
    M clang/include/clang/Serialization/ASTBitCodes.h
    M clang/lib/Serialization/ASTReader.cpp
    M clang/lib/Serialization/ASTWriter.cpp

  Log Message:
  -----------
  [clang][modules] NFCI: Pragma diagnostic mappings: write/read FileID instead of SourceLocation

For pragma diagnostic mappings, we always write/read `SourceLocation` with offset 0. This is equivalent to just writing a `FileID`, which is exactly what this patch starts doing.

Depends on D137211.

Reviewed By: dexonsmith

Differential Revision: https://reviews.llvm.org/D137213




More information about the All-commits mailing list