diff options
Diffstat (limited to 'test/Misc')
| -rw-r--r-- | test/Misc/ast-dump-attr.cpp | 8 | ||||
| -rw-r--r-- | test/Misc/ast-dump-c-attr.c | 46 | ||||
| -rw-r--r-- | test/Misc/ast-dump-decl.cpp | 54 | ||||
| -rw-r--r-- | test/Misc/ast-dump-invalid.cpp | 2 | ||||
| -rw-r--r-- | test/Misc/find-diagnostic-id.c | 4 | ||||
| -rw-r--r-- | test/Misc/pragma-attribute-cxx-subject-match-rules.cpp | 10 | ||||
| -rw-r--r-- | test/Misc/pragma-attribute-cxx.cpp | 4 | ||||
| -rw-r--r-- | test/Misc/pragma-attribute-supported-attributes-list.test | 10 | ||||
| -rw-r--r-- | test/Misc/warning-flags-tree.c | 11 | ||||
| -rw-r--r-- | test/Misc/warning-flags.c | 3 |
10 files changed, 114 insertions, 38 deletions
diff --git a/test/Misc/ast-dump-attr.cpp b/test/Misc/ast-dump-attr.cpp index 07f91605e71c..bf942959a85c 100644 --- a/test/Misc/ast-dump-attr.cpp +++ b/test/Misc/ast-dump-attr.cpp @@ -180,6 +180,14 @@ __attribute__((external_source_symbol(generated_declaration, defined_in="module" // CHECK: FunctionDecl{{.*}} TestExternalSourceSymbolAttr5 // CHECK-NEXT: ExternalSourceSymbolAttr{{.*}} "Swift" "module" GeneratedDeclaration +namespace TestNoEscape { + void noescapeFunc(int *p0, __attribute__((noescape)) int *p1) {} + // CHECK: `-FunctionDecl{{.*}} noescapeFunc 'void (int *, __attribute__((noescape)) int *)' + // CHECK-NEXT: ParmVarDecl + // CHECK-NEXT: ParmVarDecl + // CHECK-NEXT: NoEscapeAttr +} + namespace TestSuppress { [[gsl::suppress("at-namespace")]]; // CHECK: NamespaceDecl{{.*}} TestSuppress diff --git a/test/Misc/ast-dump-c-attr.c b/test/Misc/ast-dump-c-attr.c new file mode 100644 index 000000000000..df9c347bb412 --- /dev/null +++ b/test/Misc/ast-dump-c-attr.c @@ -0,0 +1,46 @@ +// RUN: %clang_cc1 -triple x86_64-pc-linux -fdouble-square-bracket-attributes -Wno-deprecated-declarations -ast-dump -ast-dump-filter Test %s | FileCheck --strict-whitespace %s + +int Test1 [[deprecated]]; +// CHECK: VarDecl{{.*}}Test1 +// CHECK-NEXT: DeprecatedAttr 0x{{[^ ]*}} <col:13> "" "" + +enum [[deprecated("Frobble")]] Test2 { + Test3 [[deprecated]] +}; +// CHECK: EnumDecl{{.*}}Test2 +// CHECK-NEXT: DeprecatedAttr 0x{{[^ ]*}} <col:8, col:28> "Frobble" "" +// CHECK-NEXT: EnumConstantDecl{{.*}}Test3 +// CHECK-NEXT: DeprecatedAttr 0x{{[^ ]*}} <col:11> "" "" + +struct [[deprecated]] Test4 { + [[deprecated("Frobble")]] int Test5, Test6; + int Test7 [[deprecated]] : 12; +}; +// CHECK: RecordDecl{{.*}}Test4 +// CHECK-NEXT: DeprecatedAttr 0x{{[^ ]*}} <col:10> "" "" +// CHECK-NEXT: FieldDecl{{.*}}Test5 +// CHECK-NEXT: DeprecatedAttr 0x{{[^ ]*}} <col:5, col:25> "Frobble" "" +// CHECK-NEXT: FieldDecl{{.*}}Test6 +// CHECK-NEXT: DeprecatedAttr 0x{{[^ ]*}} <col:5, col:25> "Frobble" "" +// CHECK-NEXT: FieldDecl{{.*}}Test7 +// CHECK-NEXT: IntegerLiteral{{.*}}'int' 12 +// CHECK-NEXT: DeprecatedAttr 0x{{[^ ]*}} <col:15> "" "" + +struct [[deprecated]] Test8; +// CHECK: RecordDecl{{.*}}Test8 +// CHECK-NEXT: DeprecatedAttr 0x{{[^ ]*}} <col:10> "" "" + +[[deprecated]] void Test9(int Test10 [[deprecated]]); +// CHECK: FunctionDecl{{.*}}Test9 +// CHECK-NEXT: ParmVarDecl{{.*}}Test10 +// CHECK-NEXT: DeprecatedAttr 0x{{[^ ]*}} <col:40> "" "" +// CHECK-NEXT: DeprecatedAttr 0x{{[^ ]*}} <col:3> "" "" + +void Test11 [[deprecated]](void); +// CHECK: FunctionDecl{{.*}}Test11 +// CHECK-NEXT: DeprecatedAttr 0x{{[^ ]*}} <col:15> "" "" + +void Test12(void) [[deprecated]] {} +// CHECK: FunctionDecl{{.*}}Test12 +// CHECK-NEXT: CompoundStmt +// CHECK-NEXT: DeprecatedAttr 0x{{[^ ]*}} <col:21> "" "" diff --git a/test/Misc/ast-dump-decl.cpp b/test/Misc/ast-dump-decl.cpp index a48261d367d9..0df8a5a2b8fb 100644 --- a/test/Misc/ast-dump-decl.cpp +++ b/test/Misc/ast-dump-decl.cpp @@ -73,6 +73,16 @@ namespace testTypeAliasTemplateDecl { // CHECK-NEXT: TypeAliasDecl{{.*}} TestTypeAliasTemplateDecl 'A<T>' namespace testCXXRecordDecl { + class TestEmpty {}; +// CHECK: CXXRecordDecl{{.*}} class TestEmpty +// CHECK-NEXT: DefinitionData pass_in_registers empty aggregate standard_layout trivially_copyable pod trivial literal has_constexpr_non_copy_move_ctor can_const_default_init +// CHECK-NEXT: DefaultConstructor exists trivial constexpr +// CHECK-NEXT: CopyConstructor simple trivial has_const_param +// CHECK-NEXT: MoveConstructor exists simple trivial +// CHECK-NEXT: CopyAssignment trivial has_const_param +// CHECK-NEXT: MoveAssignment exists simple trivial +// CHECK-NEXT: Destructor simple irrelevant trivial + class A { }; class B { }; class TestCXXRecordDecl : virtual A, public B { @@ -80,6 +90,13 @@ namespace testCXXRecordDecl { }; } // CHECK: CXXRecordDecl{{.*}} class TestCXXRecordDecl +// CHECK-NEXT: DefinitionData{{$}} +// CHECK-NEXT: DefaultConstructor exists non_trivial +// CHECK-NEXT: CopyConstructor simple non_trivial has_const_param +// CHECK-NEXT: MoveConstructor exists simple non_trivial +// CHECK-NEXT: CopyAssignment non_trivial has_const_param +// CHECK-NEXT: MoveAssignment exists simple non_trivial +// CHECK-NEXT: Destructor simple irrelevant trivial // CHECK-NEXT: virtual private 'class testCXXRecordDecl::A' // CHECK-NEXT: public 'class testCXXRecordDecl::B' // CHECK-NEXT: CXXRecordDecl{{.*}} class TestCXXRecordDecl @@ -89,7 +106,7 @@ template<class...T> class TestCXXRecordDeclPack : public T... { }; // CHECK: CXXRecordDecl{{.*}} class TestCXXRecordDeclPack -// CHECK-NEXT: public 'T'... +// CHECK: public 'T'... // CHECK-NEXT: CXXRecordDecl{{.*}} class TestCXXRecordDeclPack thread_local int TestThreadLocalInt; @@ -250,14 +267,14 @@ namespace testClassTemplateDecl { // CHECK: ClassTemplateDecl{{.*}} TestClassTemplate // CHECK-NEXT: TemplateTypeParmDecl // CHECK-NEXT: CXXRecordDecl{{.*}} class TestClassTemplate -// CHECK-NEXT: CXXRecordDecl{{.*}} class TestClassTemplate +// CHECK: CXXRecordDecl{{.*}} class TestClassTemplate // CHECK-NEXT: AccessSpecDecl{{.*}} public // CHECK-NEXT: CXXConstructorDecl{{.*}} <line:{{.*}}:5, col:23> // CHECK-NEXT: CXXDestructorDecl{{.*}} <line:{{.*}}:5, col:24> // CHECK-NEXT: CXXMethodDecl{{.*}} <line:{{.*}}:5, col:11> // CHECK-NEXT: FieldDecl{{.*}} i // CHECK-NEXT: ClassTemplateSpecializationDecl{{.*}} class TestClassTemplate -// CHECK-NEXT: TemplateArgument{{.*}}A +// CHECK: TemplateArgument{{.*}}A // CHECK-NEXT: CXXRecordDecl{{.*}} class TestClassTemplate // CHECK-NEXT: AccessSpecDecl{{.*}} public // CHECK-NEXT: CXXConstructorDecl{{.*}} <line:{{.*}}:5, col:23> @@ -269,12 +286,13 @@ namespace testClassTemplateDecl { // CHECK-NEXT: ClassTemplateSpecialization{{.*}} 'TestClassTemplate' // CHECK: ClassTemplateSpecializationDecl{{.*}} class TestClassTemplate -// CHECK-NEXT: TemplateArgument{{.*}}B +// CHECK-NEXT: DefinitionData +// CHECK: TemplateArgument{{.*}}B // CHECK-NEXT: CXXRecordDecl{{.*}} class TestClassTemplate // CHECK-NEXT: FieldDecl{{.*}} j // CHECK: ClassTemplateSpecializationDecl{{.*}} class TestClassTemplate -// CHECK-NEXT: TemplateArgument{{.*}}C +// CHECK: TemplateArgument{{.*}}C // CHECK-NEXT: CXXRecordDecl{{.*}} class TestClassTemplate // CHECK-NEXT: AccessSpecDecl{{.*}} public // CHECK-NEXT: CXXConstructorDecl{{.*}} <line:{{.*}}:5, col:23> @@ -283,7 +301,7 @@ namespace testClassTemplateDecl { // CHECK-NEXT: FieldDecl{{.*}} i // CHECK: ClassTemplateSpecializationDecl{{.*}} class TestClassTemplate -// CHECK-NEXT: TemplateArgument{{.*}}D +// CHECK: TemplateArgument{{.*}}D // CHECK-NEXT: CXXRecordDecl{{.*}} class TestClassTemplate // CHECK-NEXT: AccessSpecDecl{{.*}} public // CHECK-NEXT: CXXConstructorDecl{{.*}} <line:{{.*}}:5, col:23> @@ -292,7 +310,7 @@ namespace testClassTemplateDecl { // CHECK-NEXT: FieldDecl{{.*}} i // CHECK: ClassTemplatePartialSpecializationDecl{{.*}} class TestClassTemplatePartial -// CHECK-NEXT: TemplateArgument +// CHECK: TemplateArgument // CHECK-NEXT: TemplateArgument{{.*}}A // CHECK-NEXT: TemplateTypeParmDecl // CHECK-NEXT: CXXRecordDecl{{.*}} class TestClassTemplatePartial @@ -326,13 +344,13 @@ namespace testCanonicalTemplate { // CHECK: ClassTemplateDecl{{.*}} TestClassTemplate // CHECK-NEXT: TemplateTypeParmDecl // CHECK-NEXT: CXXRecordDecl{{.*}} class TestClassTemplate - // CHECK-NEXT: CXXRecordDecl{{.*}} class TestClassTemplate + // CHECK: CXXRecordDecl{{.*}} class TestClassTemplate // CHECK-NEXT: FriendDecl // CHECK-NEXT: ClassTemplateDecl{{.*}} TestClassTemplate // CHECK-NEXT: TemplateTypeParmDecl // CHECK-NEXT: CXXRecordDecl{{.*}} class TestClassTemplate // CHECK-NEXT: ClassTemplateSpecializationDecl{{.*}} class TestClassTemplate - // CHECK-NEXT: TemplateArgument{{.*}}A + // CHECK: TemplateArgument{{.*}}A // CHECK-NEXT: CXXRecordDecl{{.*}} class TestClassTemplate } @@ -384,27 +402,27 @@ namespace TestTemplateArgument { template<typename> class testType { }; template class testType<int>; // CHECK: ClassTemplateSpecializationDecl{{.*}} class testType - // CHECK-NEXT: TemplateArgument{{.*}} type 'int' + // CHECK: TemplateArgument{{.*}} type 'int' template<int fp(void)> class testDecl { }; template class testDecl<foo>; // CHECK: ClassTemplateSpecializationDecl{{.*}} class testDecl - // CHECK-NEXT: TemplateArgument{{.*}} decl + // CHECK: TemplateArgument{{.*}} decl // CHECK-NEXT: Function{{.*}}foo template class testDecl<nullptr>; // CHECK: ClassTemplateSpecializationDecl{{.*}} class testDecl - // CHECK-NEXT: TemplateArgument{{.*}} nullptr + // CHECK: TemplateArgument{{.*}} nullptr template<int> class testIntegral { }; template class testIntegral<1>; // CHECK: ClassTemplateSpecializationDecl{{.*}} class testIntegral - // CHECK-NEXT: TemplateArgument{{.*}} integral 1 + // CHECK: TemplateArgument{{.*}} integral 1 template<template<typename> class> class testTemplate { }; template class testTemplate<A>; // CHECK: ClassTemplateSpecializationDecl{{.*}} class testTemplate - // CHECK-NEXT: TemplateArgument{{.*}} A + // CHECK: TemplateArgument{{.*}} A template<template<typename> class ...T> class C { B<T...> testTemplateExpansion; @@ -414,13 +432,13 @@ namespace TestTemplateArgument { template<int, int = 0> class testExpr; template<int I> class testExpr<I> { }; // CHECK: ClassTemplatePartialSpecializationDecl{{.*}} class testExpr - // CHECK-NEXT: TemplateArgument{{.*}} expr + // CHECK: TemplateArgument{{.*}} expr // CHECK-NEXT: DeclRefExpr{{.*}}I template<int, int ...> class testPack { }; template class testPack<0, 1, 2>; // CHECK: ClassTemplateSpecializationDecl{{.*}} class testPack - // CHECK-NEXT: TemplateArgument{{.*}} integral 0 + // CHECK: TemplateArgument{{.*}} integral 0 // CHECK-NEXT: TemplateArgument{{.*}} pack // CHECK-NEXT: TemplateArgument{{.*}} integral 1 // CHECK-NEXT: TemplateArgument{{.*}} integral 2 @@ -467,7 +485,7 @@ private: protected: }; // CHECK: CXXRecordDecl{{.*}} class TestAccessSpecDecl -// CHECK-NEXT: CXXRecordDecl{{.*}} class TestAccessSpecDecl +// CHECK: CXXRecordDecl{{.*}} class TestAccessSpecDecl // CHECK-NEXT: AccessSpecDecl{{.*}} public // CHECK-NEXT: AccessSpecDecl{{.*}} private // CHECK-NEXT: AccessSpecDecl{{.*}} protected @@ -478,7 +496,7 @@ template<typename T> class TestFriendDecl { friend T; }; // CHECK: CXXRecord{{.*}} TestFriendDecl -// CHECK-NEXT: CXXRecord{{.*}} TestFriendDecl +// CHECK: CXXRecord{{.*}} TestFriendDecl // CHECK-NEXT: FriendDecl // CHECK-NEXT: FunctionDecl{{.*}} foo // CHECK-NEXT: FriendDecl{{.*}} 'class A':'class A' diff --git a/test/Misc/ast-dump-invalid.cpp b/test/Misc/ast-dump-invalid.cpp index aa6cd526929f..842b057a4a54 100644 --- a/test/Misc/ast-dump-invalid.cpp +++ b/test/Misc/ast-dump-invalid.cpp @@ -51,7 +51,7 @@ double Str::foo1(double, invalid_type) } // CHECK: NamespaceDecl {{.*}} <{{.*}}> {{.*}} TestInvalidFunctionDecl // CHECK-NEXT: |-CXXRecordDecl {{.*}} <line:46:1, line:48:1> line:46:8 struct Str definition -// CHECK-NEXT: | |-CXXRecordDecl {{.*}} <col:1, col:8> col:8 implicit struct Str +// CHECK: | |-CXXRecordDecl {{.*}} <col:1, col:8> col:8 implicit struct Str // CHECK-NEXT: | `-CXXMethodDecl {{.*}} <line:47:4, col:36> col:11 invalid foo1 'double (double, int)' // CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:16> col:22 'double' // CHECK-NEXT: | `-ParmVarDecl {{.*}} <col:24, <invalid sloc>> col:36 invalid 'int' diff --git a/test/Misc/find-diagnostic-id.c b/test/Misc/find-diagnostic-id.c index bef66178f96f..1cddde747f7d 100644 --- a/test/Misc/find-diagnostic-id.c +++ b/test/Misc/find-diagnostic-id.c @@ -1,5 +1,7 @@ -// RUN: diagtool find-diagnostic-id warn_unused_variable | FileCheck %s +// RUN: diagtool find-diagnostic-id warn_unused_variable > %t; FileCheck %s < %t +// RUN: cat %t | xargs diagtool find-diagnostic-id | FileCheck %s --check-prefix=INVERSE // RUN: not diagtool find-diagnostic-id warn_unused_vars 2>&1 | FileCheck --check-prefix=ERROR %s // CHECK: {{^[0-9]+$}} +// INVERSE: warn_unused_variable // ERROR: error: invalid diagnostic 'warn_unused_vars' diff --git a/test/Misc/pragma-attribute-cxx-subject-match-rules.cpp b/test/Misc/pragma-attribute-cxx-subject-match-rules.cpp index b7741343ad45..18dfb43a384d 100644 --- a/test/Misc/pragma-attribute-cxx-subject-match-rules.cpp +++ b/test/Misc/pragma-attribute-cxx-subject-match-rules.cpp @@ -44,9 +44,9 @@ struct testStructRecord { int testStructRecordField; }; // CHECK-RECORD: CXXRecordDecl{{.*}} testStructRecord -// CHECK-RECORD-NEXT: AnnotateAttr{{.*}} "test" +// CHECK-RECORD: AnnotateAttr{{.*}} "test" // CHECK-RECORD_UNLESS_IS_UNION-LABEL: CXXRecordDecl{{.*}} testStructRecord -// CHECK-RECORD_UNLESS_IS_UNION-NEXT: AnnotateAttr{{.*}} "test" +// CHECK-RECORD_UNLESS_IS_UNION: AnnotateAttr{{.*}} "test" // CHECK-FIELD: FieldDecl{{.*}} testStructRecordField // CHECK-FIELD-NEXT: AnnotateAttr{{.*}} "test" @@ -54,9 +54,9 @@ class testClassRecord { int testClassRecordField; }; // CHECK-RECORD: CXXRecordDecl{{.*}} testClassRecord -// CHECK-RECORD-NEXT: AnnotateAttr{{.*}} "test" +// CHECK-RECORD: AnnotateAttr{{.*}} "test" // CHECK-RECORD_UNLESS_IS_UNION-LABEL: CXXRecordDecl{{.*}} testClassRecord -// CHECK-RECORD_UNLESS_IS_UNION-NEXT: AnnotateAttr{{.*}} "test" +// CHECK-RECORD_UNLESS_IS_UNION: AnnotateAttr{{.*}} "test" // CHECK-FIELD: FieldDecl{{.*}} testClassRecordField // CHECK-FIELD-NEXT: AnnotateAttr{{.*}} "test" @@ -64,7 +64,7 @@ union testUnionRecord { int testUnionRecordField; }; // CHECK-RECORD: CXXRecordDecl{{.*}} testUnionRecord -// CHECK-RECORD-NEXT: AnnotateAttr{{.*}} "test" +// CHECK-RECORD: AnnotateAttr{{.*}} "test" // CHECK-RECORD_UNLESS_IS_UNION-LABEL: CXXRecordDecl{{.*}} testUnionRecord // CHECK-RECORD_UNLESS_IS_UNION-NOT: AnnotateAttr{{.*}} "test" // CHECK-FIELD: FieldDecl{{.*}} testUnionRecordField diff --git a/test/Misc/pragma-attribute-cxx.cpp b/test/Misc/pragma-attribute-cxx.cpp index c241c4e4bdba..a8a3bdebc654 100644 --- a/test/Misc/pragma-attribute-cxx.cpp +++ b/test/Misc/pragma-attribute-cxx.cpp @@ -17,7 +17,7 @@ class testClass2 { testClass2 *operator -> (); }; // CHECK-LABEL: CXXRecordDecl{{.*}} testClass2 -// CHECK-NEXT: AnnotateAttr{{.*}} "test" +// CHECK: AnnotateAttr{{.*}} "test" // CHECK: CXXMethodDecl{{.*}} testMethod1 // CHECK-NEXT: ParmVarDecl{{.*}} param // CHECK-NEXT: AnnotateAttr{{.*}} "test" @@ -76,7 +76,7 @@ void testLambdaMethod() { // CHECK-LABEL: FunctionDecl{{.*}} testLambdaMethod // CHECK: LambdaExpr // CHECK-NEXT: CXXRecordDecl -// CHECK-NEXT: CXXMethodDecl{{.*}} operator() +// CHECK: CXXMethodDecl{{.*}} operator() // CHECK-NEXT: CompoundStmt // CHECK-NEXT: AnnotateAttr{{.*}} "test" diff --git a/test/Misc/pragma-attribute-supported-attributes-list.test b/test/Misc/pragma-attribute-supported-attributes-list.test index d698276f7dc4..1171a2d3709a 100644 --- a/test/Misc/pragma-attribute-supported-attributes-list.test +++ b/test/Misc/pragma-attribute-supported-attributes-list.test @@ -2,7 +2,7 @@ // The number of supported attributes should never go down! -// CHECK: #pragma clang attribute supports 62 attributes: +// CHECK: #pragma clang attribute supports 66 attributes: // CHECK-NEXT: AMDGPUFlatWorkGroupSize (SubjectMatchRule_function) // CHECK-NEXT: AMDGPUNumSGPR (SubjectMatchRule_function) // CHECK-NEXT: AMDGPUNumVGPR (SubjectMatchRule_function) @@ -31,12 +31,16 @@ // CHECK-NEXT: InternalLinkage (SubjectMatchRule_variable, SubjectMatchRule_function, SubjectMatchRule_record) // CHECK-NEXT: LTOVisibilityPublic (SubjectMatchRule_record) // CHECK-NEXT: MicroMips (SubjectMatchRule_function) +// CHECK-NEXT: MipsLongCall (SubjectMatchRule_function) +// CHECK-NEXT: MipsShortCall (SubjectMatchRule_function) // CHECK-NEXT: NoDebug (SubjectMatchRule_hasType_functionType, SubjectMatchRule_objc_method, SubjectMatchRule_variable_not_is_parameter) // CHECK-NEXT: NoDuplicate (SubjectMatchRule_function) +// CHECK-NEXT: NoEscape (SubjectMatchRule_variable_is_parameter) // CHECK-NEXT: NoMicroMips (SubjectMatchRule_function) // CHECK-NEXT: NoSanitize (SubjectMatchRule_function, SubjectMatchRule_objc_method, SubjectMatchRule_variable_is_global) // CHECK-NEXT: NoSanitizeSpecific (SubjectMatchRule_function, SubjectMatchRule_variable_is_global) // CHECK-NEXT: NoSplitStack (SubjectMatchRule_function) +// CHECK-NEXT: NoThrow (SubjectMatchRule_function) // CHECK-NEXT: NotTailCalled (SubjectMatchRule_function) // CHECK-NEXT: ObjCBoxable (SubjectMatchRule_record) // CHECK-NEXT: ObjCMethodFamily (SubjectMatchRule_objc_method) @@ -63,5 +67,5 @@ // CHECK-NEXT: Target (SubjectMatchRule_function) // CHECK-NEXT: TestTypestate (SubjectMatchRule_function_is_member) // CHECK-NEXT: WarnUnusedResult (SubjectMatchRule_objc_method, SubjectMatchRule_enum, SubjectMatchRule_record, SubjectMatchRule_hasType_functionType) -// CHECK-NEXT: XRayInstrument (SubjectMatchRule_function_is_member, SubjectMatchRule_objc_method, SubjectMatchRule_function) -// CHECK-NEXT: XRayLogArgs (SubjectMatchRule_function_is_member, SubjectMatchRule_objc_method, SubjectMatchRule_function) +// CHECK-NEXT: XRayInstrument (SubjectMatchRule_function, SubjectMatchRule_objc_method) +// CHECK-NEXT: XRayLogArgs (SubjectMatchRule_function, SubjectMatchRule_objc_method) diff --git a/test/Misc/warning-flags-tree.c b/test/Misc/warning-flags-tree.c index d71c9f618b42..01ba4971ee06 100644 --- a/test/Misc/warning-flags-tree.c +++ b/test/Misc/warning-flags-tree.c @@ -1,6 +1,6 @@ -// RUN: diagtool tree | FileCheck -strict-whitespace %s -// RUN: diagtool tree -Weverything | FileCheck -strict-whitespace %s -// RUN: diagtool tree everything | FileCheck -strict-whitespace %s +// RUN: diagtool tree --internal | FileCheck -strict-whitespace %s +// RUN: diagtool tree --internal -Weverything | FileCheck -strict-whitespace %s +// RUN: diagtool tree --internal everything | FileCheck -strict-whitespace %s // // These three ways of running diagtool tree are the same: // they produce a tree for every top-level diagnostic flag. @@ -29,8 +29,7 @@ // RUN: not diagtool tree -Wthis-is-not-a-valid-flag - -// RUN: diagtool tree -Wgnu | FileCheck -strict-whitespace -check-prefix CHECK-GNU %s +// RUN: diagtool tree --internal -Wgnu | FileCheck -strict-whitespace -check-prefix CHECK-GNU %s // CHECK-GNU: -Wgnu // CHECK-GNU: -Wgnu-designator // CHECK-GNU: ext_gnu_array_range @@ -40,7 +39,7 @@ // CHECK-GNU: ext_vla // There are more GNU extensions but we don't need to check them all. -// RUN: diagtool tree --flags-only -Wgnu | FileCheck -check-prefix CHECK-FLAGS-ONLY %s +// RUN: diagtool tree -Wgnu | FileCheck -check-prefix CHECK-FLAGS-ONLY %s // CHECK-FLAGS-ONLY: -Wgnu // CHECK-FLAGS-ONLY: -Wgnu-designator // CHECK-FLAGS-ONLY-NOT: ext_gnu_array_range diff --git a/test/Misc/warning-flags.c b/test/Misc/warning-flags.c index 5172d3b15a90..2c48fa4dbf39 100644 --- a/test/Misc/warning-flags.c +++ b/test/Misc/warning-flags.c @@ -18,7 +18,7 @@ This test serves two purposes: The list of warnings below should NEVER grow. It should gradually shrink to 0. -CHECK: Warnings without flags (78): +CHECK: Warnings without flags (77): CHECK-NEXT: ext_excess_initializers CHECK-NEXT: ext_excess_initializers_in_char_array_initializer CHECK-NEXT: ext_expected_semi_decl_list @@ -94,7 +94,6 @@ CHECK-NEXT: warn_typecheck_function_qualifiers CHECK-NEXT: warn_undef_interface CHECK-NEXT: warn_undef_interface_suggest CHECK-NEXT: warn_undef_protocolref -CHECK-NEXT: warn_use_out_of_scope_declaration CHECK-NEXT: warn_weak_identifier_undeclared CHECK-NEXT: warn_weak_import |
