summaryrefslogtreecommitdiffstats
path: root/Tests/Module/GenerateExportHeader/c_identifier/main.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Tests: Port GenerateExportHeader test to RunCMake infrastructureBrad King2016-09-051-8/+0
| | | | This will allow build failure cases to be added later.
* Revise C++ coding style using clang-formatKitware Robot2016-05-161-1/+1
| | | | | | | | | | | | | Run the `Utilities/Scripts/clang-format.bash` script to update all our C++ code to a new style defined by `.clang-format`. Use `clang-format` version 3.8. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit.
* GenerateExportHeader: Generate only C identifiers as definesStephen Kelly2013-05-241-0/+8
The variables in this module are used to configure a header file with defines whose name depends on the name of the target. As valid names of targets may be invalid for use as defines, convert the names of the defines used to C identifiers first. This is already done in C++ code for the DEFINE_SYMBOL property. This is not as simple as ensuring that the BASE_NAME is a C identifier, because most of the define names are configurable, and because use of a BASE_NAME which is not a C identifier, such as 4square can become a C identifier by specifying a prefix in the generate_export_header macro.