[LLVMbugs] [Bug 9272] New: Clang shouldn't complain that C file is supplied in C++ mode when dependencies are parsed

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Feb 19 20:13:18 PST 2011


http://llvm.org/bugs/show_bug.cgi?id=9272

           Summary: Clang shouldn't complain that C file is supplied in
                    C++ mode when dependencies are parsed
           Product: clang
           Version: trunk
          Platform: Other
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: yuri at tsoft.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


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

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list