llvm-project/clang/test/Index/Inputs
Argyrios Kyrtzidis b0e89906f5 [ASTReader] Allow controlling separately whether validation should be disabled for a PCH vs a module file
This addresses an issue with how the PCH preable works, specifically:

1. When using a PCH/preamble the module hash changes and a different cache directory is used
2. When the preamble is used, PCH & PCM validation is disabled.

Due to combination of #1 and #2, reparsing with preamble enabled can end up loading a stale module file before a header change and using it without updating it because validation is disabled and it doesn’t check that the header has changed and the module file is out-of-date.

rdar://72611253

Differential Revision: https://reviews.llvm.org/D95159
2021-01-21 20:45:54 -08:00
..
CommentXML
Frameworks
Headers
preamble-reparse-changed-module [ASTReader] Allow controlling separately whether validation should be disabled for a PCH vs a module file 2021-01-21 20:45:54 -08:00
a.h
annotate-comments-preprocessor.h
b.h
base_module_needs_vfs.h
c-index-pch.h
cindex-from-source.h
complete-at-EOF.c
complete-pch.h
crash-preamble-classes.h
crash-recovery-code-complete-remap.c
crash-recovery-reparse-remap.c
cycle.h
declare-objc-predef.h
empty.dia
empty.h
foo.h
get-cursor-includes-1.h
get-cursor-includes-2.h
guarded.h
hidden-redecls-sub.h
hidden-redecls.h
keep-going-template-instantiations.h
module-undef.h
module.map
module_needs_vfs.h
objc.h
pragma-once.h
pragma_disable_warning.h
preamble-reparse-1.c
preamble-reparse-2.c
preamble-with-error.h
preamble-with-implicit-import-A.h
preamble-with-implicit-import-B.h
preamble-with-implicit-import-C.h
preamble-with-implicit-import.h
preamble.h
preamble_macro_template.h
prefix.h
record-parsing-invocation-remap.c
redeclarations.h
remap-complete-to.c
remap-load-to.c
reparse-instantiate.h
reparse-issue.h
reparse-issue.h-0
reparse-issue.h-1
retain-comments-from-system-headers-module.map
retain-comments-from-system-headers.h
t1.c
t1.m
t2.c
t2.m
usrs-system.h
vfsoverlay.yaml