| /llvm-project-15.0.7/clang/test/Index/ |
| H A D | complete-type-factors.m | 3 enum Color { 7 enum Priority { 12 int func1(enum Color); 13 enum Priority func2(int); 15 enum Priority test1(enum Priority priority, enum Color color, int integer) { 17 enum Color c = color; 20 void (^block)(enum Color, int); 26 + (void)method:(enum Color)color priority:(enum Priority)priority; 27 - (void)method:(enum Color)color priority:(enum Priority)priority; 47 …nctionDecl:{ResultType enum Priority}{TypedText test1}{LeftParen (}{Placeholder enum Priority prio… [all …]
|
| /llvm-project-15.0.7/clang/test/ARCMT/ |
| H A D | objcmt-ns-macros.m | 22 enum { 28 enum { 57 enum { 72 enum { 78 enum { 91 enum { 100 enum { 106 enum { 116 enum { 335 enum [all …]
|
| H A D | objcmt-ns-enum-crash.m | 5 #define NS_ENUM(_type, _name) enum _name : _type _name; enum _name : _type 6 #define NS_OPTIONS(_type, _name) enum _name : _type _name; enum _name : _type 9 typedef enum : NSInteger {five} ApplicableEnum; 13 #define MY_ENUM(name, type, ...) typedef enum : type { __VA_ARGS__ } name##_t
|
| H A D | objcmt-ns-enum-crash.m.result | 5 #define NS_ENUM(_type, _name) enum _name : _type _name; enum _name : _type 6 #define NS_OPTIONS(_type, _name) enum _name : _type _name; enum _name : _type 13 #define MY_ENUM(name, type, ...) typedef enum : type { __VA_ARGS__ } name##_t
|
| H A D | objcmt-undefined-ns-macros.m | 8 enum { 19 enum { two = 1 } NumericEnum2; 21 typedef enum { three = 1 } NumericEnum3; 23 typedef enum { four = 1 } NumericEnum4;
|
| /llvm-project-15.0.7/lldb/utils/lui/ |
| H A D | lldbutil.py | 153 def state_type_to_str(enum): argument 155 if enum == lldb.eStateInvalid: 157 elif enum == lldb.eStateUnloaded: 165 elif enum == lldb.eStateStopped: 167 elif enum == lldb.eStateRunning: 169 elif enum == lldb.eStateStepping: 171 elif enum == lldb.eStateCrashed: 175 elif enum == lldb.eStateExited: 183 def stop_reason_to_str(enum): argument 207 def symbol_type_to_str(enum): argument [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/bugprone/ |
| H A D | suspicious-enum-usage.rst | 1 .. title:: clang-tidy - bugprone-suspicious-enum-usage 3 bugprone-suspicious-enum-usage 13 regard the enum as a (suspicious) 28 enum val. 30 same enum type. 36 enum { A, B, C }; 37 enum { D, E, F = 5 }; 38 enum { G = 10, H = 11, I = 12 }; 47 enum Bitmask { 57 enum Almostbitmask { [all …]
|
| /llvm-project-15.0.7/clang/test/Rewriter/ |
| H A D | rewrite-modern-ivars-1.mm | 28 enum { 32 enum e { 39 enum e E2; 69 enum { 75 enum e E2; 90 enum OUTSIDE { 96 enum INSIDE { 102 enum { 110 enum INSIDE I1; 111 enum OUTSIDE I2; [all …]
|
| /llvm-project-15.0.7/clang/test/SemaObjC/ |
| H A D | enum-fixed-type.m | 16 typedef enum : Integer { Enumerator1, Enumerator2 } Enumeration; 21 enum Color { Red, Green, Blue }; 24 enum Color : 4; 25 enum Color field1: 4; 26 enum Other : Integer field2; // c-error {{only permitted as a standalone}} 27 enum Other : Integer field3 : 4; // c-error {{only permitted as a standalone}} 28 enum : Integer { Blah, Blarg } field4 : 4; 37 typedef enum : long { Foo } IntegerEnum; 43 typedef enum : long long { Bar = -1 } LongLongEnum; 46 typedef enum : Integer { BaseElem } BaseEnum; [all …]
|
| H A D | blocks.m | 80 enum CStyleEnum { 84 enum CStyleEnum getCSE(); 85 typedef enum CStyleEnum (^cse_block_t)(); 89 enum CStyleEnum value; 142 enum FixedTypeEnum : unsigned { 145 enum FixedTypeEnum getFTE(); 146 typedef enum FixedTypeEnum (^fte_block_t)(); 186 enum { 190 enum : short { 194 typedef enum { [all …]
|
| H A D | check-dup-decls-inside-objc.m | 18 enum InInterface { kX = 0, }; // expected-note {{previous definition is here}} 20 enum class InInterfaceScoped { kXScoped = 0, }; // expected-note {{previous definition is here}} 29 …enum InExtensionCurliesWithField: int { kY = 1, } extensionField; // expected-note {{previous defi… 37 enum InImplementationCurlies { kZ = 2, }; // expected-note {{previous definition is here}} 43 enum InCategoryImplementation { kW = 3, }; // expected-note {{previous definition is here}} 52 enum InInterface { kA = 10, }; // expected-error {{redefinition of 'InInterface'}} 54 enum class InInterfaceScoped { kAScoped = 10, }; // expected-error {{redefinition of 'InInterfaceSc… 59 enum InExtensionCurliesWithField: int { kB = 11, }; // expected-error {{redefinition of 'InExtensio… 64 enum InImplementationCurlies { kC = 12, }; // expected-error {{redefinition of 'InImplementationCur… 67 enum InCategoryImplementation { kD = 13, }; // expected-error {{redefinition of 'InCategoryImplemen…
|
| /llvm-project-15.0.7/flang/test/Semantics/ |
| H A D | resolve60.f90 | 5 enum, bind(C) 10 end enum 14 enum, bind(C) 18 end enum 23 enum, bind(C) 31 end enum 33 enum, bind(C) 37 end enum
|
| H A D | modfile31.f90 | 6 enum, bind(C) 12 end enum 14 enum, bind(C) 16 end enum
|
| /llvm-project-15.0.7/lldb/packages/Python/lldbsuite/test/ |
| H A D | lldbutil.py | 211 def state_type_to_str(enum): argument 213 if enum == lldb.eStateInvalid: 215 elif enum == lldb.eStateUnloaded: 223 elif enum == lldb.eStateStopped: 225 elif enum == lldb.eStateRunning: 227 elif enum == lldb.eStateStepping: 229 elif enum == lldb.eStateCrashed: 233 elif enum == lldb.eStateExited: 241 def stop_reason_to_str(enum): argument 273 def symbol_type_to_str(enum): argument [all …]
|
| /llvm-project-15.0.7/mlir/include/mlir/IR/ |
| H A D | EnumAttr.td | 24 // to enumerators in the generated enum class. 83 // A bit enum case for a single bit in a 32-bit enum, specified by the 88 // A bit enum case for a single bit in a 64-bit enum, specified by the 118 // The C++ enum class name 195 // An enum attribute backed by IntegerAttr. 227 !interleave(!foreach(enum, enumerants, "\"" # enum.str # "\""), 243 // A bit enum stored with an IntegerAttr. 300 !interleave(!foreach(enum, enumerants, "\"" # enum.str # "\""), 362 // let arguments = (ins MyEnumAttr:$enum); 376 EnumAttrInfo enum = enumInfo; [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/ |
| H A D | macro-to-enum.rst | 1 .. title:: clang-tidy - cppcoreguidelines-macro-to-enum 3 :http-equiv=refresh: 5;URL=../modernize/macro-to-enum.html 5 cppcoreguidelines-macro-to-enum 8 The cppcoreguidelines-macro-to-enum check is an alias, please see 9 :doc:`modernize-macro-to-enum <../modernize/macro-to-enum>` for more information.
|
| /llvm-project-15.0.7/flang/module/ |
| H A D | __fortran_type_info.f90 | 59 enum, bind(c) ! Value::Genre 61 end enum 69 enum, bind(c) ! Component::Genre 71 end enum 73 enum, bind(c) ! common::TypeCategory 77 end enum 100 enum, bind(c) ! SpecialBinding::Which 106 end enum
|
| /llvm-project-15.0.7/mlir/test/IR/ |
| H A D | enum-attr-roundtrip.mlir | 5 // CHECK: value = #test<enum first> 6 "test.op"() {value = #test<enum first>} : () -> () 7 // CHECK: value = #test<enum second> 8 "test.op"() {value = #test<enum second>} : () -> () 9 // CHECK: value = #test<enum third> 10 "test.op"() {value = #test<enum third>} : () -> ()
|
| /llvm-project-15.0.7/mlir/unittests/TableGen/ |
| H A D | enums.td | 15 def FooEnum: I32EnumAttr<"FooEnum", "A test enum", [CaseA, CaseB]> { 25 def I32Enum: I32EnumAttr<"I32Enum", "A test enum", [Case5, Case10]>; 35 def BitEnumWithNone : I32BitEnumAttr<"BitEnumWithNone", "A test enum", 40 def BitEnumWithoutNone : I32BitEnumAttr<"BitEnumWithoutNone", "A test enum", 50 def BitEnumWithGroup : I32BitEnumAttr<"BitEnumWithGroup", "A test enum", 55 def BitEnumPrimaryGroup : I32BitEnumAttr<"BitEnumPrimaryGroup", "test enum", 65 def BitEnum64_Test : I64BitEnumAttr<"BitEnum64_Test", "A 64-bit test enum", 71 def PrettyIntEnum: I32EnumAttr<"PrettyIntEnum", "A test enum",
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/modernize/ |
| H A D | macro-to-enum.rst | 1 .. title:: clang-tidy - modernize-macro-to-enum 3 modernize-macro-to-enum 6 Replaces groups of adjacent macros with an unscoped anonymous enum. 7 Using an unscoped anonymous enum ensures that everywhere the macro 40 be a set of values suitable for replacement by an anonymous enum. 41 From there, a developer can give the anonymous enum a name and 42 continue refactoring to a scoped enum if desired. Comments on the 50 an enum. C requires that enum values fit into an ``int``, but 73 enum { 79 enum {
|
| /llvm-project-15.0.7/lldb/test/Shell/SymbolFile/PDB/ |
| H A D | enums-layout.test | 13 …", size = 4, decl = {{[Ss]}}imple{{[Tt]}}ypes{{[Tt]}}est.cpp:19, compiler_type = {{.*}} enum Enum { 19 …e = 4, decl = {{[Ss]}}imple{{[Tt]}}ypes{{[Tt]}}est.cpp:22, compiler_type = {{.*}} enum EnumConst { 25 …e = 4, decl = {{[Ss]}}imple{{[Tt]}}ypes{{[Tt]}}est.cpp:25, compiler_type = {{.*}} enum EnumEmpty { 28 …e = 1, decl = {{[Ss]}}imple{{[Tt]}}ypes{{[Tt]}}est.cpp:28, compiler_type = {{.*}} enum EnumUChar { 34 ; Note that `enum EnumClass` is tested instead of `enum class EnumClass` 35 …e = 4, decl = {{[Ss]}}imple{{[Tt]}}ypes{{[Tt]}}est.cpp:32, compiler_type = {{.*}} enum EnumClass { 41 … = 4, decl = {{[Ss]}}imple{{[Tt]}}ypes{{[Tt]}}est.cpp:35, compiler_type = {{.*}} enum EnumStruct {
|
| /llvm-project-15.0.7/clang/test/Sema/ |
| H A D | ns_error_enum.m | 5 #define CF_ENUM(_type, _name) enum _name : _type _name; enum _name : _type 9 enum _name : _type _name; enum __attribute__((ns_error_domain(_domain))) _name : _type 55 enum __attribute__((ns_error_domain(WrongErrorDomainType))) MyWrongErrorDomainType { MyWrongErrorDo… 64 enum __attribute__((ns_error_domain())) NoArg { NoArgError }; 67 enum __attribute__((ns_error_domain(MyErrorDomain, MyErrorDomain))) TwoArgs { TwoArgsError };
|
| /llvm-project-15.0.7/clang/test/SemaObjCXX/ |
| H A D | boxing-illegal-types.mm | 47 enum MyEnum { 51 enum ForwE; // expected-error {{ISO C++ forbids forward references to 'enum' types}} 54 enum MyEnum myen; 57 …box = @(*(enum ForwE*)p); // expected-error {{incomplete type 'enum ForwE' used in a boxed express…
|
| /llvm-project-15.0.7/clang/test/CodeGenObjC/ |
| H A D | objc-fixed-enum.m | 2 // The DWARF standard says the underlying data type of an enum may be 3 // stored in an DW_AT_type entry in the enum DIE. This is useful to have 7 #define NS_ENUM(_type, _name) enum _name : _type _name; enum _name : _type 10 typedef enum { 22 typedef enum : NSInteger { 28 enum : NSInteger
|
| /llvm-project-15.0.7/mlir/include/mlir/Dialect/GPU/IR/ |
| H A D | CMakeLists.txt | 10 mlir_tablegen(ParallelLoopMapperEnums.h.inc -gen-enum-decls) 11 mlir_tablegen(ParallelLoopMapperEnums.cpp.inc -gen-enum-defs) 15 mlir_tablegen(GPUOpsEnums.h.inc -gen-enum-decls) 16 mlir_tablegen(GPUOpsEnums.cpp.inc -gen-enum-defs)
|