Home
last modified time | relevance | path

Searched +full:unused +full:- +full:variable (Results 1 – 25 of 1021) sorted by relevance

12345678910>>...41

/external/clang/test/SemaCXX/
Dwarn-unused-variables.cpp1 // RUN: %clang_cc1 -fsyntax-only -Wunused-variable -Wunused-label -Wno-c++1y-extensions -verify %s
46 static int y = 0; // expected-warning{{unused variable 'y'}} in unused_local_static()
47 #pragma unused(x) in unused_local_static()
52 // We expect a warning in the definition only for non-dependent variables, and
57 int a; // expected-warning {{unused variable 'a'}} in f()
58 T b; // expected-warning 2{{unused variable 'b'}} in f()
64 int a; // expected-warning {{unused variable 'a'}} in f()
65 T b; // expected-warning 2{{unused variable 'b'}} in f()
69 S<int>().f(); // expected-note {{here}} in g()
70 S<char>().f(); // expected-note {{here}} in g()
[all …]
Dwarn-unused-label-error.cpp1 // RUN: %clang_cc1 -fsyntax-only -Wunused-variable -Wunused-label -verify %s
7 A: // expected-warning {{unused label 'A'}} in f()
8 __attribute__((unused)) int i; // attribute applies to variable in f()
10 __attribute__((unused)); int j; // expected-warning {{unused variable 'j'}} in f()
14 C: // unused label 'C' will not appear here because an error has occurred in g()
15 __attribute__((unused)) in g()
16 #pragma weak unused_local_static // expected-error {{expected ';' after __attribute__}} in g()
21 D: // expected-warning {{unused label 'D'}} in h()
23 __attribute__((unused)) // expected-warning {{declaration does not declare anything}} in h()
Dwarn-unused-filescoped.cpp1 // 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()
[all …]
Dno-warn-unused-const-variables.cpp1 // RUN: %clang_cc1 -fsyntax-only -Wunused-variable -Wno-unused-const-variable -verify %s
4 int i = 0; // expected-warning {{unused variable 'i'}}
Dunused.cpp1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s
3 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
5 // PR4103 : Make sure we don't get a bogus unused expression warning
35 …// expected-warning@-2 {{expression result unused; assign into a variable to force a volatile load… in f()
39 …// expected-warning@-2 {{expression result unused; assign into a variable to force a volatile load… in f()
54 int(1); // expected-warning {{expression result unused}} in f()
59 // constructor arguments which are dependent doesn't produce an unused value
/external/clang/test/Sema/
Dpragma-unused.c1 // RUN: %clang_cc1 -fsyntax-only -Wunused-parameter -Wused-but-marked-unused -Wunused -verify %s
5 #pragma unused(x) in f1()
6 #pragma unused(y, z) in f1()
8 int w; // expected-warning {{unused}} in f1()
9 #pragma unused w // expected-warning{{missing '(' after '#pragma unused' - ignoring}} in f1()
13 int x, y; // expected-warning {{unused}} expected-warning {{unused}} in f2()
14 #pragma unused(x,) // expected-warning{{expected '#pragma unused' argument to be a variable name}} in f2()
15 #pragma unused() // expected-warning{{expected '#pragma unused' argument to be a variable name}} in f2()
19 …#pragma unused(x) // expected-warning{{undeclared variable 'x' used as an argument for '#pragma un… in f3()
23 int w; // expected-warning {{unused}} in f4()
[all …]
Dattr-unused.c1 // RUN: %clang_cc1 -verify -Wunused -Wused-but-marked-unused -Wunused-parameter -Wunused -fsyntax-o…
3 static void (*fp0)(void) __attribute__((unused));
5 static void __attribute__((unused)) f0(void);
8 int f1() __attribute__((unused));
10 int g0 __attribute__((unused));
12 int f2() __attribute__((unused(1, 2))); // expected-error {{'unused' attribute takes no arguments}}
14 struct Test0_unused {} __attribute__((unused));
16 typedef int Int_unused __attribute__((unused));
20 int x; // expected-warning {{unused variable}} in test0()
22 Int_not_unused i0; // expected-warning {{unused variable}} in test0()
[all …]
Dwarn-unused-variables.c1 // RUN: %clang_cc1 -fsyntax-only -Wunused-variable -fblocks -verify %s
10 int a __attribute__((unused)), in f0()
11 b; // expected-warning{{unused}} in f0()
23 int X = 4; // Shouldn't have a bogus 'unused variable X' warning. in f2()
24 return Y + X; // expected-error {{use of undeclared identifier 'Y'}} in f2()
29 (void)(Y1 + X1); // expected-error {{use of undeclared identifier 'Y1'}} in f3()
30 (void)(^() { int X = 4; }); // expected-warning{{unused}} in f3()
31 (void)(^() { int X = 4; return Y + X; }); // expected-error {{use of undeclared identifier 'Y'}} in f3()
/external/clang/test/Analysis/
Ddead-stores.c1 …ng_cc1 -Wunused-variable -analyze -analyzer-checker=core,deadcode.DeadStores -fblocks -verify -Wno
2-Wunused-variable -analyze -analyzer-checker=core,deadcode.DeadStores -analyzer-store=region -anal…
5 int k, y; // expected-warning{{unused variable 'k'}} expected-warning{{unused variable 'y'}} in f1()
7 long idx=abc+3*5; // expected-warning {{never read}} expected-warning{{unused variable 'idx'}} in f1()
11 char *c = (char*)b; // no-warning in f2()
12 char *d = b+1; // expected-warning {{never read}} expected-warning{{unused variable 'd'}} in f2()
13 …printf("%s", c); // expected-warning{{implicitly declaring library function 'printf' with type 'in… in f2()
14 // expected-note{{include the header <stdio.h> or explicitly provide a declaration for 'printf'}} in f2()
21 if ((r = f()) != 0) { // no-warning in f3()
22 int y = r; // no-warning in f3()
[all …]
Dunused-ivars.m1 // RUN: %clang_cc1 -fblocks -analyze -analyzer-checker=osx.cocoa.UnusedIvars -verify -Wno-objc-root
3 //===--- BEGIN: Delta-debugging reduced headers. --------------------------===//
6 - (id)retain;
7 - (oneway void)release;
10 - (id)init;
14 //===--- END: Delta-debugging reduced headers. ----------------------------===//
16 // This test case tests the basic functionality of the unused ivar test.
19 int x; // expected-warning {{Instance variable 'x' in class 'TestA' is never used}}
24 // This test case tests whether the unused ivar check handles blocks that
25 // reference an instance variable. (<rdar://problem/7075531>)
[all …]
/external/vulkan-validation-layers/build-android/jni/
DAndroid.mk8 # http://www.apache.org/licenses/LICENSE-2.0
16 LOCAL_PATH := $(call my-dir)
32 LOCAL_CPPFLAGS += -std=c++11 -Wall -Werror -Wno-unused-function -Wno-unused-const-variable
33 LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR -DVK_PROTOTYPES -fvisibility=hidden
50 LOCAL_STATIC_LIBRARIES += layer_utils glslang SPIRV-Tools SPIRV-Tools-opt
51 LOCAL_CPPFLAGS += -std=c++11 -Wall -Werror -Wno-unused-function -Wno-unused-const-variable
52 LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR -DVK_PROTOTYPES -fvisibility=hidden -DBUILD_CORE_VA…
53 LOCAL_LDLIBS := -llog -landroid
54 LOCAL_LDFLAGS += -Wl,-Bsymbolic
55 LOCAL_LDFLAGS += -Wl,--exclude-libs,ALL
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/ThinLTOBitcodeWriter/
Dsymver.ll1 ; RUN: opt -thinlto-bc -o %t %s
2 ; RUN: llvm-modextract -n 1 -o - %t | llvm-dis | FileCheck %s
5 ; REQUIRES: x86-registered-target
7 target triple = "x86_64-unknown-linux-gnu"
10 module asm ".symver unused, unused@VER"
11 module asm ".symver variable, variable@VER"
14 declare !type !0 void @unused()
15 @variable = global i32 0
19 ret i32* @variable
22 ; CHECK: !symvers = !{![[SYMVER:[0-9]+]]}
/external/tensorflow/tensorflow/python/kernel_tests/distributions/
Dkullback_leibler_test.py7 # http://www.apache.org/licenses/LICENSE-2.0
27 # pylint: disable=protected-access
31 # pylint: enable=protected-access
43 def _kl(a, b, name=None): # pylint: disable=unused-argument,unused-variable
57 # pylint: disable=unused-argument,unused-variable
61 # pylint: disable=unused-argument,unused-variable
116 # pylint: disable=unused-argument,unused-variable
119 return "sub1-1"
123 return "sub1-2"
127 return "sub2-1"
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/linalg/
Dlinear_operator_algebra_test.py7 # http://www.apache.org/licenses/LICENSE-2.0
22 from tensorflow.python.ops.linalg import cholesky_registrations # pylint: disable=unused-import
25 from tensorflow.python.ops.linalg import matmul_registrations # pylint: disable=unused-import
28 # pylint: disable=protected-access
37 # pylint: enable=protected-access
57 def _adjoint(a): # pylint: disable=unused-argument,unused-variable
99 def _cholesky(a): # pylint: disable=unused-argument,unused-variable
149 def _matmul(a, b): # pylint: disable=unused-argument,unused-variable
195 def _inverse(a): # pylint: disable=unused-argument,unused-variable
/external/tensorflow/tensorflow/contrib/boosted_trees/python/ops/
Dmodel_ops.py7 # http://www.apache.org/licenses/LICENSE-2.0
22 # pylint: disable=unused-import
24 # pylint: enable=unused-import
28 # pylint: disable=unused-import
31 # pylint: enable=unused-import
50 tree_ensemble_handle: handle to the tree ensemble variable.
51 create_op: the op to initialize the variable.
52 name: the name to save the tree ensemble variable under.
55 # slice_spec is useful for saving a slice from a variable.
56 # It's not meaningful the tree ensemble variable. So we just pass an empty
[all …]
/external/syzkaller/pkg/compiler/testdata/
Derrors2.txt6 resource r0[r0] ### recursive resource r0->r0
7 resource r1[r2] ### recursive resource r1->r2->r1
8 resource r2[r1] ### recursive resource r2->r1->r2
9 resource r3[int32] ### unused resource r3
16 f1 sr1 ### recursive declaration: sr1.f1 -> sr1 (mark some pointers as opt)
25 f1 ptr[in, sr3] ### recursive declaration: sr3.f1 -> sr3 (mark some pointers as opt)
30 …f2 array[ptr[in, sr5], 4] ### recursive declaration: sr4.f2 -> sr5.f2 -> sr6.f1 -> sr4 (mark some …
51 …f templ_sr[sr8] ### recursive declaration: sr8.f -> templ_sr[sr8].f -> sr8 (mark some pointers as …
55 …f templ_sr[ptr[in, sr9]] ### recursive declaration: sr9.f -> templ_sr[ptr[in, sr9]].f -> sr9 (mark…
165 f1 array[int8] ### variable size field f1 in the middle of non-packed struct s402
[all …]
/external/apache-commons-bcel/src/main/java/org/apache/bcel/classfile/
DLocalVariable.java9 * http://www.apache.org/licenses/LICENSE-2.0
28 * This class represents a local variable within a method. It contains its
36 private int start_pc; // Range in which the variable is valid
38 private int name_index; // Index in constant pool of variable name
39 private int signature_index; // Index of variable signature
40 private int index; /* Variable is `index'th local variable on
70 * @param start_pc Range in which the variable
72 * @param name_index Index in constant pool of variable name
73 * @param signature_index Index of variable's signature
74 * @param index Variable is `index'th local variable on the method's frame
[all …]
/external/tensorflow/tensorflow/core/kernels/
Dtraining_op_helpers.h7 http://www.apache.org/licenses/LICENSE-2.0
27 // Must be called before performing a sparse operation on a variable. Ensures
28 // that no concurrent dense operations can happen while holding the variable's
32 if (var->copy_on_read_mode.load()) { in EnsureSparseVariableAccess()
35 mutex_lock ml(*var->mu()); in EnsureSparseVariableAccess()
36 // Once copy-on-read mode is True the refcount is guaranteed to be 1. This can in EnsureSparseVariableAccess()
37 // also happen if there are no concurrent reads of the variable and in EnsureSparseVariableAccess()
38 // copy-on-read mode is false. in EnsureSparseVariableAccess()
39 if (var->tensor()->RefCountIsOne()) { in EnsureSparseVariableAccess()
40 var->copy_on_read_mode.store(true); in EnsureSparseVariableAccess()
[all …]
/external/mesa3d/src/compiler/glsl/
Dopt_dead_code_local.cpp30 * they're used before the variable is completely reassigned.
55 this->lhs = lhs; in assignment_entry()
56 this->ir = ir; in assignment_entry()
57 this->unused = ir->write_mask; in assignment_entry()
64 int unused; member in __anona84bf73d0111::assignment_entry
71 this->assignments = assignments; in kill_for_derefs_visitor()
76 foreach_in_list_safe(assignment_entry, entry, this->assignments) { in use_channels()
77 if (entry->lhs == var) { in use_channels()
78 if (var->type->is_scalar() || var->type->is_vector()) { in use_channels()
80 printf("used %s (0x%01x - 0x%01x)\n", entry->lhs->name, in use_channels()
[all …]
/external/tensorflow/tensorflow/python/tools/
Dfreeze_graph.py7 # http://www.apache.org/licenses/LICENSE-2.0
18 variable values stored in a checkpoint file, and output a GraphDef with all of
19 the variable ops converted into const ops containing the values of the
26 An example of command-line usage is:
28 bazel-bin/tensorflow/python/tools/freeze_graph \
29 --input_graph=some_graph_def.pb \
30 --input_checkpoint=model.ckpt-8361242 \
31 --output_graph=/tmp/frozen_graph.pb --output_node_names=softmax
72 if op.type.startswith("Variable") or op.type.endswith("VariableOp"):
99 `tf.train.latest_checkpoint()`, regardless of sharded/non-sharded or
[all …]
/external/v8/src/builtins/
Dbuiltins-arguments-gen.cc2 // Use of this source code is governed by a BSD-style license that can be
5 #include "src/builtins/builtins-arguments-gen.h"
8 #include "src/builtins/builtins-utils-gen.h"
10 #include "src/code-factory.h"
11 #include "src/code-stub-assembler.h"
12 #include "src/frame-constants.h"
13 #include "src/interface-descriptors.h"
14 #include "src/objects-inl.h"
27 VARIABLE(frame_ptr, MachineType::PointerRepresentation()); in GetArgumentsFrameAndCount()
34 VARIABLE(argument_count, ParameterRepresentation(mode)); in GetArgumentsFrameAndCount()
[all …]
/external/ipsec-tools/
DAndroid.bp8 // http://www.apache.org/licenses/LICENSE-2.0
54 "src/include-glibc",
65 "libkeystore-engine",
70 "-DANDROID_CHANGES",
71 "-DHAVE_CONFIG_H",
72 "-D_BSD_SOURCE=1",
74 "-Wno-sign-compare",
75 "-Wno-missing-field-initializers",
76 "-Wno-unused-parameter",
77 "-Wno-pointer-sign",
[all …]
/external/u-boot/include/
Dlinker_lists.h1 /* SPDX-License-Identifier: GPL-2.0+ */
5 * Implementation of linker-generated arrays
25 * contains a constant initialized variable which holds the entry's
33 * and the C variable name is
37 * This ensures uniqueness for both input section and C variable name.
40 * section and "_" for the variable, so that the linker cannot confuse
80 * is the sub-list name. Iterators for the whole list should use the
81 * global list name ("outer"); iterators for only a sub-list should use
82 * the full sub-list name ("outer_2_inner").
85 * named "drivers", two sub-lists named "i2c" and "pci", and iterators
[all …]
/external/clang/test/SemaObjC/
Dforeach.m1 /* RUN: %clang_cc1 -Wall -fsyntax-only -verify -std=c89 -pedantic %s
8 for (int i in a); /* expected-error{{selector element type 'int' is not a valid object}} */
9 for ((id)2 in a); /* expected-error{{selector element is not a valid lvalue}} */
10 for (2 in a); /* expected-error{{selector element is not a valid lvalue}} */
16 for (id thisKey in keys); /* expected-warning {{unused variable 'thisKey'}} */
17 for (id thisKey in keys); /* expected-warning {{unused variable 'thisKey'}} */
37 - (unsigned long)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(id *)stackbuf…
44 for (id thing in collection) { } /* expected-warning {{unused variable 'thing'}} */
55 for (obj.prop in collection) { /* expected-error {{selector element is not a valid lvalue}} */
/external/proguard/src/proguard/optimize/
DParameterShrinker.java2 * ProGuard -- shrinking, optimization, obfuscation, and preverification
5 * Copyright (c) 2002-2014 Eric Lafortune (eric@graphics.cornell.edu)
19 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
32 * This AttributeVisitor removes unused parameters from the code of the methods
93 // Get the total size of the local variable frame. in visitCodeAttribute()
104 // Create a variable map. in visitCodeAttribute()
107 // Move unused parameters right after the parameter block. in visitCodeAttribute()
112 // Is the variable required as a parameter? in visitCodeAttribute()
115 // Keep the variable as a parameter. in visitCodeAttribute()
125 // Shift the variable to the unused parameter block, in visitCodeAttribute()
[all …]

12345678910>>...41