[PATCH] D126266: Mark the file entry invalid, until reread. Invalidate SLocEntry cache, readd it on reread. Do not use translateFile, because it pulls in parts of the pch.

Vassil Vassilev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 23 22:04:30 PDT 2022


v.g.vassilev added a subscriber: cfe-commits.
v.g.vassilev added reviewers: rsmith, vsapsai.
v.g.vassilev added a comment.

Just to add that the `invalidateCache` is important for cling and clang-repl where we do something like:

clang-repl> #include "file_with_error.h"
// error is printed, we edit the file and include it again:
clang-repl> #include "file_with_error.h"

I am not sure if we can write such a test for clang-repl easily using the lit infrastructure...


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D126266/new/

https://reviews.llvm.org/D126266



More information about the cfe-commits mailing list