[all-commits] [llvm/llvm-project] 07740d: [clang-format] [PR44476] Add space between templat...

MyDeveloperDay via All-commits all-commits at lists.llvm.org
Tue May 19 08:44:53 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 07740dd08b572af26d9fdeed2615f3a6996bee22
      https://github.com/llvm/llvm-project/commit/07740dd08b572af26d9fdeed2615f3a6996bee22
  Author: mydeveloperday <mydeveloperday at gmail.com>
  Date:   2020-05-19 (Tue, 19 May 2020)

  Changed paths:
    M clang/lib/Format/TokenAnnotator.cpp
    M clang/unittests/Format/FormatTest.cpp

  Log Message:
  -----------
  [clang-format] [PR44476] Add space between template and attribute

Summary:
https://bugs.llvm.org/show_bug.cgi?id=44476

```template <typename T> [[nodiscard]] int a() { return 1; }```

gets incorrectly formatted to be

```template <typename T>[[nodiscard]] int a() { return 1; }```

This revision ensure there is a space between the template and the attribute

Reviewed By: JakeMerdichAMD

Subscribers: cfe-commits

Tags: #clang, #clang-format

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




More information about the All-commits mailing list