CheckAPI
What is CheckAPI?
CheckAPI tool checks if the source.cpp file follows the compare.cpp file in term of functions and classes signatures. It can chekc if both codes are exactly the same or if source.cpp has at least all the functions and classes that are in compare.cpp. CheckAPI is dependent on Restrictor.
Commands:
CheckAPI compare.cpp source.cpp exactly
-Checks if both files have the same functions and classes
CheckAPI compare.cpp source.cpp at_least
-Checks if source.cpp have at least all the functions and classes that are in compare.cpp
Output options
-o: followed by either n or v (not case sensitive).
n: number of violation (default option).
v: verbose, list of violations with a minor explanation.
Example command with option:
CheckAPI compare.cpp source.cpp exactly -o v