Home
last modified time | relevance | path

Searched full:instead (Results 1 – 25 of 4345) sorted by relevance

12345678910>>...174

/llvm-project/clang-tools-extra/test/clang-tidy/checkers/modernize/
H A Duse-using.cpp4 // 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: :[[@LINE-1]]:1: warning: use 'using' instead o
[all...]
H A Ddeprecated-headers-cxx11.cpp4 … inclusion of deprecated C++ header 'assert.h'; consider using 'cassert' instead [modernize-deprec…
7 …E-1]]:10: warning: inclusion of deprecated C++ header 'complex.h'; consider using 'complex' instead
10 …LINE-1]]:10: warning: inclusion of deprecated C++ header 'ctype.h'; consider using 'cctype' instead
13 …LINE-1]]:10: warning: inclusion of deprecated C++ header 'errno.h'; consider using 'cerrno' instead
16 …[@LINE-1]]:10: warning: inclusion of deprecated C++ header 'fenv.h'; consider using 'cfenv' instead
19 …LINE-1]]:10: warning: inclusion of deprecated C++ header 'float.h'; consider using 'cfloat' instead
22 …]]:10: warning: inclusion of deprecated C++ header 'inttypes.h'; consider using 'cinttypes' instead
25 …NE-1]]:10: warning: inclusion of deprecated C++ header 'limits.h'; consider using 'climits' instead
28 …NE-1]]:10: warning: inclusion of deprecated C++ header 'locale.h'; consider using 'clocale' instead
31 …[@LINE-1]]:10: warning: inclusion of deprecated C++ header 'math.h'; consider using 'cmath' instead
[all …]
H A Duse-std-print.cpp29 // CHECK-MESSAGES: [[@LINE-1]]:3: warning: use 'std::print' instead of 'printf' [modernize-use-std-print] in printf_newline()
35 // CHECK-MESSAGES: [[@LINE-1]]:3: warning: use 'std::println' instead of 'printf' [modernize-use-std-print] in printf_newline()
39 // CHECK-MESSAGES: [[@LINE-1]]:3: warning: use 'std::println' instead of 'printf' [modernize-use-std-print] in printf_newline()
43 // CHECK-MESSAGES: [[@LINE-1]]:3: warning: use 'std::println' instead of 'printf' [modernize-use-std-print] in printf_deceptive_newline()
49 // CHECK-MESSAGES: [[@LINE-1]]:3: warning: use 'std::print' instead of 'printf' [modernize-use-std-print] in printf_deceptive_newline()
53 // CHECK-MESSAGES: [[@LINE-1]]:3: warning: use 'std::println' instead of 'printf' [modernize-use-std-print] in printf_crlf_newline()
59 // CHECK-MESSAGES: [[@LINE-1]]:3: warning: use 'std::print' instead of 'printf' [modernize-use-std-print] in printf_crlf_newline()
63 // CHECK-MESSAGES: [[@LINE-1]]:3: warning: use 'std::print' instead of 'printf' [modernize-use-std-print]
77 // CHECK-MESSAGES: [[@LINE-1]]:5: warning: use 'std::println' instead of 'printf' [modernize-use-std-print] in printf_uses_return_value()
81 // CHECK-MESSAGES: [[@LINE-1]]:5: warning: use 'std::println' instead o in printf_uses_return_value()
[all...]
H A Ddeprecated-headers-cxx03.cpp4 … inclusion of deprecated C++ header 'assert.h'; consider using 'cassert' instead [modernize-deprec…
7 …E-1]]:10: warning: inclusion of deprecated C++ header 'complex.h'; consider using 'complex' instead
10 …LINE-1]]:10: warning: inclusion of deprecated C++ header 'ctype.h'; consider using 'cctype' instead
13 …LINE-1]]:10: warning: inclusion of deprecated C++ header 'errno.h'; consider using 'cerrno' instead
16 …LINE-1]]:10: warning: inclusion of deprecated C++ header 'float.h'; consider using 'cfloat' instead
19 …NE-1]]:10: warning: inclusion of deprecated C++ header 'limits.h'; consider using 'climits' instead
22 …NE-1]]:10: warning: inclusion of deprecated C++ header 'locale.h'; consider using 'clocale' instead
25 …[@LINE-1]]:10: warning: inclusion of deprecated C++ header 'math.h'; consider using 'cmath' instead
28 …NE-1]]:10: warning: inclusion of deprecated C++ header 'setjmp.h'; consider using 'csetjmp' instead
31 …NE-1]]:10: warning: inclusion of deprecated C++ header 'signal.h'; consider using 'csignal' instead
[all …]
H A Dmake-unique.cpp82 // CHECK-MESSAGES: :[[@LINE-1]]:10: warning: use std::make_unique instead in getPointer()
88 // CHECK-MESSAGES: :[[@LINE-1]]:10: warning: use std::make_unique instead in getPointerValue()
94 // CHECK-MESSAGES: :[[@LINE-1]]:29: warning: use std::make_unique instead [modernize-make-unique] in basic()
99 // CHECK-MESSAGES: :[[@LINE-1]]:6: warning: use std::make_unique instead [modernize-make-unique] in basic()
104 // CHECK-MESSAGES: :[[@LINE-1]]:8: warning: use std::make_unique instead [modernize-make-unique] in basic()
117 // CHECK-MESSAGES: :[[@LINE-1]]:13: warning: use std::make_unique instead in basic()
122 // CHECK-MESSAGES: :[[@LINE-1]]:29: warning: use std::make_unique instead [modernize-make-unique] in basic()
127 // CHECK-MESSAGES: :[[@LINE-1]]:6: warning: use std::make_unique instead [modernize-make-unique] in basic()
132 // CHECK-MESSAGES: :[[@LINE-1]]:29: warning: use std::make_unique instead [modernize-make-unique] in basic()
137 // CHECK-MESSAGES: :[[@LINE-1]]:6: warning: use std::make_unique instead [modernize-make-unique] in basic()
[all …]
H A Dmake-shared.cpp37 // CHECK-MESSAGES: :[[@LINE-1]]:10: warning: use std::make_shared instead in getPointer()
43 // CHECK-MESSAGES: :[[@LINE-1]]:10: warning: use std::make_shared instead in getPointerValue()
49 // CHECK-MESSAGES: :[[@LINE-1]]:29: warning: use std::make_shared instead [modernize-make-shared] in basic()
54 // CHECK-MESSAGES: :[[@LINE-1]]:6: warning: use std::make_shared instead [modernize-make-shared] in basic()
59 // CHECK-MESSAGES: :[[@LINE-1]]:8: warning: use std::make_shared instead [modernize-make-shared] in basic()
67 // CHECK-MESSAGES: :[[@LINE-1]]:6: warning: use std::make_shared instead [modernize-make-shared] in basic()
72 // CHECK-MESSAGES: :[[@LINE-1]]:8: warning: use std::make_shared instead [modernize-make-shared] in basic()
78 // CHECK-MESSAGES: :[[@LINE-1]]:13: warning: use std::make_shared instead in basic()
83 // CHECK-MESSAGES: :[[@LINE-1]]:29: warning: use std::make_shared instead [modernize-make-shared] in basic()
88 // CHECK-MESSAGES: :[[@LINE-1]]:6: warning: use std::make_shared instead [modernize-make-shared] in basic()
[all …]
H A Davoid-c-arrays.cpp4 // CHECK-MESSAGES: :[[@LINE-1]]:1: warning: do not declare C-style arrays, use 'std::array' instead
7 // CHECK-MESSAGES: :[[@LINE-1]]:1: warning: do not declare C-style arrays, use 'std::array' instead
11 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: do not declare C VLA arrays, use 'std::vector' instead in foo()
23 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: do not declare C-style arrays, use 'std::array' instead
26 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: do not declare C-style arrays, use 'std::array' instead
30 // CHECK-MESSAGES: :[[@LINE-1]]:7: warning: do not declare C-style arrays, use 'std::array' instead
33 // CHECK-MESSAGES: :[[@LINE-1]]:11: warning: do not declare C-style arrays, use 'std::array' instead
42 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: do not declare C-style arrays, use 'std::array' instead
46 // CHECK-MESSAGES: :[[@LINE-1]]:12: warning: do not declare C-style arrays, use 'std::array' instead
49 // CHECK-MESSAGES: :[[@LINE-1]]:12: warning: do not declare C-style arrays, use 'std::array' instead
[all...]
H A Dloop-convert-basic.cpp20 // CHECK-MESSAGES: :[[@LINE-4]]:3: warning: use range-based for loop instead [modernize-loop-convert] in f()
29 // CHECK-MESSAGES: :[[@LINE-4]]:3: warning: use range-based for loop instead in f()
38 // CHECK-MESSAGES: :[[@LINE-4]]:3: warning: use range-based for loop instead in f()
47 // CHECK-MESSAGES: :[[@LINE-4]]:3: warning: use range-based for loop instead in f()
55 // CHECK-MESSAGES: :[[@LINE-3]]:3: warning: use range-based for loop instead in f()
63 // CHECK-MESSAGES: :[[@LINE-4]]:3: warning: use range-based for loop instead in f()
71 // CHECK-MESSAGES: :[[@LINE-3]]:3: warning: use range-based for loop instead in f()
78 // CHECK-MESSAGES: :[[@LINE-3]]:3: warning: use range-based for loop instead in f()
86 // CHECK-MESSAGES: :[[@LINE-4]]:3: warning: use range-based for loop instead in f()
98 // CHECK-MESSAGES: :[[@LINE-5]]:3: warning: use range-based for loop instead in f()
[all...]
H A Dmacro-to-enum.cpp28 …SAGES: :[[@LINE-13]]:9: warning: macro 'EXPR1' defines an integral constant; prefer an enum instead
29 …SAGES: :[[@LINE-13]]:9: warning: macro 'EXPR2' defines an integral constant; prefer an enum instead
30 …SAGES: :[[@LINE-13]]:9: warning: macro 'EXPR3' defines an integral constant; prefer an enum instead
31 …SAGES: :[[@LINE-13]]:9: warning: macro 'EXPR4' defines an integral constant; prefer an enum instead
32 …SAGES: :[[@LINE-13]]:9: warning: macro 'EXPR5' defines an integral constant; prefer an enum instead
33 …SAGES: :[[@LINE-13]]:9: warning: macro 'EXPR6' defines an integral constant; prefer an enum instead
34 …SAGES: :[[@LINE-13]]:9: warning: macro 'EXPR7' defines an integral constant; prefer an enum instead
35 …SAGES: :[[@LINE-13]]:9: warning: macro 'EXPR8' defines an integral constant; prefer an enum instead
36 …SAGES: :[[@LINE-13]]:9: warning: macro 'EXPR9' defines an integral constant; prefer an enum instead
37 …AGES: :[[@LINE-13]]:9: warning: macro 'EXPR10' defines an integral constant; prefer an enum instead
[all …]
H A Duse-noexcept.cpp9 …ception specification 'throw()' is deprecated; consider using 'noexcept' instead [modernize-use-no…
15 …ception specification 'throw()' is deprecated; consider using 'noexcept' instead [modernize-use-no…
19 …ecification 'throw(...)' is deprecated; consider using 'noexcept(false)' instead [modernize-use-no…
23 …cation 'throw(int(int))' is deprecated; consider using 'noexcept(false)' instead [modernize-use-no…
28 …cification 'throw(A, B)' is deprecated; consider using 'noexcept(false)' instead [modernize-use-no…
32 …cification 'throw(A, B)' is deprecated; consider using 'noexcept(false)' instead [modernize-use-no…
36 …ception specification 'throw()' is deprecated; consider using 'noexcept' instead [modernize-use-no…
40 …ecification 'throw(int)' is deprecated; consider using 'noexcept(false)' instead [modernize-use-no…
41 …cification 'throw(char)' is deprecated; consider using 'noexcept(false)' instead [modernize-use-no…
46 …ecification 'THROW(int)' is deprecated; consider using 'noexcept(false)' instead [modernize-use-no…
[all …]
H A Duse-noexcept-opt.cpp12 …ception specification 'throw()' is deprecated; consider using 'noexcept' instead [modernize-use-no…
16 …exception specification 'throw(...)' is deprecated; consider removing it instead [modernize-use-no…
20 …tion specification 'throw(int(int))' is deprecated; consider removing it instead [modernize-use-no…
26 …xception specification 'throw (int)' is deprecated; consider removing it instead [modernize-use-no…
30 …xception specification 'throw(A, B)' is deprecated; consider removing it instead [modernize-use-no…
34 …xception specification 'throw(A, B)' is deprecated; consider removing it instead [modernize-use-no…
38 …ception specification 'throw()' is deprecated; consider using 'noexcept' instead [modernize-use-no…
42 …exception specification 'throw(int)' is deprecated; consider removing it instead [modernize-use-no…
43 …xception specification 'throw(char)' is deprecated; consider removing it instead [modernize-use-no…
48 …exception specification 'THROW(int)' is deprecated; consider removing it instead [modernize-use-no…
[all …]
H A Duse-constraints.cpp35 // CHECK-MESSAGES: :[[@LINE-3]]:1: warning: use C++20 requires constraints instead of enable_if [mo…
42 // CHECK-MESSAGES: :[[@LINE-3]]:1: warning: use C++20 requires constraints instead of enable_if [mo…
49 // CHECK-MESSAGES: :[[@LINE-3]]:26: warning: use C++20 requires constraints instead of enable_if [m…
56 // CHECK-MESSAGES: :[[@LINE-3]]:1: warning: use C++20 requires constraints instead of enable_if [mo…
81 // CHECK-MESSAGES: :[[@LINE-3]]:1: warning: use C++20 requires constraints instead of enable_if [mo…
89 // CHECK-MESSAGES: :[[@LINE-3]]:1: warning: use C++20 requires constraints instead of enable_if [mo…
97 // CHECK-MESSAGES: :[[@LINE-3]]:7: warning: use C++20 requires constraints instead of enable_if [mo…
105 // CHECK-MESSAGES: :[[@LINE-3]]:1: warning: use C++20 requires constraints instead of enable_if [mo…
114 // CHECK-MESSAGES: :[[@LINE-3]]:1: warning: use C++20 requires constraints instead of enable_if [mo…
122 // CHECK-MESSAGES: :[[@LINE-3]]:7: warning: use C++20 requires constraints instead of enable_if [mo…
[all …]
H A Dmake-unique-default-init.cpp14 // CHECK-MESSAGES: :[[@LINE-1]]:29: warning: use std::make_unique instead [modernize-make-unique] in basic()
17 // CHECK-MESSAGES: :[[@LINE-1]]:29: warning: use std::make_unique instead [modernize-make-unique] in basic()
21 // CHECK-MESSAGES: :[[@LINE-1]]:6: warning: use std::make_unique instead [modernize-make-unique] in basic()
24 // CHECK-MESSAGES: :[[@LINE-1]]:6: warning: use std::make_unique instead [modernize-make-unique] in basic()
28 // CHECK-MESSAGES: :[[@LINE-1]]:8: warning: use std::make_unique instead [modernize-make-unique] in basic()
31 // CHECK-MESSAGES: :[[@LINE-1]]:8: warning: use std::make_unique instead [modernize-make-unique] in basic()
36 // CHECK-MESSAGES: :[[@LINE-1]]:13: warning: use std::make_unique instead in basic()
39 // CHECK-MESSAGES: :[[@LINE-1]]:13: warning: use std::make_unique instead in basic()
43 // CHECK-MESSAGES: :[[@LINE-1]]:29: warning: use std::make_unique instead [modernize-make-unique] in basic()
46 // CHECK-MESSAGES: :[[@LINE-1]]:29: warning: use std::make_unique instead [modernize-make-unique] in basic()
[all …]
H A Dloop-convert-extra.cpp16 // CHECK-MESSAGES: :[[@LINE-4]]:3: warning: use range-based for loop instead in f()
53 // CHECK-MESSAGES: :[[@LINE-5]]:3: warning: use range-based for loop instead in aliasing()
66 // CHECK-MESSAGES: :[[@LINE-5]]:3: warning: use range-based for loop instead in aliasing()
77 // CHECK-MESSAGES: :[[@LINE-5]]:3: warning: use range-based for loop instead in aliasing()
90 // CHECK-MESSAGES: :[[@LINE-5]]:3: warning: use range-based for loop instead in aliasing()
101 // CHECK-MESSAGES: :[[@LINE-5]]:3: warning: use range-based for loop instead in aliasing()
110 // CHECK-MESSAGES: :[[@LINE-4]]:3: warning: use range-based for loop instead in aliasing()
121 // CHECK-MESSAGES: :[[@LINE-5]]:3: warning: use range-based for loop instead in aliasing()
130 // CHECK-MESSAGES: :[[@LINE-5]]:3: warning: use range-based for loop instead in aliasing()
140 // CHECK-MESSAGES: :[[@LINE-6]]:3: warning: use range-based for loop instead in aliasing()
[all …]
/llvm-project/clang/test/CXX/class.access/class.access.dcl/
H A Dp1.cpp31 // expected-warning@-2 {{access declarations are deprecated; use using declarations instead}}
33 … expected-error@-4 {{ISO C++11 does not allow access declarations; use using declarations instead}}
38 // expected-warning@-2 {{access declarations are deprecated; use using declarations instead}}
40 … expected-error@-4 {{ISO C++11 does not allow access declarations; use using declarations instead}}
45 // expected-warning@-2 {{access declarations are deprecated; use using declarations instead}}
47 … expected-error@-4 {{ISO C++11 does not allow access declarations; use using declarations instead}}
52 // expected-warning@-2 {{access declarations are deprecated; use using declarations instead}}
54 … expected-error@-4 {{ISO C++11 does not allow access declarations; use using declarations instead}}
73 // expected-warning@-2 {{access declarations are deprecated; use using declarations instead}}
75 … expected-error@-4 {{ISO C++11 does not allow access declarations; use using declarations instead}}
[all …]
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Dunsafe-functions.c31 // CHECK-MESSAGES-WITH-ANNEX-K: :[[@LINE-1]]:3: warning: function 'gets' is insecure, was deprecated and removed in C11 and C++14; 'gets_s' should be used instead [bugprone-unsafe-functions] in f1()
34 // instead of the expected 'get_s', as if "Annex K" was not available. in f1()
35 // CHECK-MESSAGES-WITH-ANNEX-K-CERT-ONLY: :[[@LINE-5]]:3: warning: function 'gets' is insecure, was deprecated and removed in C11 and C++14; 'gets_s' should be used instead in f1()
36 // CHECK-MESSAGES-WITHOUT-ANNEX-K: :[[@LINE-6]]:3: warning: function 'gets' is insecure, was deprecated and removed in C11 and C++14; 'fgets' should be used instead in f1()
39 // CHECK-MESSAGES-WITH-ANNEX-K: :[[@LINE-1]]:3: warning: function 'strlen' is not bounds-checking; 'strnlen_s' should be used instead in f1w()
40 // CHECK-MESSAGES-WITH-ANNEX-K-CERT-ONLY: :[[@LINE-2]]:3: warning: function 'strlen' is not bounds-checking; 'strnlen_s' should be used instead in f1w()
46 // CHECK-MESSAGES-WITH-ANNEX-K: :[[@LINE-1]]:3: warning: function 'wcslen' is not bounds-checking; 'wcsnlen_s' should be used instead
47 // CHECK-MESSAGES-WITH-ANNEX-K-CERT-ONLY: :[[@LINE-2]]:3: warning: function 'wcslen' is not bounds-checking; 'wcsnlen_s' should be used instead
56 // CHECK-MESSAGES-WITH-ANNEX-K: :[[@LINE-1]]:3: warning: function 'asctime' is not bounds-checking and non-reentrant; 'asctime_s' should be used instead in f2()
57 // CHECK-MESSAGES-WITH-ANNEX-K-CERT-ONLY: :[[@LINE-2]]:3: warning: function 'asctime' is not bounds-checking and non-reentrant; 'asctime_s' should be used instead in f2()
[all...]
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/performance/
H A Davoid-endl.cpp56 // CHECK-MESSAGES: :[[@LINE-1]]:27: warning: do not use 'std::endl' with streams; use '\n' instead [performance-avoid-endl] in bad()
59 // CHECK-MESSAGES: :[[@LINE-1]]:28: warning: do not use 'std::endl' with streams; use '\n' instead [performance-avoid-endl] in bad()
62 // CHECK-MESSAGES: :[[@LINE-1]]:27: warning: do not use 'std::endl' with streams; use '\n' instead [performance-avoid-endl] in bad()
65 // CHECK-MESSAGES: :[[@LINE-1]]:28: warning: do not use 'std::endl' with streams; use '\n' instead [performance-avoid-endl] in bad()
68 // CHECK-MESSAGES: :[[@LINE-1]]:27: warning: do not use 'std::endl' with streams; use '\n' instead [performance-avoid-endl] in bad()
71 // CHECK-MESSAGES: :[[@LINE-1]]:28: warning: do not use 'std::endl' with streams; use '\n' instead [performance-avoid-endl] in bad()
77 // CHECK-MESSAGES: :[[@LINE-1]]:16: warning: do not use 'std::endl' with streams; use '\n' instead [performance-avoid-endl] in bad_single_argument()
80 // CHECK-MESSAGES: :[[@LINE-1]]:17: warning: do not use 'std::endl' with streams; use '\n' instead [performance-avoid-endl] in bad_single_argument()
83 // CHECK-MESSAGES: :[[@LINE-1]]:16: warning: do not use 'std::endl' with streams; use '\n' instead [performance-avoid-endl] in bad_single_argument()
86 // CHECK-MESSAGES: :[[@LINE-1]]:17: warning: do not use 'std::endl' with streams; use '\n' instead [performanc in bad_single_argument()
[all...]
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/abseil/
H A Dupgrade-duration-conversions.cpp20 …rning: implicit conversion to 'int64_t' is deprecated in this context; use an explicit cast instead in arithmeticOperatorBasicPositive()
23 …rning: implicit conversion to 'int64_t' is deprecated in this context; use an explicit cast instead in arithmeticOperatorBasicPositive()
26 …rning: implicit conversion to 'int64_t' is deprecated in this context; use an explicit cast instead in arithmeticOperatorBasicPositive()
29 …rning: implicit conversion to 'int64_t' is deprecated in this context; use an explicit cast instead in arithmeticOperatorBasicPositive()
32 …rning: implicit conversion to 'int64_t' is deprecated in this context; use an explicit cast instead in arithmeticOperatorBasicPositive()
35 …rning: implicit conversion to 'int64_t' is deprecated in this context; use an explicit cast instead in arithmeticOperatorBasicPositive()
38 …rning: implicit conversion to 'int64_t' is deprecated in this context; use an explicit cast instead in arithmeticOperatorBasicPositive()
41 …rning: implicit conversion to 'int64_t' is deprecated in this context; use an explicit cast instead in arithmeticOperatorBasicPositive()
44 …rning: implicit conversion to 'int64_t' is deprecated in this context; use an explicit cast instead in arithmeticOperatorBasicPositive()
47 …rning: implicit conversion to 'int64_t' is deprecated in this context; use an explicit cast instead in arithmeticOperatorBasicPositive()
[all …]
H A Dstring-find-str-contains.cpp72 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: use !absl::StrContains instead of find() == npos in basic_tests()
76 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: use absl::StrContains instead of find() != npos in basic_tests()
80 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: use absl::StrContains instead of in basic_tests()
85 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: use !absl::StrContains instead of in basic_tests()
89 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: use absl::StrContains instead of in basic_tests()
93 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: use absl::StrContains instead of in basic_tests()
98 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: use !absl::StrContains instead of in basic_tests()
102 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: use absl::StrContains instead of in basic_tests()
106 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: use absl::StrContains instead of in basic_tests()
117 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: use !absl::StrContains instead of in mismatched_npos()
[all …]
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/objc/
H A Dnsdate-formatter.m47 …e of week year (Y) with month (M); did you mean to use calendar year (y) instead? [objc-nsdate-for…
65 …ar year (y) with week of the year (w); did you mean to use week-year (Y) instead? [objc-nsdate-for…
83 …ar year (y) with week of the year (w); did you mean to use week-year (Y) instead? [objc-nsdate-for…
102 …ar year (y) with week of the year (w); did you mean to use week-year (Y) instead? [objc-nsdate-for…
108 …e of week year (Y) with month (M); did you mean to use calendar year (y) instead? [objc-nsdate-for…
118 …ar (Y) with week of the month (W); did you mean to use calendar year (y) instead? [objc-nsdate-for…
127 …year (Y) with day of the year (D); did you mean to use calendar year (y) instead? [objc-nsdate-for…
137 …year (Y) with day of the year (D); did you mean to use calendar year (y) instead? [objc-nsdate-for…
151 …ar year (y) with week of the year (w); did you mean to use week-year (Y) instead? [objc-nsdate-for…
156 …ar year (y) with week of the year (w); did you mean to use week-year (Y) instead? [objc-nsdate-for…
[all …]
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/readability/
H A Duse-std-min-max.cpp28 // CHECK-MESSAGES: :[[@LINE+2]]:3: warning: use `std::max` instead of `<` [readability-use-std-min-max] in foo()
33 // CHECK-MESSAGES: :[[@LINE+2]]:3: warning: use `std::min` instead of `<` [readability-use-std-min-max] in foo()
38 // CHECK-MESSAGES: :[[@LINE+2]]:3: warning: use `std::min` instead of `>` [readability-use-std-min-max] in foo()
43 // CHECK-MESSAGES: :[[@LINE+2]]:3: warning: use `std::max` instead of `>` [readability-use-std-min-max] in foo()
52 // CHECK-MESSAGES: :[[@LINE+3]]:3: warning: use `std::max` instead of `<` [readability-use-std-min-max] in foo()
58 // CHECK-MESSAGES: :[[@LINE+2]]:3: warning: use `std::min` instead of `<` [readability-use-std-min-max] in foo()
63 // CHECK-MESSAGES: :[[@LINE+2]]:3: warning: use `std::max` instead of `<` [readability-use-std-min-max] in foo()
68 // CHECK-MESSAGES: :[[@LINE+2]]:3: warning: use `std::min` instead of `>` [readability-use-std-min-max] in foo()
73 // CHECK-MESSAGES: :[[@LINE+2]]:3: warning: use `std::min` instead of `<=` [readability-use-std-min-max] in foo()
78 // CHECK-MESSAGES: :[[@LINE+2]]:3: warning: use `std::max` instead o in foo()
[all...]
/llvm-project/clang/test/Sema/
H A Dwarn-absolute-value.c23 // expected-note@-2 {{use function 'abs' instead}} in test_int()
27 // expected-note@-2 {{use function 'abs' instead}} in test_int()
31 // expected-note@-2 {{use function 'abs' instead}} in test_int()
36 // expected-note@-2 {{use function 'abs' instead}} in test_int()
40 // expected-note@-2 {{use function 'abs' instead}} in test_int()
44 // expected-note@-2 {{use function 'abs' instead}} in test_int()
53 // expected-note@-2 {{use function '__builtin_abs' instead}} in test_int()
57 // expected-note@-2 {{use function '__builtin_abs' instead}} in test_int()
61 // expected-note@-2 {{use function '__builtin_abs' instead}} in test_int()
66 // expected-note@-2 {{use function '__builtin_abs' instead}} in test_int()
[all …]
/llvm-project/clang/test/SemaCXX/
H A Daddress-space-placement.cpp4 // spelling of the `address_space` attribute is applied to a declaration instead
5 // of a type. Also check that the attribute can instead be applied to the type.
7 …{{applying attribute 'address_space' to a declaration is deprecated; apply it to the type instead}} in f()
8 …{{applying attribute 'address_space' to a declaration is deprecated; apply it to the type instead}} in f()
9 …{{applying attribute 'address_space' to a declaration is deprecated; apply it to the type instead}} in f()
13 …{{applying attribute 'address_space' to a declaration is deprecated; apply it to the type instead}} in f()
14 …{{applying attribute 'address_space' to a declaration is deprecated; apply it to the type instead}} in f()
15 …{{applying attribute 'address_space' to a declaration is deprecated; apply it to the type instead}} in f()
16 …{{applying attribute 'address_space' to a declaration is deprecated; apply it to the type instead}} in f()
18 …{{applying attribute 'address_space' to a declaration is deprecated; apply it to the type instead}} in f()
[all …]
H A Dwarn-absolute-value.cpp44 // expected-note@-2 {{use function 'std::abs' instead}} in test_int()
48 // expected-note@-2 {{use function 'std::abs' instead}} in test_int()
52 // expected-note@-2 {{use function 'std::abs' instead}} in test_int()
57 // expected-note@-2 {{use function 'std::abs' instead}} in test_int()
61 // expected-note@-2 {{use function 'std::abs' instead}} in test_int()
65 // expected-note@-2 {{use function 'std::abs' instead}} in test_int()
74 // expected-note@-2 {{use function 'std::abs' instead}} in test_int()
78 // expected-note@-2 {{use function 'std::abs' instead}} in test_int()
82 // expected-note@-2 {{use function 'std::abs' instead}} in test_int()
87 // expected-note@-2 {{use function 'std::abs' instead}} in test_int()
[all …]
/llvm-project/clang/test/FixIt/
H A Dformat-darwin.m39 …f type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead}}
40 …UInteger' should not be used as format arguments; add an explicit cast to 'unsigned long' instead}}
41 …es of type 'SInt32' should not be used as format arguments; add an explicit cast to 'int' instead}}
42 …e 'UInt32' should not be used as format arguments; add an explicit cast to 'unsigned int' instead}}
56 …g type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead}}
61 … of type 'CFIndex' should not be used as format arguments; add an explicit cast to 'long' instead}}
86 …f type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead}}
87 …f type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead}}
88 …f type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead}}
89 …f type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead}}
[all …]

12345678910>>...174