diff options
author | Yaron Keren <yaron.keren@gmail.com> | 2015-02-07 22:16:16 +0000 |
---|---|---|
committer | Yaron Keren <yaron.keren@gmail.com> | 2015-02-07 22:16:16 +0000 |
commit | 6acf794143c5b35dc01dda90d12296572c1b1120 (patch) | |
tree | 89d9b09771a91b13116b65f3e67397de470edca0 /docs/InternalsManual.rst | |
parent | 887264b15650af1832f5ef1a56e8c7502edaa85e (diff) |
Replace DeclContext::getNextContext with DeclContext::collectAllContexts
in the Clang CFE Internals Manual (done in r147729).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@228510 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/InternalsManual.rst')
-rw-r--r-- | docs/InternalsManual.rst | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/docs/InternalsManual.rst b/docs/InternalsManual.rst index 502cae44b3..7bb34b788a 100644 --- a/docs/InternalsManual.rst +++ b/docs/InternalsManual.rst @@ -1323,11 +1323,13 @@ range of iterators over declarations of "``f``". ``DeclContext`` manages multiply-defined declaration contexts internally. The function ``DeclContext::getPrimaryContext`` retrieves the "primary" context for a given ``DeclContext`` instance, which is the ``DeclContext`` responsible for -maintaining the lookup table used for the semantics-centric view. Given the -primary context, one can follow the chain of ``DeclContext`` nodes that define -additional declarations via ``DeclContext::getNextContext``. Note that these -functions are used internally within the lookup and insertion methods of the -``DeclContext``, so the vast majority of clients can ignore them. +maintaining the lookup table used for the semantics-centric view. Given a +DeclContext, one can obtain the set of declaration contexts that are semanticaly +connected to this declaration context, in source order, including this context +(which will be the only result, for non-namespace contexts) via +``DeclContext::collectAllContexts``. Note that these functions are used +internally within the lookup and insertion methods of the ``DeclContext``, so +the vast majority of clients can ignore them. .. _CFG: |