/llvm-project/clang-tools-extra/test/clang-tidy/checkers/readability/ |
H A D | function-size.cpp | 27 // CHECK-MESSAGES: :[[@LINE-1]]:6: warning: function 'foo2' exceeds recommended size/complexity thr… 28 // CHECK-MESSAGES: :[[@LINE-2]]:6: note: 1 statements (threshold 0) 34 // CHECK-MESSAGES: :[[@LINE-4]]:6: warning: function 'foo3' exceeds recommended size/complexity 35 // CHECK-MESSAGES: :[[@LINE-5]]:6: note: 3 lines including whitespace and comments (threshold 0) 36 // CHECK-MESSAGES: :[[@LINE-6]]:6: note: 1 statements (threshold 0) 40 // CHECK-MESSAGES: :[[@LINE-2]]:6: warning: function 'foo4' exceeds recommended size/complexity 41 // CHECK-MESSAGES: :[[@LINE-3]]:6: note: 1 lines including whitespace and comments (threshold 0) 42 // CHECK-MESSAGES: :[[@LINE-4]]:6: note: 3 statements (threshold 0) 43 // CHECK-MESSAGES: :[[@LINE-5]]:6: note: 1 branches (threshold 0) 48 // CHECK-MESSAGES: :[[@LINE-3]]:6: warning: function 'foo5' exceeds recommended size/complexity [all …]
|
H A D | uppercase-literal-suffix-integer.cpp | 21 …// CHECK-MESSAGES: :[[@LINE-1]]:30: warning: integer literal has suffix 'u', which is not uppercase in integer_suffix() 22 // CHECK-MESSAGES-NEXT: static constexpr auto v3 = 1u; in integer_suffix() 23 // CHECK-MESSAGES-NEXT: ^~ in integer_suffix() 24 // CHECK-MESSAGES-NEXT: U{{$}} in integer_suffix() 36 …// CHECK-MESSAGES: :[[@LINE-1]]:30: warning: integer literal has suffix 'l', which is not uppercase in integer_suffix() 37 // CHECK-MESSAGES-NEXT: static constexpr auto v5 = 1l; in integer_suffix() 38 // CHECK-MESSAGES-NEXT: ^~ in integer_suffix() 39 // CHECK-MESSAGES-NEXT: L{{$}} in integer_suffix() 51 …// CHECK-MESSAGES: :[[@LINE-1]]:30: warning: integer literal has suffix 'll', which is not upperca… in integer_suffix() 52 // CHECK-MESSAGES-NEXT: static constexpr auto v7 = 1ll; in integer_suffix() [all …]
|
H A D | identifier-naming-main-like.cpp | 16 // CHECK-MESSAGES: :[[@LINE-1]]:18: warning: invalid case style for parameter 'argc' 17 // CHECK-MESSAGES: :[[@LINE-2]]:31: warning: invalid case style for parameter 'argv' 19 // CHECK-MESSAGES: :[[@LINE-1]]:18: warning: invalid case style for parameter 'argc' 20 // CHECK-MESSAGES: :[[@LINE-2]]:31: warning: invalid case style for parameter 'argv' 21 // CHECK-MESSAGES: :[[@LINE-3]]:44: warning: invalid case style for parameter 'env' 23 // CHECK-MESSAGES: :[[@LINE-1]]:17: warning: invalid case style for parameter 'argc' 24 // CHECK-MESSAGES: :[[@LINE-2]]:30: warning: invalid case style for parameter 'argv' 25 // CHECK-MESSAGES: :[[@LINE-3]]:43: warning: invalid case style for parameter 'env' 27 // CHECK-MESSAGES: :[[@LINE-1]]:17: warning: invalid case style for parameter 'argc' 28 // CHECK-MESSAGES: :[[@LINE-2]]:30: warning: invalid case style for parameter 'argv' [all …]
|
H A D | implicit-bool-conversion.c | 27 // CHECK-MESSAGES: :[[@LINE-1]]:21: warning: implicit conversion 'bool' -> 'int' [readability-implicit-bool-conversion] in implicitConversionFromBoolSimpleCases() 31 // CHECK-MESSAGES: :[[@LINE-1]]:30: warning: implicit conversion 'bool' -> 'unsigned long' in implicitConversionFromBoolSimpleCases() 35 // CHECK-MESSAGES: :[[@LINE-1]]:22: warning: implicit conversion 'bool' -> 'char' in implicitConversionFromBoolSimpleCases() 39 // CHECK-MESSAGES: :[[@LINE-1]]:23: warning: implicit conversion 'bool' -> 'float' in implicitConversionFromBoolSimpleCases() 43 // CHECK-MESSAGES: :[[@LINE-1]]:24: warning: implicit conversion 'bool' -> 'double' in implicitConversionFromBoolInReturnValue() 50 // CHECK-MESSAGES: :[[@LINE-1]]:10: warning: implicit conversion 'bool' -> 'float' in implicitConversionFromBoolInSingleBoolExpressions() 61 // CHECK-MESSAGES: :[[@LINE-1]]:17: warning: implicit conversion 'bool' -> 'int' in implicitConversionFromBoolInSingleBoolExpressions() 65 // CHECK-MESSAGES: :[[@LINE-1]]:20: warning: implicit conversion 'bool' -> 'float' in implicitConversionFromBoolInSingleBoolExpressions() 69 // CHECK-MESSAGES: :[[@LINE-1]]:20: warning: implicit conversion 'bool' -> 'char' in implicitConversionFromBoolInComplexBoolExpressions() 78 // CHECK-MESSAGES in implicitConversionFromBoolInComplexBoolExpressions() [all...] |
H A D | uppercase-literal-suffix-floating-point.cpp | 20 …// CHECK-MESSAGES: :[[@LINE-1]]:30: warning: floating point literal has suffix 'f', which is not u… in floating_point_suffix() 21 // CHECK-MESSAGES-NEXT: static constexpr auto v2 = 1.f; in floating_point_suffix() 22 // CHECK-MESSAGES-NEXT: ^ ~ in floating_point_suffix() 23 // CHECK-MESSAGES-NEXT: F{{$}} in floating_point_suffix() 29 …// CHECK-MESSAGES: :[[@LINE-1]]:30: warning: floating point literal has suffix 'f', which is not u… in floating_point_suffix() 30 // CHECK-MESSAGES-NEXT: static constexpr auto v3 = 1.e0f; in floating_point_suffix() 31 // CHECK-MESSAGES-NEXT: ^ ~ in floating_point_suffix() 32 // CHECK-MESSAGES-NEXT: F{{$}} in floating_point_suffix() 48 …// CHECK-MESSAGES: :[[@LINE-1]]:30: warning: floating point literal has suffix 'l', which is not u… in floating_point_suffix() 49 // CHECK-MESSAGES-NEXT: static constexpr auto v6 = 1.l; in floating_point_suffix() [all …]
|
H A D | redundant-smartptr-get.cpp | 79 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: redundant get() call on smart pointer [readability-redundant-smartptr-get] in Positive() 80 // CHECK-MESSAGES: BarPtr().get()->Do(); in Positive() 84 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: redundant get() call in Positive() 85 // CHECK-MESSAGES: u.get()->ConstDo(); in Positive() 89 // CHECK-MESSAGES: :[[@LINE-1]]:13: warning: redundant get() call in Positive() 90 // CHECK-MESSAGES: Bar& b = *BarPtr().get(); in Positive() 94 // CHECK-MESSAGES: :[[@LINE-1]]:14: warning: redundant get() call in Positive() 95 // CHECK-MESSAGES: Bar& b2 = *std::unique_ptr<Bar>().get(); in Positive() 99 // CHECK-MESSAGES: :[[@LINE-1]]:5: warning: redundant get() call in Positive() 100 // CHECK-MESSAGES in Positive() [all...] |
H A D | identifier-naming-hungarian-notation-c-language.c | 11 // CHECK-MESSAGES: :[[@LINE-1]]:11: warning: invalid case style for global constant 'GlobalConstant… 15 // CHECK-MESSAGES: :[[@LINE-1]]:12: warning: invalid case style for global pointer 'GlobalConstantP… 19 // CHECK-MESSAGES: :[[@LINE-1]]:6: warning: invalid case style for global pointer 'GlobalPointerCas… 23 // CHECK-MESSAGES: :[[@LINE-1]]:5: warning: invalid case style for global variable 'GlobalVariableC… 28 …// CHECK-MESSAGES: :[[@LINE-1]]:13: warning: invalid case style for local constant 'LocalConstantC… in Func1() 32 …// CHECK-MESSAGES: :[[@LINE-1]]:18: warning: invalid case style for local constant 'ConstantCase' … in Func1() 36 …// CHECK-MESSAGES: :[[@LINE-1]]:14: warning: invalid case style for local constant pointer 'LocalC… in Func1() 40 …// CHECK-MESSAGES: :[[@LINE-1]]:8: warning: invalid case style for local pointer 'LocalPointerCase… in Func1() 44 …// CHECK-MESSAGES: :[[@LINE-1]]:7: warning: invalid case style for local variable 'LocalVariableCa… in Func1() 50 …// CHECK-MESSAGES: :[[@LINE-1]]:8: warning: invalid case style for public member 'MemberCase' [rea… [all …]
|
H A D | uppercase-literal-suffix-hexadecimal-floating-point.cpp | 16 …// CHECK-MESSAGES: :[[@LINE-1]]:30: warning: floating point literal has suffix 'f', which is not u… in floating_point_suffix() 17 // CHECK-MESSAGES-NEXT: static constexpr auto v1 = 0xfp0f; in floating_point_suffix() 18 // CHECK-MESSAGES-NEXT: ^ ~ in floating_point_suffix() 19 // CHECK-MESSAGES-NEXT: F{{$}} in floating_point_suffix() 29 …// CHECK-MESSAGES: :[[@LINE-1]]:30: warning: floating point literal has suffix 'f', which is not u… in floating_point_suffix() 30 // CHECK-MESSAGES-NEXT: static constexpr auto v3 = 0xfP0f; in floating_point_suffix() 31 // CHECK-MESSAGES-NEXT: ^ ~ in floating_point_suffix() 32 // CHECK-MESSAGES-NEXT: F{{$}} in floating_point_suffix() 42 …// CHECK-MESSAGES: :[[@LINE-1]]:30: warning: floating point literal has suffix 'f', which is not u… in floating_point_suffix() 43 // CHECK-MESSAGES-NEXT: static constexpr auto v5 = 0xFP0f; in floating_point_suffix() [all …]
|
H A D | identifier-naming-hungarian-notation.cpp | 13 …// CHECK-MESSAGES: :[[@LINE-1]]:14: warning: invalid case style for class member 'ClassMemberCase'… 17 …// CHECK-MESSAGES: :[[@LINE-1]]:14: warning: invalid case style for constant member 'ConstantMembe… 21 …// CHECK-MESSAGES: :[[@LINE-1]]:26: warning: invalid case style for constant parameter 'ConstantPa… 25 …// CHECK-MESSAGES: :[[@LINE-1]]:27: warning: invalid case style for pointer parameter 'ConstantPoi… 29 …// CHECK-MESSAGES: :[[@LINE-1]]:24: warning: invalid case style for constexpr variable 'ConstexprV… 34 // CHECK-MESSAGES: :[[@LINE-1]]:11: warning: invalid case style for global constant 'GlobalConstant… 38 // CHECK-MESSAGES: :[[@LINE-1]]:12: warning: invalid case style for global pointer 'GlobalConstantP… 42 // CHECK-MESSAGES: :[[@LINE-1]]:6: warning: invalid case style for global pointer 'GlobalPointerCas… 46 // CHECK-MESSAGES: :[[@LINE-1]]:5: warning: invalid case style for global variable 'GlobalVariableC… 51 …// CHECK-MESSAGES: :[[@LINE-1]]:13: warning: invalid case style for local constant 'LocalConstantC… in Func1() [all …]
|
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/bugprone/ |
H A D | easily-swappable-parameters-qualifiermixing.cpp | 19 // CHECK-MESSAGES: :[[@LINE-1]]:17: warning: 2 adjacent parameters of 'qualified1' of similar type … 20 // CHECK-MESSAGES: :[[@LINE-2]]:21: note: the first parameter in the range is 'I' 21 // CHECK-MESSAGES: :[[@LINE-3]]:34: note: the last parameter in the range is 'CI' 22 // CHECK-MESSAGES: :[[@LINE-4]]:24: note: 'int' and 'const int' parameters accept and bind the same… 25 // CHECK-MESSAGES: :[[@LINE-1]]:17: warning: 2 adjacent parameters of 'qualified2' of similar type … 26 // CHECK-MESSAGES: :[[@LINE-2]]:21: note: the first parameter in the range is 'I' 27 // CHECK-MESSAGES: :[[@LINE-3]]:37: note: the last parameter in the range is 'VI' 28 // CHECK-MESSAGES: :[[@LINE-4]]:24: note: 'int' and 'volatile int' parameters accept and bind the s… 31 // CHECK-MESSAGES: :[[@LINE-1]]:17: warning: 2 adjacent parameters of 'qualified3' of similar type … 32 // CHECK-MESSAGES: :[[@LINE-2]]:21: note: the first parameter in the range is 'I' [all …]
|
H A D | easily-swappable-parameters-len2.cpp | 36 …// CHECK-MESSAGES: :[[@LINE-1]]:16: warning: 3 adjacent parameters of 'operator()' of similar type… 37 // CHECK-MESSAGES: :[[@LINE-2]]:20: note: the first parameter in the range is 'I' 38 // CHECK-MESSAGES: :[[@LINE-3]]:34: note: the last parameter in the range is 'K' 48 // CHECK-MESSAGES: :[[@LINE-1]]:39: warning: 2 adjacent parameters of 'operator new' of similar typ… 49 // CHECK-MESSAGES: :[[@LINE-2]]:42: note: the first parameter in the range is 'Manager' 50 // CHECK-MESSAGES: :[[@LINE-3]]:54: note: the last parameter in the range is 'Janitor' 56 // CHECK-MESSAGES: :[[@LINE-1]]:18: warning: 3 adjacent parameters of 'redeclChain' of similar type… 57 // CHECK-MESSAGES: :[[@LINE-2]]:22: note: the first parameter in the range is 'I' 58 // CHECK-MESSAGES: :[[@LINE-3]]:36: note: the last parameter in the range is 'K' 61 // CHECK-MESSAGES: :[[@LINE-1]]:15: warning: 2 adjacent parameters of 'copyMany' of similar type ('… [all …]
|
H A D | signal-handler.cpp | 35 …// CHECK-MESSAGES: :[[@LINE-17]]:3: warning: standard function 'printf' may not be asynchronous-sa… in test() 36 …// CHECK-MESSAGES: :[[@LINE-2]]:23: note: function 'handler_unsafe_1' registered here as signal ha… in test() 39 …// CHECK-MESSAGES: :[[@LINE-1]]:23: warning: functions without C linkage are not allowed as signal… in test() 41 …// CHECK-MESSAGES: :[[@LINE-1]]:23: warning: functions without C linkage are not allowed as signal… in test() 43 …// CHECK-MESSAGES: :[[@LINE-1]]:23: warning: lambda function is not allowed as signal handler (unt… in test() 104 …// CHECK-MESSAGES: :[[@LINE-1]]:10: warning: C++-only construct is not allowed in signal handler (… in handler_cpp() 105 …// CHECK-MESSAGES: :[[@LINE-2]]:10: remark: internally, the statement is parsed as a 'CXXConstruct… in handler_cpp() 106 // CHECK-MESSAGES: :198:23: note: function 'handler_cpp' registered here as signal handler in handler_cpp() 108 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: C++-only construct is not allowed in signal handler (u… in handler_cpp() 109 …// CHECK-MESSAGES: :[[@LINE-2]]:3: remark: internally, the statement is parsed as a 'CXXMemberCall… in handler_cpp() [all …]
|
H A D | branch-clone.cpp | 5 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: if with identical then and else branches [bugprone-bran… in test_basic1() 8 // CHECK-MESSAGES: :[[@LINE-1]]:3: note: else branch starts here in test_basic1() 16 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: if with identical then and else branches [bugprone-bran… in test_basic2() 20 // CHECK-MESSAGES: :[[@LINE-1]]:3: note: else branch starts here in test_basic2() 29 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: if with identical then and else branches [bugprone-bran… in test_basic3() 33 // CHECK-MESSAGES: :[[@LINE-1]]:3: note: else branch starts here in test_basic3() 80 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: if with identical then and else branches [bugprone-bran… in test_basic8() 84 // CHECK-MESSAGES: :[[@LINE-1]]:5: note: else branch starts here in test_basic8() 95 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: if with identical then and else branches [bugprone-bran… in test_basic9() 101 // CHECK-MESSAGES: :[[@LINE-1]]:5: note: else branch starts here in test_basic9() [all …]
|
H A D | easily-swappable-parameters-implicits.cpp | 13 // CHECK-MESSAGES: :[[@LINE-1]]:36: warning: 2 adjacent parameters of 'implicitDoesntBreakOtherStuf… 14 // CHECK-MESSAGES: :[[@LINE-2]]:40: note: the first parameter in the range is 'A' 15 // CHECK-MESSAGES: :[[@LINE-3]]:47: note: the last parameter in the range is 'B' 18 // CHECK-MESSAGES: :[[@LINE-1]]:19: warning: 2 adjacent parameters of 'arrayAndPtr1' of similar typ… 19 // CHECK-MESSAGES: :[[@LINE-2]]:24: note: the first parameter in the range is 'IP' 20 // CHECK-MESSAGES: :[[@LINE-3]]:32: note: the last parameter in the range is 'IA' 23 // CHECK-MESSAGES: :[[@LINE-1]]:19: warning: 2 adjacent parameters of 'arrayAndPtr2' of similar typ… 24 // CHECK-MESSAGES: :[[@LINE-2]]:24: note: the first parameter in the range is 'IP' 25 // CHECK-MESSAGES: :[[@LINE-3]]:32: note: the last parameter in the range is 'IA' 33 // CHECK-MESSAGES: :[[@LINE-1]]:14: warning: 2 adjacent parameters of 'arrays1' of similar type ('i… [all …]
|
H A D | incorrect-roundings.cpp | 12 …// CHECK-MESSAGES: [[@LINE-1]]:7: warning: casting (double + 0.5) to integer leads to incorrect ro… in f1() 14 // CHECK-MESSAGES: [[@LINE-1]]:7: warning: casting (double + 0.5) in f1() 16 // CHECK-MESSAGES: [[@LINE-1]]:7: warning: casting (double + 0.5) in f1() 18 // CHECK-MESSAGES: [[@LINE-1]]:7: warning: casting (double + 0.5) in f1() 20 // CHECK-MESSAGES: [[@LINE-1]]:7: warning: casting (double + 0.5) in f1() 22 // CHECK-MESSAGES: [[@LINE-1]]:7: warning: casting (double + 0.5) in f1() 24 // CHECK-MESSAGES: [[@LINE-1]]:7: warning: casting (double + 0.5) in f1() 26 // CHECK-MESSAGES: [[@LINE-1]]:7: warning: casting (double + 0.5) in f1() 28 // CHECK-MESSAGES: [[@LINE-1]]:7: warning: casting (double + 0.5) in f1() 30 // CHECK-MESSAGES: [[@LINE-1]]:7: warning: casting (double + 0.5) in f1() [all …]
|
H A D | easily-swappable-parameters.c | 26 // CHECK-MESSAGES: :[[@LINE-1]]:14: warning: 2 adjacent parameters of 'trivial' of similar type ('i… 27 // CHECK-MESSAGES: :[[@LINE-2]]:18: note: the first parameter in the range is 'I' 28 // CHECK-MESSAGES: :[[@LINE-3]]:25: note: the last parameter in the range is 'J' 33 // CHECK-MESSAGES: :[[@LINE-1]]:24: warning: 2 adjacent parameters of 'restrictQualifier' of simila… 34 // CHECK-MESSAGES: :[[@LINE-2]]:39: note: the first parameter in the range is 'CPR1' 35 // CHECK-MESSAGES: :[[@LINE-3]]:60: note: the last parameter in the range is 'CPR2' 38 // CHECK-MESSAGES: :[[@LINE-1]]:15: warning: 2 adjacent parameters of 'pointer1' of similar type ('… 39 // CHECK-MESSAGES: :[[@LINE-2]]:20: note: the first parameter in the range is 'IP1' 40 // CHECK-MESSAGES: :[[@LINE-3]]:30: note: the last parameter in the range is 'IP2' 61 // CHECK-MESSAGES: :[[@LINE-1]]:19: warning: 2 adjacent parameters of 'taggedTypes2' of similar typ… [all …]
|
H A D | easily-swappable-parameters-implicits.c | 13 // CHECK-MESSAGES: :[[@LINE-1]]:36: warning: 2 adjacent parameters of 'implicitDoesntBreakOtherStuf… 14 // CHECK-MESSAGES: :[[@LINE-2]]:40: note: the first parameter in the range is 'A' 15 // CHECK-MESSAGES: :[[@LINE-3]]:47: note: the last parameter in the range is 'B' 18 // CHECK-MESSAGES: :[[@LINE-1]]:19: warning: 2 adjacent parameters of 'arrayAndPtr1' of similar typ… 19 // CHECK-MESSAGES: :[[@LINE-2]]:24: note: the first parameter in the range is 'IP' 20 // CHECK-MESSAGES: :[[@LINE-3]]:32: note: the last parameter in the range is 'IA' 23 // CHECK-MESSAGES: :[[@LINE-1]]:19: warning: 2 adjacent parameters of 'arrayAndPtr2' of similar typ… 24 // CHECK-MESSAGES: :[[@LINE-2]]:24: note: the first parameter in the range is 'IP' 25 // CHECK-MESSAGES: :[[@LINE-3]]:32: note: the last parameter in the range is 'IA' 30 // CHECK-MESSAGES: :[[@LINE-1]]:25: warning: 2 adjacent parameters of 'numericConversion1' of conve… [all …]
|
H A D | unused-return-value.cpp | 90 …// CHECK-MESSAGES: [[@LINE-1]]:3: warning: the value returned by this function should not be disre… in warning() 91 // CHECK-MESSAGES: [[@LINE-2]]:3: note: cast the expression to void to silence this warning in warning() 94 …// CHECK-MESSAGES: [[@LINE-1]]:3: warning: the value returned by this function should not be disre… in warning() 95 // CHECK-MESSAGES: [[@LINE-2]]:3: note: cast the expression to void to silence this warning in warning() 99 …// CHECK-MESSAGES: [[@LINE-1]]:3: warning: the value returned by this function should not be disre… in warning() 100 // CHECK-MESSAGES: [[@LINE-2]]:3: note: cast the expression to void to silence this warning in warning() 103 …// CHECK-MESSAGES: [[@LINE-1]]:3: warning: the value returned by this function should not be disre… in warning() 104 // CHECK-MESSAGES: [[@LINE-2]]:3: note: cast the expression to void to silence this warning in warning() 107 …// CHECK-MESSAGES: [[@LINE-1]]:3: warning: the value returned by this function should not be disre… in warning() 108 // CHECK-MESSAGES: [[@LINE-2]]:3: note: cast the expression to void to silence this warning in warning() [all …]
|
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/android/ |
H A D | cloexec-open.cpp | 21 …// CHECK-MESSAGES: :[[@LINE-1]]:26: warning: 'open' should use O_CLOEXEC where possible [android-c… in a() 24 // CHECK-MESSAGES: :[[@LINE-1]]:45: warning: 'open' should use O_CLOEXEC where in a() 27 // CHECK-MESSAGES: :[[@LINE-1]]:35: warning: 'open' should use O_CLOEXEC where in a() 30 // CHECK-MESSAGES: :[[@LINE-1]]:54: warning: 'open' should use O_CLOEXEC where in a() 36 …// CHECK-MESSAGES: :[[@LINE-1]]:28: warning: 'open64' should use O_CLOEXEC where possible [android… in b() 39 // CHECK-MESSAGES: :[[@LINE-1]]:47: warning: 'open64' should use O_CLOEXEC where in b() 42 // CHECK-MESSAGES: :[[@LINE-1]]:37: warning: 'open64' should use O_CLOEXEC where in b() 45 // CHECK-MESSAGES: :[[@LINE-1]]:56: warning: 'open64' should use O_CLOEXEC where in b() 51 …// CHECK-MESSAGES: :[[@LINE-1]]:31: warning: 'openat' should use O_CLOEXEC where possible [android… in c() 54 // CHECK-MESSAGES: :[[@LINE-1]]:50: warning: 'openat' should use O_CLOEXEC where in c() [all …]
|
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/google/ |
H A D | upgrade-googletest-case.cpp | 16 // CHECK-MESSAGES: [[@LINE-1]]:1: warning: Google Test APIs named with 'case' are deprecated; use e… 19 // CHECK-MESSAGES: [[@LINE-1]]:1: warning: Google Test APIs named with 'case' 22 // CHECK-MESSAGES: [[@LINE-1]]:1: warning: Google Test APIs named with 'case' 25 // CHECK-MESSAGES: [[@LINE-1]]:1: warning: Google Test APIs named with 'case' 29 // CHECK-MESSAGES: [[@LINE-1]]:2: warning: Google Test APIs named with 'case' 31 // CHECK-MESSAGES: [[@LINE-1]]:8: warning: Google Test APIs named with 'case' 36 // CHECK-MESSAGES: [[@LINE-1]]:2: warning: Google Test APIs named with 'case' 38 // CHECK-MESSAGES: [[@LINE-1]]:8: warning: Google Test APIs named with 'case' 43 // CHECK-MESSAGES: [[@LINE-1]]:2: warning: Google Test APIs named with 'case' 45 // CHECK-MESSAGES: [[@LINE-1]]:8: warning: Google Test APIs named with 'case' [all …]
|
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/misc/ |
H A D | redundant-expression.cpp | 20 // CHECK-MESSAGES: :[[@LINE-1]]:9: warning: both sides of operator are equivalent [misc-redundant-expression] in TestSimpleEquivalent() 22 // CHECK-MESSAGES: :[[@LINE-1]]:9: warning: both sides of operator are equivalent in TestSimpleEquivalent() 24 // CHECK-MESSAGES: :[[@LINE-1]]:9: warning: both sides of operator are equivalent in TestSimpleEquivalent() 27 // CHECK-MESSAGES: :[[@LINE-1]]:9: warning: both sides of operator are equivalent in TestSimpleEquivalent() 29 // CHECK-MESSAGES: :[[@LINE-1]]:9: warning: both sides of operator are equivalent in TestSimpleEquivalent() 31 // CHECK-MESSAGES: :[[@LINE-1]]:9: warning: both sides of operator are equivalent in TestSimpleEquivalent() 34 // CHECK-MESSAGES: :[[@LINE-1]]:9: warning: both sides of operator are equivalent in TestSimpleEquivalent() 36 // CHECK-MESSAGES: :[[@LINE-1]]:9: warning: both sides of operator are equivalent in TestSimpleEquivalent() 38 // CHECK-MESSAGES: :[[@LINE-1]]:9: warning: both sides of operator are equivalent in TestSimpleEquivalent() 40 // CHECK-MESSAGES in TestSimpleEquivalent() [all...] |
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/modernize/ |
H A D | use-designated-initializers.cpp | 26 // CHECK-MESSAGES: :[[@LINE-1]]:10: warning: use designated initializer list to initialize 'S2' [modernize-use-designated-initializers] 27 // CHECK-MESSAGES: :[[@LINE-6]]:1: note: aggregate type is defined here 28 // CHECK-MESSAGES-POD: :[[@LINE-3]]:10: warning: use designated initializer list to initialize 'S2' [modernize-use-designated-initializers] 29 // CHECK-MESSAGES-POD: :[[@LINE-8]]:1: note: aggregate type is defined here 33 // CHECK-MESSAGES: :[[@LINE-1]]:7: warning: use designated initializer list to initialize 'S2' [modernize-use-designated-initializers] 34 // CHECK-MESSAGES: :[[@LINE-13]]:1: note: aggregate type is defined here 35 // CHECK-MESSAGES-POD: :[[@LINE-3]]:7: warning: use designated initializer list to initialize 'S2' [modernize-use-designated-initializers] 36 // CHECK-MESSAGES-POD: :[[@LINE-15]]:1: note: aggregate type is defined here 42 // CHECK-MESSAGES: :[[@LINE-1]]:17: warning: use designated init expression to initialize field 'j' [modernize-use-designated-initializers] 43 // CHECK-MESSAGES [all...] |
H A D | use-nullptr-basic.cpp | 13 // CHECK-MESSAGES: :[[@LINE-1]]:13: warning: use nullptr [modernize-use-nullptr] in test_assignment() 16 // CHECK-MESSAGES: :[[@LINE-1]]:8: warning: use nullptr in test_assignment() 20 // CHECK-MESSAGES: :[[@LINE-1]]:13: warning: use nullptr in test_assignment() 28 // CHECK-MESSAGES: :[[@LINE-1]]:13: warning: use nullptr in test_assignment() 32 // CHECK-MESSAGES: :[[@LINE-1]]:8: warning: use nullptr in test_assignment() 39 // CHECK-MESSAGES: :[[@LINE-1]]:8: warning: use nullptr in test_assignment() 50 // CHECK-MESSAGES: :[[@LINE-1]]:18: warning: use nullptr in test_assignment() 56 // CHECK-MESSAGES: :[[@LINE-1]]:16: warning: use nullptr 60 // CHECK-MESSAGES: :[[@LINE-1]]:21: warning: use nullptr 70 // CHECK-MESSAGES: :[[@LINE-1]]:18: warning: use nullptr [all …]
|
H A D | use-using.cpp | 4 // CHECK-MESSAGES: :[[@LINE-1]]:1: warning: use 'using' instead of 'typedef' [modernize-use-using] 8 // CHECK-MESSAGES: :[[@LINE-1]]:1: warning: use 'using' instead of 'typedef' 12 // CHECK-MESSAGES: :[[@LINE-1]]:1: warning: use 'using' instead of 'typedef' 16 // CHECK-MESSAGES: :[[@LINE-1]]:1: warning: use 'using' instead of 'typedef' 20 // CHECK-MESSAGES: :[[@LINE-1]]:1: warning: use 'using' instead of 'typedef' 24 // CHECK-MESSAGES: :[[@LINE-1]]:1: warning: use 'using' instead of 'typedef' 29 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: use 'using' instead of 'typedef' 34 // CHECK-MESSAGES: :[[@LINE-1]]:1: warning: use 'using' instead of 'typedef' 45 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: use 'using' instead of 'typedef' 54 // CHECK-MESSAGES [all...] |
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/hicpp/ |
H A D | signed-bitwise.cpp | 34 …// CHECK-MESSAGES: :[[@LINE-1]]:13: warning: use of a signed integer operand with a binary bitwise… in binary_bitwise() 36 …// CHECK-MESSAGES: :[[@LINE-1]]:13: warning: use of a signed integer operand with a binary bitwise… in binary_bitwise() 38 …// CHECK-MESSAGES: :[[@LINE-1]]:13: warning: use of a signed integer operand with a binary bitwise… in binary_bitwise() 41 …// CHECK-MESSAGES: :[[@LINE-1]]:13: warning: use of a signed integer operand with a binary bitwise… in binary_bitwise() 43 …// CHECK-MESSAGES: :[[@LINE-1]]:13: warning: use of a signed integer operand with a binary bitwise… in binary_bitwise() 45 …// CHECK-MESSAGES: :[[@LINE-1]]:13: warning: use of a signed integer operand with a binary bitwise… in binary_bitwise() 58 …// CHECK-MESSAGES: :[[@LINE-1]]:12: warning: use of a signed integer operand with a binary bitwise… in binary_bitwise() 60 …// CHECK-MESSAGES: :[[@LINE-1]]:12: warning: use of a signed integer operand with a binary bitwise… in binary_bitwise() 62 …// CHECK-MESSAGES: :[[@LINE-1]]:12: warning: use of a signed integer operand with a binary bitwise… in binary_bitwise() 66 …// CHECK-MESSAGES: :[[@LINE-1]]:22: warning: use of a signed integer operand with a binary bitwise… in binary_bitwise() [all …]
|