Home
last modified time | relevance | path

Searched refs:VALUE_IF (Results 1 – 2 of 2) sorted by relevance

/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dabseil-time-comparison.cpp94 #define VALUE_IF(v, e) v ? (e) : 0 in f() macro
95 int a = VALUE_IF(1, 5 > absl::ToUnixSeconds(t1)); in f()
98 #undef VALUE_IF in f()
101 #define VALUE_IF(v, e) v ? VALUE_IF_2(e) : VALUE_IF_2(0) in f() macro
102 int a2 = VALUE_IF(1, 5 > absl::ToUnixSeconds(t1)); in f()
105 #undef VALUE_IF in f()
109 #define VALUE_IF(v, e, type) (v ? VALUE_IF_2(absl::To##type##Seconds(e)) : 0) in f() macro
110 int a3 = VALUE_IF(1, t1, Unix); in f()
111 #undef VALUE_IF in f()
115 #define VALUE_IF(v, e, type) (v ? (5 > VALUE_IF_2(absl::To##type##Seconds(e))) : 0) in f() macro
[all …]
Dabseil-duration-comparison.cpp131 #define VALUE_IF(v, e) v ? (e) : 0 in f() macro
132 int a = VALUE_IF(1, 5 > absl::ToDoubleSeconds(d1)); in f()
135 #undef VALUE_IF in f()
138 #define VALUE_IF(v, e) v ? VALUE_IF_2(e) : VALUE_IF_2(0) in f() macro
139 int a2 = VALUE_IF(1, 5 > absl::ToDoubleSeconds(d1)); in f()
142 #undef VALUE_IF in f()
146 #define VALUE_IF(v, e, type) (v ? VALUE_IF_2(absl::To##type##Seconds(e)) : 0) in f() macro
147 int a3 = VALUE_IF(1, d1, Double); in f()
148 #undef VALUE_IF in f()
152 #define VALUE_IF(v, e, type) (v ? (5 > VALUE_IF_2(absl::To##type##Seconds(e))) : 0) in f() macro
[all …]