aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>2023-11-10 10:54:02 +0800
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>2023-11-10 10:58:07 +0800
commit0e7b30fa821dd4899227aa643030f4e4164f4e56 (patch)
treefc79ac58a962b51e3c1352902056d280388b20cb /clang/unittests/Format/FormatTest.cpp
parentdc3faf0ed0e3f1ea9e435a006167d9649f865da1 (diff)
downloadllvm-0e7b30fa821dd4899227aa643030f4e4164f4e56.zip
llvm-0e7b30fa821dd4899227aa643030f4e4164f4e56.tar.gz
llvm-0e7b30fa821dd4899227aa643030f4e4164f4e56.tar.bz2
[C++20] [Modules] Enhance better diagnostic for implicit global module and module partitions
Due to an oversight, when users use an unexported declaration from implicit global module, the diagnostic will show "please #include" instead of "please import". This patch corrects the behavior. Also previously, when users use an unexported declarations from module partitions, the diagnostic message will always show the partition name no matter if that partition name is visible to the users. Now the users may only see the partition name if the users are in the same module with the partition unit.
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
0 files changed, 0 insertions, 0 deletions