Strips a C++ extension from a path, yielding the executable path polyman compiles to. Paths without a C++ extension are returned unchanged.
Path to a C++ source
Path without its .cpp / .cc / .cxx suffix
.cpp
.cc
.cxx
stripCppExtension('/p/solutions/main.cc'); // '/p/solutions/main' Copy
stripCppExtension('/p/solutions/main.cc'); // '/p/solutions/main'
Strips a C++ extension from a path, yielding the executable path polyman compiles to. Paths without a C++ extension are returned unchanged.