Skip to main content

Module clones

Module clones 

Source
Expand description

Token and AST-label normalization for C++ structural-clone candidates.

CloneCandidateData and compact_clone_excerpt are analysis-owned and the declaration source comes from the analyzer, so analyzer/cpp/clones.rs keeps the ~12-LOC entry point; everything that knows C++ is here.

Functionsยง

cpp_clone_parser
cpp_clone_profile
The normalized token stream and the joined AST-label signature for one C++ declaration body, in a single walk.