[llvm-bugs] [Bug 42434] New: __pragma(warning(disable:)) wrongly detected as objective-c

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jun 28 04:37:31 PDT 2019


            Bug ID: 42434
           Summary: __pragma(warning(disable:)) wrongly detected as
           Product: clang
           Version: 8.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jan at kneschke.de
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

__pragma(warning(disable:)) disables all warnings on MSVC.

running clang-format on a header file that contains that pragma leads to
wrongly identifying the whole header file as objective-c:

$ echo "__pragma(warning(disable:))" | clang-format-8 --style file
-assume-filename foo.h
Configuration file(s) do(es) not support Objective-C: <...>/.clang-format

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190628/6356d3a5/attachment.html>

More information about the llvm-bugs mailing list