summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabor Marton <gabor.marton@ericsson.com>2019-10-07 11:15:18 +0000
committerGabor Marton <gabor.marton@ericsson.com>2019-10-07 11:15:18 +0000
commit8f7fbed85e4b4d977bb8af7b7a5dc12e82749e56 (patch)
tree3c8349ce84e858c20b128696b9779a0793e6310e
parent579882ae4407377671303f41d861d94d39a36549 (diff)
downloadbcm5719-llvm-8f7fbed85e4b4d977bb8af7b7a5dc12e82749e56.tar.gz
bcm5719-llvm-8f7fbed85e4b4d977bb8af7b7a5dc12e82749e56.zip
[ASTImporter][NFC] Update ASTImporter internals docs
llvm-svn: 373895
-rw-r--r--clang/docs/InternalsManual.rst13
1 files changed, 2 insertions, 11 deletions
diff --git a/clang/docs/InternalsManual.rst b/clang/docs/InternalsManual.rst
index 59f3cba699d..409432efcfb 100644
--- a/clang/docs/InternalsManual.rst
+++ b/clang/docs/InternalsManual.rst
@@ -1519,11 +1519,11 @@ statements are true:
- A and X are nodes from the same ASTContext.
- B and Y are nodes from the same ASTContext.
- A and B may or may not be from the same ASTContext.
-- if A == X (pointer equivalency) then (there is a cycle during the traverse)
+- if A == X and B == Y (pointer equivalency) then (there is a cycle during the
+ traverse)
- A and B are structurally equivalent if and only if
- - B and Y are part of the same redeclaration chain,
- All dependent nodes on the path from <A,B> to <X,Y> are structurally
equivalent.
@@ -1563,15 +1563,6 @@ the whole redeclaration chain of the function. The most recent version of the
declarations - regardless if they are definitions or prototypes - in the order
as they appear in the "from" context.
-.. Structural eq requires proper redecl chains
-
-Another reason why we must maintain and import redeclaration chains properly is
-that the :ref:`Structural Equivalency <structural-eq>` check would report false
-positive in-equivalencies otherwise. We must not allow having two (or more)
-independent redeclaration chains of structurally equivalent declarations.
-Structural equivalency identifies the chains with the canonical declaration,
-that becomes different for independent chains.
-
.. One definition
If we have an existing definition in the "to" context, then we cannot import
OpenPOWER on IntegriCloud