Home
last modified time | relevance | path

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

/external/llvm-project/clang/test/SemaCXX/
Dself-comparison.cpp47 static int static_field; member
50 …return static_field == static_field; // expected-warning {{self-comparison always evaluates to tr… in test()
51 …return static_field == b.static_field; // expected-warning {{self-comparison always evaluates to … in test()
52 …return B::static_field == this->static_field; // expected-warning {{self-comparison always evalua… in test()
68 static int static_field; member
74 static int static_field; member
82 …return s1.static_field == s2.static_field; // expected-warning {{self-comparison always evaluates… in struct_test()
83 …return S::static_field == s1.static_field; // expected-warning {{self-comparison always evaluates… in struct_test()
85 …return t.s.static_field == S::static_field; // expected-warning {{self-comparison always evaluate… in struct_test()
87 …return s3->static_field == S::static_field; // expected-warning {{self-comparison always evaluate… in struct_test()
[all …]
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dreadability-convert-member-functions-to-static.cpp13 static int static_field; member in A
40 return static_field; in read_static()
45 static_field = 1; in write_static()
48 static int already_static() { return static_field; } in already_static()
55 return static_field; in already_const_convert_to_static()