[cfe-dev] Clang driver
Eric Christopher
echristo at apple.com
Wed Jun 22 15:23:24 PDT 2011
On Jun 22, 2011, at 1:20 PM, Marcin Zalewski wrote:
> 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.
The rationale is that it makes swapping projects to clang a little easier in that we're not going to support every random flag, but also don't want to worry about some project not compiling if we don't support -finline-limit=
-eric
More information about the cfe-dev
mailing list