diff options
author | Denis Fatkulin <fatkulin.denis@huawei.com> | 2023-02-10 17:19:11 +0300 |
---|---|---|
committer | Denis Fatkulin <fatkulin.denis@huawei.com> | 2023-02-10 17:40:21 +0300 |
commit | 04f4c4cc59db0f4db9cddcc5846d98491d4b65f5 (patch) | |
tree | b71abe1ce14df2566c2b21986cbb511c2f573be0 /clang/lib/Frontend/Rewrite/HTMLPrint.cpp | |
parent | fef08da4b75fc751c6117df2a0213a0b075d05f5 (diff) | |
download | llvm-04f4c4cc59db0f4db9cddcc5846d98491d4b65f5.zip llvm-04f4c4cc59db0f4db9cddcc5846d98491d4b65f5.tar.gz llvm-04f4c4cc59db0f4db9cddcc5846d98491d4b65f5.tar.bz2 |
[clangd] Move function body to out-of-line: unnamed class method incorrect moving
The refactoring !!Move function body to out-of-line!! produces incorrect code for methods of unnamed classes.
For this simple example
// foo.h
struct Foo {
struct {
void f^oo() {}
} Bar;
};
the refactoring generates code:
// foo.cpp
void Foo::(unnamed struct at D:\test\foo.h:2:3)foo() {}
Outplace definition for methods of unnamed classes is meaningless. The patch disables it.
Reviewed By: kadircet
Differential Revision: https://reviews.llvm.org/D143638
Diffstat (limited to 'clang/lib/Frontend/Rewrite/HTMLPrint.cpp')
0 files changed, 0 insertions, 0 deletions