Skip to content

Commit f06d4cc

Browse files
committed
touched up other docs ad ran 'clang-format'
1 parent 9949798 commit f06d4cc

File tree

3 files changed

+0
-10
lines changed

3 files changed

+0
-10
lines changed

clang/include/clang/Basic/DiagnosticASTKinds.td

-6
Original file line numberDiff line numberDiff line change
@@ -343,10 +343,4 @@ def warn_padded_struct_size : Warning<
343343
InGroup<Padded>, DefaultIgnore;
344344
def warn_unnecessary_packed : Warning<
345345
"packed attribute is unnecessary for %0">, InGroup<Packed>, DefaultIgnore;
346-
347-
// RandStruct implementation
348-
def warn_randomize_attr_conflict : Warning<
349-
"struct declared with 'randomize_layout' and 'no_randomize_layout' attributes; "
350-
"attribute 'no_randomize_layout' takes precedence">, InGroup<DiagGroup<"no-randomize-layout">>;
351-
352346
}

clang/lib/Sema/SemaDeclAttr.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -6856,9 +6856,6 @@ static void ProcessDeclAttribute(Sema &S, Scope *scope, Decl *D,
68566856
case ParsedAttr::AT_RandomizeLayout:
68576857
handleSimpleAttribute<RandomizeLayoutAttr>(S, D, AL);
68586858
break;
6859-
case ParsedAttr::AT_NoRandomizeLayout:
6860-
handleSimpleAttribute<NoRandomizeLayoutAttr>(S, D, AL);
6861-
break;
68626859
case ParsedAttr::AT_CodeSeg:
68636860
handleCodeSegAttr(S, D, AL);
68646861
break;

clang/test/Misc/pragma-attribute-supported-attributes-list.test

-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@
8080
// CHECK-NEXT: NoInstrumentFunction (SubjectMatchRule_function)
8181
// CHECK-NEXT: NoMicroMips (SubjectMatchRule_function)
8282
// CHECK-NEXT: NoMips16 (SubjectMatchRule_function)
83-
// CHECK-NEXT: NoRandomizeLayout (SubjectMatchRule_record)
8483
// CHECK-NEXT: NoSanitize (SubjectMatchRule_function, SubjectMatchRule_objc_method, SubjectMatchRule_variable_is_global)
8584
// CHECK-NEXT: NoSanitizeSpecific (SubjectMatchRule_function, SubjectMatchRule_variable_is_global)
8685
// CHECK-NEXT: NoSpeculativeLoadHardening (SubjectMatchRule_function, SubjectMatchRule_objc_method)

0 commit comments

Comments
 (0)