Home
last modified time | relevance | path

Searched +full:- +full:wconversion (Results 1 – 25 of 84) sorted by relevance

1234

/external/clang/test/Preprocessor/
D_Pragma-in-macro-arg.c1 // RUN: %clang_cc1 %s -verify -Wconversion
4 #define A(desc) _Pragma("clang diagnostic push") _Pragma("clang diagnostic ignored \"-Wparentheses…
6 B(_Pragma("clang diagnostic ignored \"-Wparentheses\""))
16 INACTIVE(_Pragma("clang diagnostic ignored \"-Wconversion\""))
18 …RE_CONV _Pragma("clang diagnostic ignored \"-Wconversion\"") _Pragma("clang diagnostic ignored \"-…
25 _Pragma("clang diagnostic ignored \"-Wconversion\""), int q = (double)1.0);
27 int x1 = (double)1.0; // expected-warning {{implicit conversion}}
29 ACTIVE(_Pragma) ("clang diagnostic ignored \"-Wconversion\"")) // expected-error {{_Pragma takes a …
30 …expected-error {{expected identifier or '('}} expected-error {{expected ')'}} expected-note {{to m…
/external/lz4/
DMakefile2 # LZ4 - Makefile
3 # Copyright (C) Yann Collet 2011-present
29 # - LZ4 source repository : https://github.com/lz4/lz4
30 # - LZ4 forum froup : https://groups.google.com/forum/#!forum/lz4c
50 default: lib-release lz4-release
58 .PHONY: lib lib-release liblz4.a
60 lib lib-release liblz4.a:
61 @$(MAKE) -C $(LZ4DIR) $@
63 .PHONY: lz4 lz4-release
65 lz4-release : lib-release
[all …]
Dappveyor.yml4 - COMPILER: "visual"
7 - COMPILER: "visual"
10 - COMPILER: "visual"
13 - COMPILER: "visual"
16 - COMPILER: "gcc"
18 - COMPILER: "gcc"
20 - COMPILER: "gcc"
24 - ECHO Installing %COMPILER% %PLATFORM% %CONFIGURATION%
25 - MKDIR bin
26 - if [%COMPILER%]==[gcc] SET PATH_ORIGINAL=%PATH%
[all …]
/external/Microsoft-GSL/tests/
DCMakeLists.txt9 "-DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/external"
10 "-DNO_SELFTEST=true"
30 set(GSL_CPLUSPLUS_OPT -Zc:__cplusplus -permissive-)
43 -Weverything
44 -Wno-c++98-compat
45 -Wno-c++98-compat-pedantic
46 -Wno-missing-braces
47 -Wno-missing-prototypes
48 -Wno-unknown-attributes
49 $<$<EQUAL:${GSL_CXX_STANDARD},14>:-Wno-unused-member-function>
[all …]
/external/clang/test/SemaCXX/
Dconversion.cpp1 // RUN: %clang_cc1 -triple x86_64-apple-darwin -fsyntax-only -Wconversion -std=c++11 -verify %s
2 // RUN: %clang_cc1 -triple x86_64-apple-darwin -fsyntax-only -Wconversion -std=c++11 %s 2>&1 | File…
19 return (E - I); // expected-warning {{implicit conversion loses integer precision}} in test1_positive()
23 return static_cast<int32_t>(E - I); in test1_negative()
27 return x; // expected-warning {{implicit conversion loses integer precision}} in test2_positive()
53 …A() : x(10) {} // expected-warning {{implicit truncation from 'int' to bitfield changes value from… in A()
57 // This file tests -Wnull-conversion, a subcategory of -Wconversion
61 int a = NULL; // expected-warning {{implicit conversion of NULL constant to 'int'}} in test3()
63 b = NULL; // expected-warning {{implicit conversion of NULL constant to 'int'}} in test3()
65 int c = ((((NULL)))); // expected-warning {{implicit conversion of NULL constant to 'int'}} in test3()
[all …]
Dwarn-literal-conversion.cpp1 // RUN: %clang_cc1 -fsyntax-only -Wliteral-conversion -verify %s
8 …int y0 = 1.2222F; // expected-warning {{implicit conversion from 'float' to 'int' changes value fr… in test0()
9 …int y1 = (1.2222F); // expected-warning {{implicit conversion from 'float' to 'int' changes value … in test0()
10 …int y2 = (((1.2222F))); // expected-warning {{implicit conversion from 'float' to 'int' changes va… in test0()
11 …int y3 = 12E-1F; // expected-warning {{implicit conversion from 'float' to 'int' changes value fro… in test0()
12 …int y4 = 1.23E1F; // expected-warning {{implicit conversion from 'float' to 'int' changes value fr… in test0()
14 …int y5 = 1.2222; // expected-warning {{implicit conversion from 'double' to 'int' changes value fr… in test0()
15 …int y6 = 12E-1; // expected-warning {{implicit conversion from 'double' to 'int' changes value fro… in test0()
16 …int y7 = 1.23E1; // expected-warning {{implicit conversion from 'double' to 'int' changes value fr… in test0()
17 …int y8 = (1.23E1); // expected-warning {{implicit conversion from 'double' to 'int' changes value … in test0()
[all …]
/external/clang/test/Sema/
Dsign-conversion.c1 // RUN: %clang_cc1 -fsyntax-only -verify -Wsign-conversion %s
3 // PR9345: make a subgroup of -Wconversion for signedness changes
6 unsigned t0 = x; // expected-warning {{implicit conversion changes signedness}} in test()
7 unsigned t1 = (t0 == 5 ? x : 0); // expected-warning {{operand of ? changes signedness}} in test()
Dext_vector_conversions.c1 // RUN: %clang_cc1 -triple x86_64-apple-macos10.7.0 -fsyntax-only -verify -Wconversion %s
11 // and we don't want to bitcast f to vector-of-char (as would happen with the in test()
12 // old-style vector types). in test()
13 vc4 += f; // expected-error {{cannot convert between vector values of different size}} in test()
16 // This one is OK; we don't re-interpret ll as short4, rather we splat its in test()
18 vs4 += ll; // expected-warning {{implicit conversion loses integer precision}} in test()
Dknr-def-call.c1 // RUN: %clang_cc1 -Wconversion -Wliteral-conversion -fsyntax-only -verify %s
6 f0(1); // expected-warning{{too few arguments}} in t0()
11 f1(1, 2, 3); // expected-warning{{too many arguments}} in t1()
14 void f2(float); // expected-note{{previous declaration is here}}
15 void f2(x) float x; { } // expected-warning{{promoted type 'double' of K&R function parameter is no… in f2()
26 …register char *s, c; // expected-warning{{promoted type 'char *' of K&R function parameter is not … in rindex()
39 …proto(42.1); // expected-warning{{implicit conversion from 'double' to 'int' changes value from 42… in use_proto()
40 …(&proto)(42.1); // expected-warning{{implicit conversion from 'double' to 'int' changes value from… in use_proto()
/external/nanopb-c/tests/
DSConstruct68 # Check if we can use pkg-config to find protobuf include path
69 status, output = conf.TryAction('pkg-config protobuf --variable=includedir > $TARGET')
76 status, output = conf.TryAction('$PROTOC --version > $TARGET')
83 conf.env.Append(CCFLAGS = '-fmudflap')
84 conf.env.Append(LINKFLAGS = '-fmudflap')
87 extra = '-Wcast-qual -Wlogical-op -Wconversion'
88 extra += ' -fstrict-aliasing -Wstrict-aliasing=1'
89 extra += ' -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls'
90 extra += ' -Wstack-protector '
98 …extra = '-fsanitize=undefined,integer -fno-sanitize-recover=undefined,integer -fsanitize-recover=b…
[all …]
/external/grpc-grpc/third_party/nanopb/tests/
DSConstruct68 # Check if we can use pkg-config to find protobuf include path
69 status, output = conf.TryAction('pkg-config protobuf --variable=includedir > $TARGET')
76 status, output = conf.TryAction('$PROTOC --version > $TARGET')
83 conf.env.Append(CCFLAGS = '-fmudflap')
84 conf.env.Append(LINKFLAGS = '-fmudflap')
87 extra = '-Wcast-qual -Wlogical-op -Wconversion'
88 extra += ' -fstrict-aliasing -Wstrict-aliasing=1'
89 extra += ' -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls'
90 extra += ' -Wstack-protector '
96 extra = '-fsanitize=undefined '
[all …]
/external/clang/test/SemaObjC/
Dconversion.m1 // RUN: %clang_cc1 -Wconversion -fsyntax-only %s -verify
10 f.otherStuff = !f.stuff; // no-warning
11 BOOL b = !f.stuff; // no-warning
14 x = y; // expected-warning {{implicit conversion loses integer precision: 'int' to 'char'}}
/external/ltp/utils/ffsb-6.0-rc2/
DMakefile.am42 AM_CFLAGS = -D_GNU_SOURCE
44 #CFLAGS += -Wall -Werror -g -Wconversion -ansi
45 #LDFLAGS += -lefence
/external/deqp/external/openglcts/
DCMakeLists.txt3 set(KC_CTS_HOME "${PROJECT_SOURCE_DIR}/external/kc-cts" CACHE STRING "Home directory of Khr…
7 # -Wconversion generates a LOT of warnings in this code base
8 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-conversion")
10 # Same for -Wunused-function
11 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-function")
29 add_definitions(-DDEQP_GTF_AVAILABLE=1)
/external/clang/test/Driver/
Dgfortran.f905 ! RUN: %clang -no-canonical-prefixes -target i386-linux -### %s -o %t 2>&1 \
6 ! RUN: -Aquestion=answer \
7 ! RUN: -A-question=answer \
8 ! RUN: -C \
9 ! RUN: -CC \
10 ! RUN: -Dmacro \
11 ! RUN: -Dmacro=value \
12 ! RUN: -H \
13 ! RUN: -Isome/directory \
14 ! RUN: -Jsome/other/directory \
[all …]
/external/deqp/
DAndroid.bp8 // The clang-tidy google-explicit-constructor warning is issued to nearly
12 // or NOLINT(implicit), we suppress the google-explicit-constructor check.
13 "-google-explicit-constructor",
15 "-google-build-explicit-make-pair",
16 "-google-global-names-in-headers",
17 "-google-runtime-member-string-references",
18 "-google-runtime-operator",
22 "external/deqp-deps/SPIRV-Headers/include",
43 "deqp_spirv-tools",
47 "-DDEQP_SUPPORT_GLES1=1",
[all …]
/external/zlib/src/old/
DMakefile.emx2 # Copyright (C) 1995-1998 Jean-loup Gailly.
7 # make -fmakefile.emx; make test -fmakefile.emx
10 CC=gcc -Zwin32
12 #CFLAGS=-MMD -O
13 #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
14 #CFLAGS=-MMD -g -DZLIB_DEBUG
15 CFLAGS=-MMD -O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
16 -Wstrict-prototypes -Wmissing-prototypes
18 # If cp.exe is available, replace "copy /Y" with "cp -fp" .
22 # The default value of RM is "rm -f." If "rm.exe" is found, comment out:
[all …]
/external/zlib/src/msdos/
DMakefile.emx2 # Copyright (C) 1995-1998 Jean-loup Gailly.
7 # make -fmakefile.emx; make test -fmakefile.emx
12 #CFLAGS=-MMD -O
13 #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
14 #CFLAGS=-MMD -g -DZLIB_DEBUG
15 CFLAGS=-MMD -O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
16 -Wstrict-prototypes -Wmissing-prototypes
18 # If cp.exe is available, replace "copy /Y" with "cp -fp" .
22 # The default value of RM is "rm -f." If "rm.exe" is found, comment out:
24 LDLIBS=-L. -lzlib
[all …]
/external/adhd/defs/
Dc.mk2 # Use of this source code is governed by a BSD-style license that can be
9 -g \
10 -O2 \
11 -funit-at-a-time
15 # -Wframe-larger-than=256
16 # -Wlarger-than=4096
17 # -Wsync-nand
21 -ffunction-sections \
22 -fdata-sections
25 -pthread
[all …]
/external/parameter-framework/upstream/skeleton-subsystem/
DCMakeLists.txt34 project(parameter-framework-plugins-skeleton)
48 set_property(DIRECTORY PROPERTY COMPILE_OPTIONS -Werror -Wall -Wextra -Wconversion)
55 # Force libs and executable to all be at a known place - simplifies a lot of
60 add_library(skeleton-subsystem MODULE
65 target_link_libraries(skeleton-subsystem PRIVATE ParameterFramework::plugin)
67 install(TARGETS skeleton-subsystem
/external/clang/test/Misc/
Dwarning-flags-enabled.c1 // RUN: diagtool show-enabled %s | FileCheck %s
11 // RUN: diagtool show-enabled -Wno-everything %s | count 0
14 // RUN: diagtool show-enabled -Wno-everything -Wobjc-root-class %s | FileCheck -check-prefix CHECK-
15 // RUN: diagtool show-enabled -Wno-everything -Werror=objc-root-class %s | FileCheck -check-prefix …
16 // RUN: diagtool show-enabled -Wno-everything -Wfatal-errors=objc-root-class %s | FileCheck -check-
18 // CHECK-WARN: W warn_objc_root_class_missing [-Wobjc-root-class]
19 // CHECK-ERROR: E warn_objc_root_class_missing [-Wobjc-root-class]
20 // CHECK-FATAL: F warn_objc_root_class_missing [-Wobjc-root-class]
22 // RUN: diagtool show-enabled --no-levels -Wno-everything -Wobjc-root-class %s | FileCheck -check-p…
24 // CHECK-NO-LEVELS-NOT: W
[all …]
/external/libcxxabi/lib/
Dbuildit7 set -e
15 if [ -z "$CXX" ]
20 if [ -z "$CC" ]
25 if [ -z $RC_ProjectSourceVersion ]
30 EXTRA_FLAGS="-std=c++11 -stdlib=libc++ -fstrict-aliasing -Wstrict-aliasing=2 \
31 -Wsign-conversion -Wshadow -Wconversion -Wunused-variable \
32 -Wmissing-field-initializers -Wchar-subscripts -Wmismatched-tags \
33 -Wmissing-braces -Wshorten-64-to-32 -Wsign-compare \
34 -Wstrict-aliasing=2 -Wstrict-overflow=4 -Wunused-parameter \
35 -Wnewline-eof"
[all …]
/external/libcxxabi/cmake/
Dconfig-ix.cmake10 # libc++abi is built with -nodefaultlibs, so we want all our checks to also
13 # performed without -nodefaultlibs) and the flags that are actually
14 # required during compilation (which has the -nodefaultlibs). libc is
17 check_c_compiler_flag(-nodefaultlibs LIBCXXABI_HAS_NODEFAULTLIBS_FLAG)
19 set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -nodefaultlibs")
24 list(APPEND CMAKE_REQUIRED_FLAGS -rtlib=compiler-rt)
32 # programs to link successfully with -nodefaultlibs.
43 if (CMAKE_C_FLAGS MATCHES -fsanitize OR CMAKE_CXX_FLAGS MATCHES -fsanitize)
44 set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -fno-sanitize=all")
46 if (CMAKE_C_FLAGS MATCHES -fsanitize-coverage OR CMAKE_CXX_FLAGS MATCHES -fsanitize-coverage)
[all …]
/external/brotli/
DBUILD2 # Brotli is a generic-purpose lossless compression algorithm.
44 values = {"compiler": "msvc-cl"},
51 "--pedantic-errors",
52 "-Wall",
53 "-Wconversion",
54 "-Werror",
55 "-Wextra",
56 "-Wlong-long",
57 "-Wmissing-declarations",
58 "-Wmissing-prototypes",
[all …]
/external/libunwind_llvm/cmake/
Dconfig-ix.cmake13 # libunwind is built with -nodefaultlibs, so we want all our checks to also
16 # performed without -nodefaultlibs) and the flags that are actually
17 # required during compilation (which has the -nodefaultlibs). libc is
20 check_c_compiler_flag(-nodefaultlibs LIBUNWIND_HAS_NODEFAULTLIBS_FLAG)
22 set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -nodefaultlibs")
39 # programs to link successfully with -nodefaultlibs.
50 if (CMAKE_C_FLAGS MATCHES -fsanitize OR CMAKE_CXX_FLAGS MATCHES -fsanitize)
51 set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -fno-sanitize=all")
53 if (CMAKE_C_FLAGS MATCHES -fsanitize-coverage OR CMAKE_CXX_FLAGS MATCHES -fsanitize-coverage)
54 …(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -fno-sanitize-coverage=edge,trace-cmp,indirect-call…
[all …]

1234