[PATCH] D39937: [Sema] Improve diagnostics for const- and ref-qualified member functions
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 18 14:30:06 PST 2017
aaron.ballman added inline comments.
================
Comment at: test/CXX/over/over.match/over.match.funcs/p4-0x.cpp:85
+void test_diagnostics(const volatile X0 &__restrict__ cvr) {
+ cvr.g(); // expected-error {{not marked const or volatile}}
+ cvr.c(); // expected-error {{not marked volatile}}
----------------
You should spell out the entire diagnostic at least the first time it appears in the file.
https://reviews.llvm.org/D39937
More information about the cfe-commits
mailing list