| commit | a3aeb5a8f1e5fc9d060e160fd8a3eb80d864e9a9 | [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 | 7dddbf19e8681c42667777d46d4ccd55d0099a56 | |
| parent | ef21d5d8702a1e8a46b75e7232af6185b9bde102 [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. llvm-svn: 73821