[all-commits] [llvm/llvm-project] f69705: [clangd] PopulateSwitch: disable on dependent enums.

Adam Czachorowski via All-commits all-commits at lists.llvm.org
Wed Nov 25 05:20:27 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f6970503d291b7cae70fe583bed392387f93f9e4
      https://github.com/llvm/llvm-project/commit/f6970503d291b7cae70fe583bed392387f93f9e4
  Author: Adam Czachorowski <adamcz at google.com>
  Date:   2020-11-25 (Wed, 25 Nov 2020)

  Changed paths:
    M clang-tools-extra/clangd/refactor/tweaks/PopulateSwitch.cpp
    M clang-tools-extra/clangd/unittests/TweakTests.cpp

  Log Message:
  -----------
  [clangd] PopulateSwitch: disable on dependent enums.

If the enum is a dependent type, we would crash somewhere in
getIntWidth(). -Wswitch diagnostic doesn't work on dependent enums
either.

Differential Revision: https://reviews.llvm.org/D92051




More information about the All-commits mailing list