[cfe-dev] Clang driver

Marcin Zalewski marcin.zalewski at gmail.com
Wed Jun 22 13:20:57 PDT 2011


I have noticed that clang silently ignores unknown flags:

clang -finvalidflag some_file.cpp

The above does not produce any error or warning, and adding "-v" shows
that the invalid flag does not make it out of the driver.

I looked through bug reports, and I did not see any on this. Is it an
intentional design? I have only seen this behavior for flags (starting
with "-f"), so I want to make sure that there is no rationale behind
this behavior.

Thanks,
Marcin



More information about the cfe-dev mailing list