commit | 1d8052db5a38b62ba5f3802160dcccd87fa0b5b8 | [log] [tgz] |
---|---|---|
author | Ted Kremenek <kremenek@apple.com> | Tue May 03 01:33:35 2011 +0000 |
committer | Ted Kremenek <kremenek@apple.com> | Tue May 03 01:33:35 2011 +0000 |
tree | fceb67b053c3816cbf40de53a3e6c6ad7daf8729 | |
parent | 1dd986dff9ddfbec687975700770bb377988e9ed [diff] [blame] |
Use the canonical decl when generating the locations for USRs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130748 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/libclang/CIndexUSRs.cpp b/tools/libclang/CIndexUSRs.cpp index 9917d2a..4f1f071 100644 --- a/tools/libclang/CIndexUSRs.cpp +++ b/tools/libclang/CIndexUSRs.cpp
@@ -477,6 +477,9 @@ return true; } + // Use the location of canonical decl. + D = D->getCanonicalDecl(); + const SourceManager &SM = AU->getSourceManager(); SourceLocation L = D->getLocStart(); if (L.isInvalid()) {