[all-commits] [llvm/llvm-project] e63d7b: [clangd] Fix include-cleaner false-positive bug

Sam McCall via All-commits all-commits at lists.llvm.org
Sat Feb 26 05:12:19 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e63d7bdc28e42b537ba29708e7db9f5d1dedefc0
      https://github.com/llvm/llvm-project/commit/e63d7bdc28e42b537ba29708e7db9f5d1dedefc0
  Author: Sam McCall <sam.mccall at gmail.com>
  Date:   2022-02-26 (Sat, 26 Feb 2022)

  Changed paths:
    M clang-tools-extra/clangd/IncludeCleaner.cpp
    M clang-tools-extra/clangd/unittests/IncludeCleanerTests.cpp

  Log Message:
  -----------
  [clangd] Fix include-cleaner false-positive bug

For TemplateSpecializationType, we were checking the node's newness
twice, so it always failed the second test.

Fixes https://github.com/clangd/clangd/issues/1036




More information about the All-commits mailing list