OSDN Git Service

llvm-undname: Several behavior-preserving changes to increase coverage
authorNico Weber <nicolasweber@gmx.de>
Tue, 4 Jun 2019 15:13:30 +0000 (15:13 +0000)
committerNico Weber <nicolasweber@gmx.de>
Tue, 4 Jun 2019 15:13:30 +0000 (15:13 +0000)
commita94891b42dce7a570d729472cbea19fd1ef201c2
tree26148add43135b1e9aa75dd74f80a61403aa163c
parent8467d10c7afdbb64fb709997a308281659b966c0
llvm-undname: Several behavior-preserving changes to increase coverage

- Replace `Error = true` in a few branches that are truly unreachable
  with DEMANGLE_UNREACHABLE

- Remove early return early in startsWithLocalScopePattern() because
  it's redundant with the next two early returns

- Remove unreachable `case '0'` (it's handled in the branch below)

- Remove an unused bool return

- Add test coverage for several early error returns, mostly in
  array type parsing

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362506 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Demangle/MicrosoftDemangle.cpp
lib/Demangle/MicrosoftDemangleNodes.cpp
test/Demangle/invalid-manglings.test
test/Demangle/ms-basic.test