Variable Substitution Candidate List Generator for a Cpp file.
#
# <compile>
# (example executed at) Ubuntu 18.04
#
apt install clang libclang-dev make
mkdir bin
make
#
# <run examples>
#
# ./bin/vscm [input-file] [output-file] [main-function-mode (for now, just 0)] [candidate-select-mode]
# candidate-select-mode=0 : no-filter
bin/vscm test/tc.cpp test/log8.txt 0 0
# candidate-select-mode=1 : exact-type-filter
bin/vscm test/tc.cpp test/log9.txt 0 1
Written in csv format, it separates 10 datas in one line. Lines are separated with newline \n character. The following is a sequence of 10 datas.
- Target-Ref Line
unsigned - Target-Ref Column
unsigned - Target-Ref Offset
unsigned - Target-Var Length (target variable's length)
size_t - Target Variable
string - Candidate-Def Line
unsigned - Candidate-Def Column
unsigned - Candidate-Def Offset
unsigned - Candidate-Var Length
size_t - Candidate Variable
string