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
Showing
- include/clang/AST/Decl.h 3 additions, 0 deletionsinclude/clang/AST/Decl.h
- lib/AST/Decl.cpp 11 additions, 8 deletionslib/AST/Decl.cpp
- lib/Sema/SemaDeclAttr.cpp 4 additions, 9 deletionslib/Sema/SemaDeclAttr.cpp
- test/Sema/warn-main-return-type.c 6 additions, 4 deletionstest/Sema/warn-main-return-type.c
Loading
Please register or sign in to comment