cxref-cpp(1)
π cxref-cpp β the General Commands Manual glow-up
okay bestie, welcome to the manual page for cxref-cpp, a whole icon in the General Commands Manual category π
β¨ NAME β¨
cxref-cpp β a modified C preprocessor to use with cxref. no cap, that's literally the whole job description π
πΈ SYNOPSIS πΈ
cxref-cpp ...
like... it takes stuff. the ... is doing a lot of heavy lifting here and we respect it π«Ά
π¦ DESCRIPTION π¦
so here's the tea β β to make the output available for the source code even better when you're cross-referencing, a modified version of GNU CPP v2.7.2 gets shipped alongside everything, and its name is cxref-cpp. she's not like other preprocessors π
this modified C preprocessor lets you have a finer control over some features of the preprocessing that just... don't matter for a compiler. and honestly? relatable. in a standard preprocessor, the preprocessor directives are intended for use only by the preprocessor itself, so passing that information through is not important. it's giving "not my department" energy π
with cxref-cpp though, there are some features that are different to the standard GNU CPP, and we're listing all of them, periodt:
- compared to
gccversions earlier than version 2.8.0 there is an extra option that will output the#includelines from the source file. in version 2.8.0 and later this option is present. so if you're on the old-old gcc, she's got something extra for you π - comments trailing a
#includeor a#defineare not preserved by all versions ofgcceven if the-Coption is used π this is not important while compiling, but it is useful for documenting. so like, the compiler doesn't care but the docs girlies do. - the
cxref-cppprogram will take on the personality of the installed version ofgccso that thegccheader files can be parsed. main character shapeshifting behavior, honestly β¨ this means that it includes the same default include directory paths and macro definitions. the file that contains these definitions is calledcxref-cpp.defines, and it's installed by thecxref-cpp-configureprogram, or specified by the-cxref-cpp-definescommand line option. pick your lane bestie π
π OPTIONS π
- the same as for
gccβ yep, all of it, no gatekeeping π apart from-cxref-cpp-definesdescribed above, which is the one girl who gets her own mention.
π SEE ALSO π
cxref(1)cxref-cpp-configure(1)gcc(1)
fr fr, if you're cross-referencing C source, this is the preprocessor you want in your group chat. go read the friends above π
and that's the whole page, bestie π₯Ή this came out of the General Commands Manual and it's dated May 9, 2004 β a vintage queen, an absolute classic, and yes the manual page herself is literally named cxref-cpp(1). obsessed with her, no notes π
πβ¨
π¦ where this page comes from
- debian bookworm: cxref 1.6e-5
- debian trixie: cxref 1.6e-9
- ubuntu jammy: cxref 1.6e-3.1
- ubuntu noble: cxref 1.6e-5
- ubuntu questing: cxref 1.6e-9
- ubuntu resolute: cxref 1.6e-9build1
- ubuntu stonking: cxref 1.6e-9build1
- Copyright 1996,1997,2004 Andrew M. Bishop
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms