Skip to content

Clang shouldn't complain that C file is supplied in C++ mode when dependencies are parsed #9644

@yurivict

Description

@yurivict
Bugzilla Link 9272
Resolution INVALID
Resolved on Jul 20, 2012 07:48
Version trunk
OS FreeBSD
CC @DougGregor

Extended Description

When I run command like this:
clang++ -M file1.c file2.C
I get this warning:
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated

Such warning should be disabled in dependency parsing mode (-M). This is because such operation doesn't depend on C/C++ differences and its very convenient to make just one call in a mixed C/C++ project instead of calling it once for all C files and once for all C++ files.

rev.126022

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillac++invalidResolved as invalid, i.e. not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions