[clang-format] [PR44476] Add space between template and attribute
authormydeveloperday <mydeveloperday@gmail.com>
Tue, 19 May 2020 15:43:50 +0000 (16:43 +0100)
committermydeveloperday <mydeveloperday@gmail.com>
Tue, 19 May 2020 15:43:50 +0000 (16:43 +0100)
commit07740dd08b572af26d9fdeed2615f3a6996bee22
treea9343133db597e77013bda3068d944337a1c1123
parent6189dd06ad4889dfbccf185f9d81e72fe9173a8a
[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
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp