summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2011-02-22 00:36:53 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2011-02-22 00:36:53 +0000
commit59006e4338ce2029fefe3ce584b65a4637f8bfcc (patch)
treeda00d205f36859eb5e24144b43a901fdf4a90fc8 /clang/lib/Frontend/CompilerInvocation.cpp
parente39062199e2f9df1b276e8cbd1f2599c11685bce (diff)
downloadbcm5719-llvm-59006e4338ce2029fefe3ce584b65a4637f8bfcc.tar.gz
bcm5719-llvm-59006e4338ce2029fefe3ce584b65a4637f8bfcc.zip
Fix a few auto-related issues:
* 'auto' was being rejected on abstract-declarators with trailing return types and on typedefs with trailing return types. 'auto' is always allowed in these cases. This was found while testing the fix for PR 9278. * A very poor diagnostic was being issued for auto (f() -> int): "return type must be 'auto', not 'auto'". This is closely related to PR 9060. * Trailing return type handling was happening slightly too late, resulting in the checks for functions returning arrays and functions returning functions being missed. llvm-svn: 126166
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud