llvm-project/clang/lib/Format
mydeveloperday 7ee4236789 [clang-format] clang-format eats space in front of attributes for operator delete
https://github.com/llvm/llvm-project/issues/27037

Sorry its taken so long to get to this issue! (got it before it hit its 6th birthday!)

```
void operator delete(void *foo)ATTRIB;
```

(void *foo) is incorrectly determined to be a C-Style Cast resulting in the space being removed after the ) and before the attrib, due to the detection of

```
delete (A* )a;
```

The following was previously unaffected

```
void operator new(void *foo) ATTRIB;
```

Fixes #27037

Reviewed By: curdeius, HazardyKnusperkeks

Differential Revision: https://reviews.llvm.org/D116920
2022-01-13 07:57:45 +00:00
..
AffectedRangeManager.cpp [clang-format] Use range-for loops. NFC. 2022-01-07 10:01:09 +01:00
AffectedRangeManager.h
BreakableToken.cpp [clang-format] NFC use recently added Style.isJavaScript() 2021-12-21 14:24:12 +00:00
BreakableToken.h
CMakeLists.txt [clang-format] Style to separate definition blocks 2022-01-03 15:47:39 -05:00
ContinuationIndenter.cpp [clang-format][NFC] Merge another two calls to isOneOf 2022-01-03 23:06:55 +01:00
ContinuationIndenter.h
DefinitionBlockSeparator.cpp [clang-format] Fix comment. NFC. 2022-01-12 16:10:03 +01:00
DefinitionBlockSeparator.h [clang-format] Style to separate definition blocks 2022-01-03 15:47:39 -05:00
Encoding.h
Format.cpp [clang-format] Use prefix increment and decrement. NFC. 2022-01-07 11:19:53 +01:00
FormatInternal.h
FormatToken.cpp [clang-format] Use range-for loops. NFC. 2022-01-07 10:01:09 +01:00
FormatToken.h [clang-format] PR48916 PointerAlignment not working when using C++20 init-statement in for loop 2021-12-09 10:37:02 +00:00
FormatTokenLexer.cpp [clang-format] NFC use recently added Style.isJavaScript() 2021-12-21 14:24:12 +00:00
FormatTokenLexer.h
MacroExpander.cpp [clang] Fix a few comment typos to cycle bots 2021-09-20 18:48:34 -04:00
Macros.h
NamespaceEndCommentsFixer.cpp [clang-format] Use prefix increment and decrement. NFC. 2022-01-07 11:19:53 +01:00
NamespaceEndCommentsFixer.h
QualifierAlignmentFixer.cpp [clang-format] Use range-for loops. NFC. 2022-01-07 16:06:11 +01:00
QualifierAlignmentFixer.h [clang-format] Fix a crash (assertion) in qualifier alignment when matching template closer is null 2022-01-06 19:40:39 +00:00
SortJavaScriptImports.cpp [clang-format] Use range-for loops. NFC. 2022-01-07 16:06:11 +01:00
SortJavaScriptImports.h
TokenAnalyzer.cpp [clang-format] Use range-for loops. NFC. 2022-01-07 16:06:11 +01:00
TokenAnalyzer.h Make clang-format fuzz through Lexing with asserts enabled. 2021-11-19 14:44:06 +01:00
TokenAnnotator.cpp [clang-format] clang-format eats space in front of attributes for operator delete 2022-01-13 07:57:45 +00:00
TokenAnnotator.h [clang] Remove unused forward declarations (NFC) 2022-01-08 11:56:40 -08:00
UnwrappedLineFormatter.cpp [clang-format][NFC] Put all state change into the for statement 2022-01-05 12:31:36 +01:00
UnwrappedLineFormatter.h
UnwrappedLineParser.cpp [clang-format] Ensure we can correctly parse lambda in the template argument list 2022-01-10 08:29:35 +00:00
UnwrappedLineParser.h [clang-format][NFC] Handle wrapping after => in mustBreakBefore() 2021-12-21 16:42:52 -08:00
UsingDeclarationsSorter.cpp
UsingDeclarationsSorter.h
WhitespaceManager.cpp [clang-format] Use prefix increment and decrement. NFC. 2022-01-07 11:19:53 +01:00
WhitespaceManager.h [clang-format][NFC] Fix typo in comment 2022-01-05 17:33:16 +01:00