aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJan Svoboda <jan_svoboda@apple.com>2023-05-30 21:06:50 -0700
committerJan Svoboda <jan_svoboda@apple.com>2023-05-30 21:06:51 -0700
commite6830b6028ec5434ccf8dbebdd992918f67b1751 (patch)
tree94813ba74063a562fcfcdb8e279e3185857c8d1f /clang/lib/Frontend/CompilerInvocation.cpp
parent0442d08fdb173d89b0779d32eb929957a344f5e6 (diff)
downloadllvm-e6830b6028ec5434ccf8dbebdd992918f67b1751.zip
llvm-e6830b6028ec5434ccf8dbebdd992918f67b1751.tar.gz
llvm-e6830b6028ec5434ccf8dbebdd992918f67b1751.tar.bz2
[clang][modules] NFCI: Extract optionality out of `Module::{Header,DirectoryName}`
Most users of `Module::Header` already assume its `Entry` is populated. Enforce this assumption in the type system and handle the only case where this is not the case by wrapping the whole struct in `std::optional`. Do the same for `Module::DirectoryName`. Depends on D151584. Reviewed By: benlangmuir Differential Revision: https://reviews.llvm.org/D151586
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions