commit | 55d608cbadf1e9c05064f9287c057d50b7df65b4 | [log] [tgz] |
---|---|---|
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Sat Jun 20 08:09:14 2009 +0000 |
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Sat Jun 20 08:09:14 2009 +0000 |
tree | 308e4f7bc13f5573a126d2cadb3dd2f2a131a2e8 | |
parent | 06c27ee259dc8dbd20a3c4a7e7dec8de2844f895 [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