Page MenuHomePhabricator

[clang-format] [PR44476] Add space between template and attribute
ClosedPublic

Authored by MyDeveloperDay on May 13 2020, 1:20 PM.

Details

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

Diff Detail

Event Timeline

MyDeveloperDay created this revision.May 13 2020, 1:20 PM
MyDeveloperDay added a reviewer: abrachet.

One spelling nit, but otherwise looks good to me.

clang/lib/Format/TokenAnnotator.cpp
2900

Nit: template

MyDeveloperDay edited the summary of this revision. (Show Details)

Correct the typo

This revision is now accepted and ready to land.May 18 2020, 7:47 AM
This revision was automatically updated to reflect the committed changes.