[all-commits] [llvm/llvm-project] b3faa1: Fix zero-initialization fix-it for variable template

v1nh1shungry via All-commits all-commits at lists.llvm.org
Thu Jan 19 09:36:03 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b3faa1a87ac37e3825a67368dfb8dcfef95f4c53
      https://github.com/llvm/llvm-project/commit/b3faa1a87ac37e3825a67368dfb8dcfef95f4c53
  Author: v1nh1shungry <v1nh1shungry at outlook.com>
  Date:   2023-01-19 (Thu, 19 Jan 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/AST/DeclTemplate.h
    A clang/test/FixIt/fixit-const-var-init.cpp

  Log Message:
  -----------
  Fix zero-initialization fix-it for variable template

Current version there is a fix-it for

template <class> constexpr int x = 0;
template <> constexpr int x<int>; // fix-it here
but it will cause

template <> constexpr int x = 0<int>;

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




More information about the All-commits mailing list