]> granicus.if.org Git - clang/commit
Don't produce a redundant "auto type is incompatible with C++98" on every lambda...
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 15 May 2018 21:27:30 +0000 (21:27 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 15 May 2018 21:27:30 +0000 (21:27 +0000)
commit0be5162f64047decec3c655bf3fb3618b3d8d8e8
treed3f0a887d3e4779b00f7e1cdde0ddde30193dfc3
parent126ee5d0eecfd774597e95decef55e1532885e1f
Don't produce a redundant "auto type is incompatible with C++98" on every lambda with no explicit return type.

We already warned about the lambda, and we don't have a source location for the imagined "auto" anyway.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@332401 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaType.cpp
test/SemaCXX/cxx98-compat.cpp