This is a error in the documentation.
The APIs for programs are as follows:
clCreateProgramWithSource - create a program object from a source string
clBuildProgram - build a program object, for a set of devices
The later function has a parameter "const char * options" and it is this that should set the flag for building C++:
"-x clc++"
Sorry for the confusion.