https://bugs.llvm.org/show_bug.cgi?id=42434
Bug ID: 42434
Summary: __pragma(warning(disable:)) wrongly detected as
objective-c
Product: clang
Version: 8.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
__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._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs