• Home
  • Raw
  • Download

Lines Matching +full:unused +full:- +full:variable

1 // RUN: %clang_cc1 -fsyntax-only -verify -Wunused -Wunused-member-function -Wno-unused-local-typede…
2 // RUN: %clang_cc1 -fsyntax-only -verify -Wunused -Wunused-member-function -Wno-unused-local-typede…
6 static void headerstatic() {} // expected-warning{{unused}} in headerstatic()
10 void headeranon() {} // expected-warning{{unused}} in headeranon()
19 // This should not emit an unused-function warning since it inherits
44 #include "warn-unused-filescoped.cpp"
46 static void f1(); // expected-warning{{unused}}
49 void f2(); // expected-warning{{unused}}
51 void f3() { } // expected-warning{{unused}} in f3()
54 void m1() { } // expected-warning{{unused}} in m1()
55 void m2(); // expected-warning{{unused}}
65 template <> void TS<int>::m() { } // expected-warning{{unused}} in m()
69 template <> void tf<int>() { } // expected-warning{{unused}} in tf()
80 void S::m3() { } // expected-warning{{unused}} in m3()
82 static inline void f4() { } // expected-warning{{unused}} in f4()
83 const unsigned int cx = 0; // expected-warning{{unused}}
87 static int x1; // expected-warning{{unused}}
90 int x2; // expected-warning{{unused}}
93 static int x; // expected-warning{{unused}}
100 template <> int TS2<int>::x; // expected-warning{{unused}}
105 // context and not marked unused.
123 void test(A a); // expected-warning {{unused function}}
128 static void foo() { } // expected-warning {{not needed and will not be emitted}} in foo()
145 static const double d = 0.0; // expected-warning{{not needed and will not be emitted}}
159 namespace unused { namespace
161 void func() { // expected-warning {{unused member function}} in func()
163 } x; // expected-warning {{unused variable}}
172 void bar(); // expected-warning {{unused member function 'bar'}}
184 X a = X(); // expected-warning {{unused variable 'a'}}
185 auto b = X(); // expected-warning {{unused variable 'b'}}
206 static constexpr int constexpr3() { return 1; } // expected-warning {{unused}} in constexpr3()