]> granicus.if.org Git - clang/commit
Make FunctionDecl::getReturnTypeSourceRange() support non-builtin types
authorAlp Toker <alp@nuanti.com>
Wed, 2 Jul 2014 12:55:58 +0000 (12:55 +0000)
committerAlp Toker <alp@nuanti.com>
Wed, 2 Jul 2014 12:55:58 +0000 (12:55 +0000)
commit862a959d36f83378dbc0a18079dea5a01394b36b
tree96bdc1a3a8dc32e6c7a9af3e727db3a554f7c21a
parentf789c57348f2c28214ea26a2c0b4260ab3c1af50
Make FunctionDecl::getReturnTypeSourceRange() support non-builtin types

Also document that the function is a "best-effort" facility to extract source
ranges from limited AST type location info.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212174 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Decl.h
lib/AST/Decl.cpp
lib/Sema/SemaDeclAttr.cpp
test/Sema/warn-main-return-type.c