[all-commits] [llvm/llvm-project] 4551e5: [clang] Reset FileID based diag state mappings (#1...

kadir çetinkaya via All-commits all-commits at lists.llvm.org
Thu Jun 12 01:49:45 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4551e5035565606eb04253a35f31d51685657436
      https://github.com/llvm/llvm-project/commit/4551e5035565606eb04253a35f31d51685657436
  Author: kadir çetinkaya <kadircet at google.com>
  Date:   2025-06-12 (Thu, 12 Jun 2025)

  Changed paths:
    M clang/include/clang/Basic/Diagnostic.h
    M clang/lib/Basic/Diagnostic.cpp
    M clang/lib/Basic/SourceManager.cpp
    M clang/unittests/Frontend/CompilerInstanceTest.cpp

  Log Message:
  -----------
  [clang] Reset FileID based diag state mappings (#143695)

When sharing same compiler instance for multiple compilations, we reset
source manager's file id tables in between runs. Diagnostics engine
keeps a cache based on these file ids, that became dangling references
across compilations.

This patch makes sure we reset those whenever sourcemanager is trashing
its FileIDs.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list