GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - chrchr-github/simplecpp: C++ preprocessor

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

693 Commits
693 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
testsuite
testsuite
 
 
.clang-tidy
.clang-tidy
 
 
.git-blame-ignore-revs
.git-blame-ignore-revs
 
 
.gitignore
.gitignore
 
 
.uncrustify.cfg
.uncrustify.cfg
 
 
CMakeLists.txt
CMakeLists.txt
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
appveyor.yml
appveyor.yml
 
 
integration_test.py
integration_test.py
 
 
main.cpp
main.cpp
 
 
run-tests.py
run-tests.py
 
 
runformat
runformat
 
 
selfcheck.sh
selfcheck.sh
 
 
simplecpp.cpp
simplecpp.cpp
 
 
simplecpp.h
simplecpp.h
 
 
test.cpp
test.cpp
 
 
testutils.py
testutils.py
 
 

Repository files navigation

Simple C/C++ preprocessor

This is a simple C/C++ preprocessor.

The goal is to have good conformance with the C and C++ standards and to handle nonstandard preprocessor extensions in gcc / clang / visual studio preprocessors. Most of the preprocessor testcases in gcc and clang are handled OK by simplecpp.

To see how you can use simplecpp in your project, you can look at the file main.cpp.

Simplecpp has better fidelity than normal C/C++ preprocessors.

  • Preprocessor directives are available.
  • Comments are available.
  • Tracking macro usage.

This information is normally lost during preprocessing but it can be necessary for proper static analysis.

Status

CI-windows CI Unixish

Compiling

Compiling standalone simplecpp preprocessor:

Either:

g++ -o simplecpp main.cpp simplecpp.cpp

Or:

make

Compiling and running tests (you need python to run the gcc/clang test cases)

make test

About

C++ preprocessor

Resources

Readme
0BSD license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.