C预处理器库

Kij*_*jan 4 c c-preprocessor

我有一个为C程序开发源分析工具的任务,我需要在分析之前预处理代码.我想知道什么是最好的图书馆.我需要轻巧便携的东西.

NPE*_*NPE 5

为什么不使用套件cpp的一部分而不是自己推出gcc:http://gcc.gnu.org/onlinedocs/gcc-4.6.1/cpp/

CPP(1)                                GNU                               CPP(1)

NAME
       cpp - The C Preprocessor

SYNOPSIS
       cpp [-Dmacro[=defn]...] [-Umacro]
           [-Idir...] [-iquotedir...]
           [-Wwarn...]
           [-M|-MM] [-MG] [-MF filename]
           [-MP] [-MQ target...]
           [-MT target...]
           [-P] [-fno-working-directory]
           [-x language] [-std=standard]
           infile outfile

       Only the most useful options are listed here; see below for the
       remainder.

DESCRIPTION
       The C preprocessor, often known as cpp, is a macro processor that is
       used automatically by the C compiler to transform your program before
       compilation.  It is called a macro processor because it allows you to
       define macros, which are brief abbreviations for longer constructs.
Run Code Online (Sandbox Code Playgroud)