[PATCH] D115567: [Sema] Add FixIt when a C++ out-of-line method has extra/missing const
Haojian Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 13 01:10:19 PST 2021
hokein accepted this revision.
hokein added inline comments.
This revision is now accepted and ready to land.
================
Comment at: clang/test/FixIt/member-mismatch.cpp:9
+
+// CHECK: fix-it:"{{.*}}":{10:15-10:15}:" const"
+int Foo::get() {} // expected-error {{does not match any declaration}}
----------------
nit: using annotation `[[@LINE+1]]:15` can make the test more robust.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115567/new/
https://reviews.llvm.org/D115567
More information about the cfe-commits
mailing list