diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-01-30 01:22:18 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-01-30 01:22:18 +0000 |
commit | 1d87fbaeea4a9fbbd73b3a53641f59f1673098e5 (patch) | |
tree | 366c9b6f38131c732d020fbe9c635b95085bb897 /lib/Sema/SemaCodeComplete.cpp | |
parent | 7adf4179f827b14b025135829dadeaa2442e1d42 (diff) |
Provide a fixit for constexpr non-static data members.
If the member has an initializer, assume it was probably intended to be static
and suggest/recover with that.
If the member doesn't have an initializer, assume it was probably intended to
be const instead of constexpr and suggest that.
(if the attempt to apply these changes fails, don't make any suggestion &
produce the same diagnostic experience as before. The only case where this can
come up that I know of is with a mutable constexpr with an initializer, since
mutable is incompatible with static (but it's already incompatible with
const anyway))
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173873 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaCodeComplete.cpp')
0 files changed, 0 insertions, 0 deletions