/external/clang/test/Sema/ |
D | pragma-unused.c | 1 // 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 …]
|
D | attr-unused.c | 1 // 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 …]
|
D | warn-unused-variables.c | 1 // 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/SemaCXX/ |
D | warn-unused-variables.cpp | 1 // 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 …]
|
D | warn-unused-label-error.cpp | 1 // 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()
|
D | warn-unused-filescoped.cpp | 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() [all …]
|
D | no-warn-unused-const-variables.cpp | 1 // RUN: %clang_cc1 -fsyntax-only -Wunused-variable -Wno-unused-const-variable -verify %s 4 int i = 0; // expected-warning {{unused variable 'i'}}
|
D | warn-unused-attribute.cpp | 1 // RUN: %clang_cc1 -fsyntax-only -Wunused-variable -verify %s 13 Test unused; // expected-warning {{unused variable 'unused'}} in main() local 18 …int i __attribute__((warn_unused)) = 12; // expected-warning {{'warn_unused' attribute only applie… in main()
|
D | for-range-unused.cpp | 1 // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11 -Wunused 3 // PR9968: We used to warn that __range is unused in a dependent for-range. 8 int a; // expected-warning {{unused variable 'a'}} in doIt() 10 for (auto& e : elements) // expected-warning {{unused variable 'e'}} in doIt() 20 vector.doIt(); // expected-note {{here}} in main()
|
D | unused.cpp | 1 // 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/Analysis/ |
D | dead-stores.c | 1 …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 …]
|
D | unused-ivars.m | 1 // 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/ |
D | Android.mk | 8 # 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 56 LOCAL_STATIC_LIBRARIES += layer_utils glslang SPIRV-Tools SPIRV-Tools-opt 57 LOCAL_CPPFLAGS += -std=c++11 -Wall -Werror -Wno-unused-function -Wno-unused-const-variable 58 …-DVK_USE_PLATFORM_ANDROID_KHR -DVK_PROTOTYPES -fvisibility=hidden -DBUILD_KHRONOS_VALIDATION -DBUI… 59 LOCAL_LDLIBS := -llog -landroid 60 LOCAL_LDFLAGS += -Wl,-Bsymbolic 61 LOCAL_LDFLAGS += -Wl,--exclude-libs,ALL [all …]
|
/external/toolchain-utils/compiler_wrapper/testdata/cros_clang_host_golden/ |
D | clang_specific_args.json | 6 "path": "./x86_64-cros-linux-gnu-clang", 8 "-mno-movbe", 9 "-pass-exit-codes", 10 "-Wclobbered", 11 "-Wno-psabi", 12 "-Wlogical-op", 13 "-Wmissing-parameter-type", 14 "-Wold-style-declaration", 15 "-Woverride-init", 16 "-Wunsafe-loop-optimizations", [all …]
|
/external/tensorflow/tensorflow/python/kernel_tests/linalg/ |
D | linear_operator_algebra_test.py | 7 # 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 26 from tensorflow.python.ops.linalg import solve_registrations # pylint: disable=unused-import 29 # pylint: disable=protected-access 40 # pylint: enable=protected-access 60 def _adjoint(a): # pylint: disable=unused-argument,unused-variable 102 def _cholesky(a): # pylint: disable=unused-argument,unused-variable 152 def _matmul(a, b): # pylint: disable=unused-argument,unused-variable 201 def _solve(a, b): # pylint: disable=unused-argument,unused-variable [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/ThinLTOBitcodeWriter/ |
D | symver.ll | 1 ; 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/cpu_features/ |
D | Android.bp | 5 name: "cpu_features-defaults", 12 "-DSTACK_LINE_READER_BUFFER_SIZE=1024", 13 "-Wno-gnu-designator", 18 name: "libcpu_features-utils", 19 defaults: ["cpu_features-defaults"], 33 name: "libcpu_features-unix_based_hardware_detection", 34 defaults: ["cpu_features-defaults"], 40 "-DHAVE_DLFCN_H", 45 "-DHAVE_STRONG_GETAUXVAL", 50 "libcpu_features-utils", [all …]
|
/external/tensorflow/tensorflow/python/kernel_tests/distributions/ |
D | kullback_leibler_test.py | 7 # 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/apache-commons-bcel/src/main/java/org/apache/bcel/classfile/ |
D | LocalVariable.java | 9 * 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/ |
D | training_op_helpers.h | 7 http://www.apache.org/licenses/LICENSE-2.0 28 // Must be called before performing a sparse operation on a variable. Ensures 29 // that no concurrent dense operations can happen while holding the variable's 33 if (var->copy_on_read_mode.load()) { in EnsureSparseVariableAccess() 36 mutex_lock ml(*var->mu()); in EnsureSparseVariableAccess() 37 // Once copy-on-read mode is True the refcount is guaranteed to be 1. This can in EnsureSparseVariableAccess() 38 // also happen if there are no concurrent reads of the variable and in EnsureSparseVariableAccess() 39 // copy-on-read mode is false. in EnsureSparseVariableAccess() 40 if (var->tensor()->RefCountIsOne()) { in EnsureSparseVariableAccess() 41 var->copy_on_read_mode.store(true); in EnsureSparseVariableAccess() [all …]
|
/external/mesa3d/src/compiler/glsl/ |
D | opt_dead_code_local.cpp | 30 * 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 __anond00b5ebf0111::assignment_entry 73 this->assignments = assignments; in kill_for_derefs_visitor() 78 foreach_in_list_safe(assignment_entry, entry, this->assignments) { in use_channels() 79 if (entry->lhs == var) { in use_channels() 80 if (var->type->is_scalar() || var->type->is_vector()) { in use_channels() 82 printf("used %s (0x%01x - 0x%01x)\n", entry->lhs->name, in use_channels() [all …]
|
/external/tensorflow/tensorflow/python/tools/ |
D | freeze_graph.py | 7 # 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/ipsec-tools/ |
D | Android.bp | 8 // 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/clang/test/SemaObjC/ |
D | foreach.m | 1 /* 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/ |
D | ParameterShrinker.java | 2 * 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 …]
|