diff options
author | Krasimir Georgiev <krasimir@google.com> | 2020-01-17 13:26:24 +0100 |
---|---|---|
committer | Krasimir Georgiev <krasimir@google.com> | 2020-01-17 13:33:41 +0100 |
commit | 33463cfba2be7c8d6c08e666123cc34f114a1f3e (patch) | |
tree | 8aa4075b331191ffe91dbc2913d0c443aa6f8d5e /llvm/lib/CodeGen/ReachingDefAnalysis.cpp | |
parent | ea91758a3c4507af18cc711f6c0695e9e7137693 (diff) | |
download | llvm-33463cfba2be7c8d6c08e666123cc34f114a1f3e.zip llvm-33463cfba2be7c8d6c08e666123cc34f114a1f3e.tar.gz llvm-33463cfba2be7c8d6c08e666123cc34f114a1f3e.tar.bz2 |
clang-format: fix spacing in `operator const char*()`
Summary:
Revision a75f8d98d7ac9e557b238a229a9a2647c71feed1 fixed spacing for operators,
but caused the const and non-const versions to diverge:
```
// With Style.PointerAlignment = FormatStyle::PAS_Left:
struct A {
operator char*() { return ""; }
operator const char *() const { return ""; }
};
```
The code was checking if the type specifier was directly preceded by `operator`.
However there could be comments and `const/volatile` in between.
Reviewers: mprobst
Reviewed By: mprobst
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D72911
Diffstat (limited to 'llvm/lib/CodeGen/ReachingDefAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions