aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Basic/VirtualFileSystemTest.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2018-07-26 18:41:30 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2018-07-26 18:41:30 +0000
commitef6c43dc0cb2b05ec9b8500dfb934ac70664d591 (patch)
tree79a32edb31114f4d7b90a3e3f3a040bd4c7204d3 /clang/unittests/Basic/VirtualFileSystemTest.cpp
parentc5982fb6343110969c2bdcbc19559b299071b8b1 (diff)
downloadllvm-ef6c43dc0cb2b05ec9b8500dfb934ac70664d591.zip
llvm-ef6c43dc0cb2b05ec9b8500dfb934ac70664d591.tar.gz
llvm-ef6c43dc0cb2b05ec9b8500dfb934ac70664d591.tar.bz2
Refactor checking of switch conditions and case values.
Check each case value in turn while parsing it, performing the conversion to the switch type within the context of the expression itself. This will become necessary in order to properly handle cleanups for temporaries created as part of the case label (in an upcoming patch). For now it's just good hygiene. This necessitates moving the checking for the switch condition itself to earlier, so that the destination type is available when checking the case labels. As a nice side-effect, we get slightly improved diagnostic quality and error recovery by separating the case expression checking from the case statement checking and from tracking whether there are discarded case labels. llvm-svn: 338056
Diffstat (limited to 'clang/unittests/Basic/VirtualFileSystemTest.cpp')
0 files changed, 0 insertions, 0 deletions