Home
last modified time | relevance | path

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

/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dbugprone-redundant-branch-condition.cpp19 bool onFire = isBurning(); in positive_direct() local
20 if (onFire) { in positive_direct()
21 if (onFire) { in positive_direct()
31 bool onFire = isBurning(); in positive_indirect() local
32 if (onFire) { in positive_indirect()
34 if (onFire) in positive_indirect()
43 bool onFire = isBurning(); in positive_direct_inner_and_lhs() local
44 if (onFire) { in positive_direct_inner_and_lhs()
45 if (onFire && peopleInTheBuilding > 0) { in positive_direct_inner_and_lhs()
54 bool onFire = isBurning(); in positive_indirect_inner_and_lhs() local
[all …]
/external/llvm-project/clang-tools-extra/docs/clang-tidy/checks/
Dbugprone-redundant-branch-condition.rst13 bool onFire = isBurning();
14 if (onFire) {
15 if (onFire)
19 Here `onFire` is checked both in the outer ``if`` and the inner ``if`` statement
21 and suggests removal of the second checking of variable `onFire`.
28 bool onFire = isBurning();
29 if (onFire) {
30 if (onFire && peopleInTheBuilding > 0)
36 bool onFire = isBurning();
37 if (onFire) {
[all …]