================
@@ -22,6 +22,23 @@
using namespace clang;
using namespace dependencies;
+void ModuleCacheEntries::addInvalidatedPath(StringRef Path) {
+ assert(llvm::sys::path::is_absolute(Path) &&
+ "invalidated paths must be absolute");
+ SmallString<256> Canonical(Path);
+ llvm::sys::path::remove_dots(Canonical, /*remove_dot_dot=*/true);
----------------
ojhunt wrote:
It'd super great that an "absolute" path can have dotted dirs :-/ (not an issue
for this PR, just a ???)
https://github.com/llvm/llvm-project/pull/229559
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits