]> granicus.if.org Git - clang/commit
Improve location information in the representation of namespace
authorDouglas Gregor <dgregor@apple.com>
Wed, 1 Sep 2010 00:08:19 +0000 (00:08 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 1 Sep 2010 00:08:19 +0000 (00:08 +0000)
commit8ea5b9d832455247a15925398fb663d299d33238
tree4eb0813d0bc22badf9b31bae0c99092e41598479
parent0b6542cbc120f6db0bb8f593e050dae8a09a7281
Improve location information in the representation of namespace
aliases. Previously, the location of the alias was at the "namespace"
keyword. Now, it's on the identifier being declared (as is the custom
for Clang), and we keep a separate source location for the "namespace"
keyword.

Also, added a getSourceRange() member function to NamespaceAliasDecl
to correctly compute the source range.

Finally, removed a bunch of setters from NamespaceAliasDecl and gave
ASTReaderDecl friendship so that it could set the corresponding fields
directly.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112681 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/DeclCXX.h
lib/Serialization/ASTReaderDecl.cpp
lib/Serialization/ASTWriterDecl.cpp
test/Index/load-namespaces.cpp