autofix-signature-mismatch
Fixes function call errors with wrong number or type of arguments.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Fixes function call errors with wrong number or type of arguments.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Comprehensive build error repair tool for C++, Rust, and Java projects using Soong, GN, Make, or CMake. Automatically fixes 30+ types of errors including headers, linking, APIs, and config.
Fixes type mismatch errors by adding appropriate casts or conversions.
Fixes syntax errors in Android.bp files.
Removes unsupported or unknown compiler flags from build configurations.
Fixes scope and variable errors in BUILD.gn files.
Fixes script permission errors by making files executable.
| name | autofix-signature-mismatch |
| description | Fixes function call errors with wrong number or type of arguments. |
Fixes errors where function calls don't match their declarations.
no matching function for call to 'X'too many arguments to function 'X'too few arguments to function 'X'candidate function not viableExtract:
grep -r "returnType functionName(" --include="*.h"
Case: Too many arguments
// Declaration: void foo(int a);
// Call: foo(1, 2); // ERROR: too many
// Fix: foo(1);
Case: Too few arguments
// Declaration: void bar(int a, int b);
// Call: bar(1); // ERROR: too few
// Fix: bar(1, 0); // Add default or required value
Case: Wrong type
// Declaration: void process(const char* str);
// Call: process(myString); // myString is std::string
// Fix: process(myString.c_str());
Ensure the fix compiles and maintains intended behavior.