[clang-tools-extra] [clang-tidy] performance-enum-size should ignore enums within extern "C" (PR #178233)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 27 12:20:22 PST 2026
================
@@ -106,3 +106,15 @@ enum class EnumClassWithoutValues : int {};
enum EnumWithoutValues {};
}
+
+extern "C" {
+enum ExternCEnum {
+ ec1,
+ ec2
+};
+
+typedef enum {
+ tec1,
+ tec2
+} IgnoredTypedefEnum;
+}
----------------
EugeneZelenko wrote:
```suggestion
} // extern "C"
```
https://github.com/llvm/llvm-project/pull/178233
More information about the cfe-commits
mailing list