| commit | 545473e26c6df9a7d683436aba6f778f3637853c | [log] [tgz] |
|---|---|---|
| author | Argiris Kirtzidis <akyrtzi@gmail.com> | Sat Jun 20 08:09:14 2009 +0000 |
| committer | Argiris Kirtzidis <akyrtzi@gmail.com> | Sat Jun 20 08:09:14 2009 +0000 |
| tree | 308e4f7bc13f5573a126d2cadb3dd2f2a131a2e8 | |
| parent | f82550bab5b24a51bea992fc85b8e08308f9b301 [diff] |
Introduce Decl::getSourceRange() which, like Stmt::getSourceRange(), represents the range that the declaration covers. Add initial support for NamespaceDecl, VarDecl, and FunctionDecl: -NamespaceDecl range is from name to '}' -VarDecl is from name to possible init expression -FunctionDecl is from name to last parameter name or to end of its function body. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73821 91177308-0d34-0410-b5e6-96231b3b80d8