diff options
author | sstwcw <f0gukp2nk@protonmail.com> | 2022-09-16 13:18:21 +0000 |
---|---|---|
committer | sstwcw <f0gukp2nk@protonmail.com> | 2022-09-16 13:30:46 +0000 |
commit | e5964223d99a119e4077e3ed1f1322fa2b8cc703 (patch) | |
tree | 1ff791478e61044720a2a57d6ef54ff7ff150a59 /libcxx/src/filesystem/operations.cpp | |
parent | 2183fe2160fbcb754893e98829f2bff4d0fccfa3 (diff) | |
download | llvm-e5964223d99a119e4077e3ed1f1322fa2b8cc703.zip llvm-e5964223d99a119e4077e3ed1f1322fa2b8cc703.tar.gz llvm-e5964223d99a119e4077e3ed1f1322fa2b8cc703.tar.bz2 |
[clang-format] Fix template arguments in macros
Fixes https://github.com/llvm/llvm-project/issues/57738
old
```
#define FOO(typeName, realClass) \
{ \
#typeName, foo < FooType>(new foo <realClass>(#typeName)) \
}
```
new
```
#define FOO(typeName, realClass) \
{ #typeName, foo<FooType>(new foo<realClass>(#typeName)) }
```
Previously, when an UnwrappedLine began with a hash in a macro
definition, the program incorrectly assumed the line was a preprocessor
directive. It should be stringification.
The rule in spaceRequiredBefore was added in 8b5297117b. Its purpose is
to add a space in an include directive. It also added a space to a
template opener when the line began with a stringification hash. So we
changed it.
Reviewed By: HazardyKnusperkeks, owenpan
Differential Revision: https://reviews.llvm.org/D133954
Diffstat (limited to 'libcxx/src/filesystem/operations.cpp')
0 files changed, 0 insertions, 0 deletions