[clang][modules] NFCI: Distinguish as-written and effective umbrella directories
authorJan Svoboda <jan_svoboda@apple.com>
Fri, 26 May 2023 19:24:06 +0000 (12:24 -0700)
committerJan Svoboda <jan_svoboda@apple.com>
Fri, 26 May 2023 22:14:16 +0000 (15:14 -0700)
commit924912956ed570e433440108cc50bd0ee65605b5
tree04f8015329ec3ed8bb7c375ddaf2867feec79bf3
parent7adff65d4abf4b743e3834505cdb1a580b4d966e
[clang][modules] NFCI: Distinguish as-written and effective umbrella directories

For modules with umbrellas, we track how they were written in the module map. Unfortunately, the getter for the umbrella directory conflates the "as written" directory and the "effective" directory (either the written one or the parent of the written umbrella header).

This patch makes the distinction between "as written" and "effective" umbrella directories clearer. No functional change intended.

Reviewed By: benlangmuir

Differential Revision: https://reviews.llvm.org/D151581
clang-tools-extra/modularize/CoverageChecker.cpp
clang-tools-extra/modularize/ModularizeUtilities.cpp
clang/include/clang/Basic/Module.h
clang/include/clang/Lex/ModuleMap.h
clang/lib/Basic/Module.cpp
clang/lib/Frontend/FrontendAction.cpp
clang/lib/Lex/ModuleMap.cpp
clang/lib/Lex/PPLexerChange.cpp
clang/lib/Serialization/ASTReader.cpp
clang/lib/Serialization/ASTWriter.cpp