Rate This Document
Findability
Accuracy
Completeness
Readability

-aux-info Option Not Supported

Error Information

No error message is displayed.

Problem

The -aux-info option is used to export all functions (including those in header files) declared or defined in the compilation unit to a specified input file.

This option is generally used to automatically generate *.h files from *.c files.

Clang does not support this option.

Solution

Do not use options that are not supported by Clang.

If the function information is required, you can use the preprocessor to process the information and then run the sed or aux command to extract required function information.

An example is as follows:

1
clang -E -xc test.c | sed -n 's/^extern * int *\(\w*\) *(.*$/\1/p'