aboutsummaryrefslogtreecommitdiff
path: root/lib/Basic/ConvertUTF.c
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-01-30 01:22:18 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-01-30 01:22:18 +0000
commit1d87fbaeea4a9fbbd73b3a53641f59f1673098e5 (patch)
tree366c9b6f38131c732d020fbe9c635b95085bb897 /lib/Basic/ConvertUTF.c
parent7adf4179f827b14b025135829dadeaa2442e1d42 (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/Basic/ConvertUTF.c')
0 files changed, 0 insertions, 0 deletions