I'm not quite sure what you are asking for, however you can use almost any language of the program to analyze source.cpp and source.h to find the declaration / definition of the function and add inline based on some rule.
Basically you will treat source.cpp as .txt and use any api of your preference to get files as char * . Ask to search ( , then find options and close ) .
// FindFunctions.cpp #include "..." ... char * AddFuncDecChars( _In_ char * file, char * stringToBeInserted) { //Find possible functions with `()`. int[] PossFuncs = FindParenths(File); // Check to see if space delimited block followed by another block or // multiple space delimited blocks with commas. int[] VerifiedParens HasSpaceDelimWithPossibleCommas( PossFuncs, File); char * Change InsertStringToFunc( File, VerifiedParen, stringToBeInserted); return Change; }
Also, inline should have a definition in the header, not cpp, so maybe it needs to be added to the headers by taking a pair of .h and .cpp .
source share