forked from OSchip/llvm-project
Fixed comment of Sema::FindInstantiatedDecl.
llvm-svn: 185997
This commit is contained in:
parent
9f35cfaf08
commit
ed5fe90bb8
|
@ -3567,11 +3567,11 @@ DeclContext *Sema::FindInstantiatedContext(SourceLocation Loc, DeclContext* DC,
|
|||
/// template struct X<int>;
|
||||
/// \endcode
|
||||
///
|
||||
/// In the instantiation of X<int>::getKind(), we need to map the
|
||||
/// EnumConstantDecl for KnownValue (which refers to
|
||||
/// X<T>::\<Kind>\::KnownValue) to its instantiation
|
||||
/// (X<int>::\<Kind>\::KnownValue). InstantiateCurrentDeclRef() performs
|
||||
/// this mapping from within the instantiation of X<int>.
|
||||
/// In the instantiation of <tt>X<int>::getKind()</tt>, we need to map the
|
||||
/// \p EnumConstantDecl for \p KnownValue (which refers to
|
||||
/// <tt>X<T>::<Kind>::KnownValue</tt>) to its instantiation
|
||||
/// (<tt>X<int>::<Kind>::KnownValue</tt>). \p FindInstantiatedDecl performs
|
||||
/// this mapping from within the instantiation of <tt>X<int></tt>.
|
||||
NamedDecl *Sema::FindInstantiatedDecl(SourceLocation Loc, NamedDecl *D,
|
||||
const MultiLevelTemplateArgumentList &TemplateArgs) {
|
||||
DeclContext *ParentDC = D->getDeclContext();
|
||||
|
|
Loading…
Reference in New Issue