diff options
author | Gabor Marton <gabor.marton@ericsson.com> | 2020-02-21 15:54:58 +0100 |
---|---|---|
committer | Gabor Marton <gabor.marton@ericsson.com> | 2020-02-21 15:54:58 +0100 |
commit | a49a41e7855fad426abf6ee9b8b88a535e8d33cc (patch) | |
tree | 3de5e21487611869e5100d73c46a7f6826deec37 /clang/lib/AST/ASTStructuralEquivalence.cpp | |
parent | 4fdaac0e1eb8e75fe59de0bd01cf72329dacbdb4 (diff) | |
download | llvm-a49a41e7855fad426abf6ee9b8b88a535e8d33cc.zip llvm-a49a41e7855fad426abf6ee9b8b88a535e8d33cc.tar.gz llvm-a49a41e7855fad426abf6ee9b8b88a535e8d33cc.tar.bz2 |
[AST][NFC] Update outdated comments in ASTStructuralEquivalence.cpp
Diffstat (limited to 'clang/lib/AST/ASTStructuralEquivalence.cpp')
-rw-r--r-- | clang/lib/AST/ASTStructuralEquivalence.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/clang/lib/AST/ASTStructuralEquivalence.cpp b/clang/lib/AST/ASTStructuralEquivalence.cpp index 91a2f3a..c29b7b2 100644 --- a/clang/lib/AST/ASTStructuralEquivalence.cpp +++ b/clang/lib/AST/ASTStructuralEquivalence.cpp @@ -31,10 +31,9 @@ // } // ``` // Indeed, it has it's queue, which holds pairs of nodes, one from each graph, -// this is the `DeclsToCheck` and it's pair is in `TentativeEquivalences`. -// `TentativeEquivalences` also plays the role of the marking (`marked`) -// functionality above, we use it to check whether we've already seen a pair of -// nodes. +// this is the `DeclsToCheck` member. `VisitedDecls` plays the role of the +// marking (`marked`) functionality above, we use it to check whether we've +// already seen a pair of nodes. // // We put in the elements into the queue only in the toplevel decl check // function: @@ -57,11 +56,6 @@ // doing. Thus, static implementation functions must not call the **member** // functions. // -// So, now `TentativeEquivalences` plays two roles. It is used to store the -// second half of the decls which we want to compare, plus it plays a role in -// closing the recursion. On a long term, we could refactor structural -// equivalency to be more alike to the traditional BFS. -// //===----------------------------------------------------------------------===// #include "clang/AST/ASTStructuralEquivalence.h" |