Skip to content

[clang-format] incorrectly interprets C++ file as Objective-C #95072

Closed
@uleysky

Description

@uleysky

Minimal example test.h:

[this,a=a]() -> struct S { return {}; }

.clang-format:

---                                                                                                                                                                                                                                                                           
Language:        Cpp

Output of clang-format --style=file test.h:
Configuration file(s) do(es) not support Objective-C: /tmp/.clang-format

clang-format --version:
clang-format version 18.1.7

Metadata

Metadata

Assignees

Labels

bugIndicates an unexpected problem or unintended behaviorclang-format

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions