]> granicus.if.org Git - clang/commit
[clang-format] [PR27004] omits leading space for noexcept when formatting operator...
authorPaul Hoad <mydeveloperday@gmail.com>
Mon, 7 Oct 2019 17:03:44 +0000 (17:03 +0000)
committerPaul Hoad <mydeveloperday@gmail.com>
Mon, 7 Oct 2019 17:03:44 +0000 (17:03 +0000)
commit880337da30b1a14d5170c1be4ec55279be573c22
treec43a5e1a13eddde7d5c2f5ea4c1d702f532fd282
parent398e1024bf03a6ddac20f1c5796a7cf796927efc
[clang-format] [PR27004] omits leading space for noexcept when formatting operator delete()

Summary:
clang-format is incorrectly thinking the parameter parens are part of a cast operation, this is resulting in there sometimes being not space between the paren and the noexcept (and other keywords like volatile etc..)

```
void operator++(int) noexcept;
void operator++(int &) noexcept;
void operator delete(void *, std::size_t, const std::nothrow_t &)noexcept;
```

Reviewers: klimek, owenpan, mitchell-stellar

Reviewed By: mitchell-stellar

Subscribers: cfe-commits

Tags: #clang-format, #clang

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@373922 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTest.cpp