[C++20] [Modules] Handle reachability for enum class
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>
Fri, 15 Jul 2022 07:54:45 +0000 (15:54 +0800)
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>
Fri, 15 Jul 2022 07:57:04 +0000 (15:57 +0800)
commit2f1555fb11d74376347ee94eb3af258e047f68ce
tree34667e8528850855210272706d3d65b7058986ef
parentf75ccadcdd87328b946e43c8e88ccf3c8188ff4f
[C++20] [Modules] Handle reachability for enum class

In previous reachability patch, we missed the case for enum class.
Trying to handle it in this patch and add the corresponding tests.
clang/lib/Sema/SemaType.cpp
clang/test/Modules/enum-class.cppm [new file with mode: 0644]