| /external/clang/test/SemaCXX/ |
| D | switch-implicit-fallthrough-macro.cpp | 1 …cc1 -fsyntax-only -verify -std=c++11 -Wimplicit-fallthrough -DCLANG_PREFIX -DCOMMAND_LINE_FALLTHRO… 2 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 -Wimplicit-fallthrough -DCOMMAND_LINE_FALLTHROU… 3 … RUN: %clang_cc1 -fsyntax-only -verify -std=c++1z -Wimplicit-fallthrough -DCLANG_PREFIX -DCOMMAND_… 4 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++1z -Wimplicit-fallthrough -DCOMMAND_LINE_FALLTHROU… 5 …%clang_cc1 -fsyntax-only -verify -std=c++1z -Wimplicit-fallthrough -DCOMMAND_LINE_FALLTHROUGH=[[fa… 11 …-warning{{unannotated fall-through between switch labels}} expected-note{{insert 'COMMAND_LINE_FAL… in fallthrough_compatibility_macro_from_command_line() 19 :: fallthrough ] ] // testing whitespace and comments in macro definition 22 fallthrough ] ] // testing whitespace and comments in macro definition 29 …-warning{{unannotated fall-through between switch labels}} expected-note{{insert 'COMPATIBILITY_FA… in fallthrough_compatibility_macro_from_source() 37 #define M1 [[clang::fallthrough]] [all …]
|
| D | switch-implicit-fallthrough-off-by-default.cpp | 1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 -DUNREACHABLE=1 %s 2 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 -DUNREACHABLE=0 -Wimplicit-fallthrough %s 4 void fallthrough(int n) { in fallthrough() function 9 [[fallthrough]]; // expected-no-diagnostics, only checked when UNREACHABLE=0 in fallthrough()
|
| D | switch-implicit-fallthrough-per-method.cpp | 1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 -Wimplicit-fallthrough-per-function %s 4 int fallthrough(int n) { in fallthrough() function 8 …-warning{{unannotated fall-through}} expected-note{{insert '[[clang::fallthrough]];' to silence th… in fallthrough() 12 [[clang::fallthrough]]; in fallthrough() 15 …-warning{{unannotated fall-through}} expected-note{{insert '[[clang::fallthrough]];' to silence th… in fallthrough() 27 case 1: // no warning, as we didn't "opt-in" for it in this method in fallthrough2() 31 case 112: // no warning, as we didn't "opt-in" for it in this method in fallthrough2() 33 case 113: // no warning, as we didn't "opt-in" for it in this method in fallthrough2() 44 [[fallthrough]]; in unscoped() 46 [[clang::fallthrough]]; in unscoped()
|
| D | switch-implicit-fallthrough-blocks.cpp | 1 // RUN: %clang_cc1 -fsyntax-only -verify -fblocks -std=c++11 -Wimplicit-fallthrough %s 9 [[clang::fallthrough]]; // no diagnostics in fallthrough_in_blocks() 13 expected-warning{{unannotated fall-through between switch labels}} \ in fallthrough_in_blocks() 14 expected-note{{insert 'break;' to avoid fall-through}} in fallthrough_in_blocks()
|
| D | switch-implicit-fallthrough.cpp | 1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 -Wimplicit-fallthrough %s 4 int fallthrough(int n) { in fallthrough() function 6 if (n - 1) { in fallthrough() 8 } else if (n - 2) { in fallthrough() 10 } else if (n - 3) { in fallthrough() 13 case -1: // no warning here, ignore fall-through from unreachable code in fallthrough() 15 …-warning{{unannotated fall-through between switch labels}} expected-note{{insert '[[clang::fallthr… in fallthrough() 17 …-warning{{unannotated fall-through between switch labels}} expected-note{{insert '[[clang::fallthr… in fallthrough() 19 …-warning{{unannotated fall-through between switch labels}} expected-note{{insert '[[clang::fallthr… in fallthrough() 22 …-warning{{unannotated fall-through between switch labels}} expected-note{{insert '[[clang::fallthr… in fallthrough() [all …]
|
| /external/clang/test/PCH/ |
| D | cxx11-statement-attributes.cpp | 2 // RUN: %clang_cc1 -include %S/Inputs/cxx11-statement-attributes.h -std=c++11 -Wimplicit-fallthroug… 3 // RUN: %clang_cc1 -include %S/Inputs/cxx11-statement-attributes.h -std=c++1z -Wimplicit-fallthroug… 5 // RUN: %clang_cc1 -x c++-header -emit-pch -std=c++11 -o %t %S/Inputs/cxx11-statement-attributes.h 6 // RUN: %clang_cc1 -include-pch %t -std=c++11 -Wimplicit-fallthrough -fsyntax-only %s -o - -verify 7 // RUN: %clang_cc1 -x c++-header -emit-pch -std=c++1z -o %t %S/Inputs/cxx11-statement-attributes.h 8 // RUN: %clang_cc1 -include-pch %t -std=c++1z -Wimplicit-fallthrough -fsyntax-only %s -o - -verify 10 // expected-warning@Inputs/cxx11-statement-attributes.h:10 {{unannotated fall-through}} 11 // expected-note-re@Inputs/cxx11-statement-attributes.h:10 {{insert '[[{{(clang::)?}}fallthrough]];… 12 // expected-note@Inputs/cxx11-statement-attributes.h:10 {{insert 'break;'}} 15 …f<1>(n); // expected-note {{in instantiation of function template specialization 'f<1>' requested… in g()
|
| /external/pigweed/pw_ide/py/ |
| D | cpp_test.py | 7 # https://www.apache.org/licenses/LICENSE-2.0 21 # pylint: disable=protected-access 150 ) -> None: 163 def run_process_test_with_invalid_commands(self, command: str) -> None: 171 def test_process_valid_with_gn_compile_command(self) -> None: 172 """Test output against typical GN-generated compile commands.""" 176 # pylint: disable=line-too-long 177 …-none-eabi-g++ -MMD -MF stm32f429i_disc1_debug/obj/pw_allocator/block.block.cc.o.d -Wno-psabi -m… 178 # pylint: enable=line-too-long 179 'executable': 'arm-none-eabi-g++', [all …]
|
| /external/dynamic_depth/internal/base/ |
| D | macros.h | 12 // The FALLTHROUGH_INTENDED macro can be used to annotate implicit fall-through 28 // followed by a semicolon. It is designed to mimic control-flow statements 34 // expanded to [[clang::fallthrough]] attribute, which is analysed when 35 // performing switch labels fall-through diagnostic ('-Wimplicit-fallthrough'). 37 // http://clang.llvm.org/docs/AttributeReference.html#fallthrough-clang-fallthrough 45 #if __has_feature(cxx_attributes) && __has_warning("-Wimplicit-fallthrough") 46 #define FALLTHROUGH_INTENDED [[clang::fallthrough]] // NOLINT
|
| /external/libtextclassifier/native/lang_id/common/lite_base/ |
| D | macros.h | 8 * http://www.apache.org/licenses/LICENSE-2.0 25 // fall-through between switch labels: 41 // be followed by a semicolon. It is designed to mimic control-flow statements 47 // to [[clang::fallthrough]] attribute, which is analysed when performing 48 // switch labels fall-through diagnostic ('-Wimplicit-fallthrough'). See clang 50 // http://clang.llvm.org/docs/AttributeReference.html#fallthrough-clang-fallthrough 58 #if __has_feature(cxx_attributes) && __has_warning("-Wimplicit-fallthrough") 59 #define SAFTM_FALLTHROUGH_INTENDED [[clang::fallthrough]] // NOLINT 77 …//stackoverflow.com/questions/1597007/creating-c-macro-with-and-line-token-concatenation-with-posi…
|
| /external/libtextclassifier/native/utils/base/ |
| D | macros.h | 8 * http://www.apache.org/licenses/LICENSE-2.0 42 // fall-through between switch labels: 58 // followed by a semicolon. It is designed to mimic control-flow statements 64 // is expanded to [[clang::fallthrough]] attribute, which is analysed when 65 // performing switch labels fall-through diagnostic ('-Wimplicit-fallthrough'). 67 // http://clang.llvm.org/docs/AttributeReference.html#fallthrough-clang-fallthrough 75 #if __has_feature(cxx_attributes) && __has_warning("-Wimplicit-fallthrough") 76 #define TC3_FALLTHROUGH_INTENDED [[clang::fallthrough]] 79 #define TC3_FALLTHROUGH_INTENDED [[gnu::fallthrough]] 98 // -fprofile-arcs). [all …]
|
| /external/icing/icing/text_classifier/lib3/utils/base/ |
| D | macros.h | 7 // http://www.apache.org/licenses/LICENSE-2.0 40 // fall-through between switch labels: 56 // followed by a semicolon. It is designed to mimic control-flow statements 62 // is expanded to [[clang::fallthrough]] attribute, which is analysed when 63 // performing switch labels fall-through diagnostic ('-Wimplicit-fallthrough'). 65 // http://clang.llvm.org/docs/AttributeReference.html#fallthrough-clang-fallthrough 73 #if __has_feature(cxx_attributes) && __has_warning("-Wimplicit-fallthrough") 74 #define TC3_FALLTHROUGH_INTENDED [[clang::fallthrough]] 77 #define TC3_FALLTHROUGH_INTENDED [[gnu::fallthrough]] 96 // -fprofile-arcs). [all …]
|
| /external/elfutils/config/ |
| D | eu.am | 33 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"${localedir}"' 34 AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. 42 STACK_USAGE_WARNING=-Wstack-usage=262144 43 STACK_USAGE_NO_ERROR=-Wno-error=stack-usage= 50 LOGICAL_OP_WARNING=-Wlogical-op 56 DUPLICATED_COND_WARNING=-Wduplicated-cond 62 NULL_DEREFERENCE_WARNING=-Wnull-dereference 68 # Use strict fallthrough. Only __attribute__((fallthrough)) will prevent the 71 IMPLICIT_FALLTHROUGH_WARNING=-Wimplicit-fallthrough=5 73 IMPLICIT_FALLTHROUGH_WARNING=-Wimplicit-fallthrough [all …]
|
| /external/conscrypt/common/src/jni/main/include/conscrypt/ |
| D | macros.h | 8 * http://www.apache.org/licenses/LICENSE-2.0 29 // The FALLTHROUGH_INTENDED macro can be used to annotate implicit fall-through 45 // followed by a semicolon. It is designed to mimic control-flow statements 51 // expanded to [[clang::fallthrough]] attribute, which is analysed when 52 // performing switch labels fall-through diagnostic ('-Wimplicit-fallthrough'). 62 #if __has_feature(cxx_attributes) && __has_warning("-Wimplicit-fallthrough") 63 #define FALLTHROUGH_INTENDED [[clang::fallthrough]] // NOLINT 117 * for the purposes of -Werror=unused-parameter. This can be needed when an 133 (len) > static_cast<ssize_t>((array).size()) - (offset)) 140 (chunk_len) > static_cast<ssize_t>(array_len) - (chunk_offset))
|
| /external/clang/test/CXX/dcl.dcl/dcl.attr/dcl.attr.fallthrough/ |
| D | p1.cpp | 1 // RUN: %clang_cc1 -std=c++1z -verify %s 7 [[fallthrough]]; // ok in f() 10 [[fallthrough]]; // ok in f() 16 [[fallthrough]]; // expected-error {{does not directly precede switch label}} in f() 19 [[fallthrough]]; // expected-error {{does not directly precede switch label}} in f() 22 [[fallthrough]]; // expected-error {{does not directly precede switch label}} in f() 24 do [[fallthrough]]; while (true); // expected-error {{does not directly precede switch label}} in f() 26 do [[fallthrough]]; while (false); // expected-error {{does not directly precede switch label}} in f() 32 [[fallthrough]]; in f() 35 [[fallthrough]]; // expected-error {{does not directly precede switch label}} in f() [all …]
|
| /external/vixl/src/ |
| D | globals-vixl.h | 58 #include "platform-vixl.h" 168 typedef char VIXL_CONCAT(STATIC_ASSERT_LINE_, line)[(condition) ? 1 : -1] \ 198 // The clang::fallthrough attribute is used along with the Wimplicit-fallthrough 199 // argument to annotate intentional fall-through between switch labels. 201 // http://clang.llvm.org/docs/AttributeReference.html#fallthrough-clang-fallthrough 206 // Fallthrough annotation for Clang and C++11(201103L). 207 #if __has_warning("-Wimplicit-fallthrough") && __cplusplus >= 201103L 208 #define VIXL_FALLTHROUGH() [[clang::fallthrough]] 209 // Fallthrough annotation for GCC >= 7. 211 #define VIXL_FALLTHROUGH() __attribute__((fallthrough))
|
| /external/clang/utils/TableGen/ |
| D | Android.bp | 2 // See: http://go/android-license-faq 3 // A large-scale-change added 'default_applicable_licenses' to import 6 // SPDX-license-identifier-MIT 7 // SPDX-license-identifier-NCSA 12 name: "clang-tblgen", 13 defaults: ["llvm-defaults"], 22 "-Wno-implicit-fallthrough", 23 // NeonEmitter.cpp has several -Wimplicit-fallthrough. 26 "-google-runtime-member-string-references", 31 "-limagehlp", [all …]
|
| /external/sdv/vsomeip/third_party/boost/config/test/ |
| D | Jamfile.v2 | 16 <toolset>gcc:<cxxflags>-Wno-deprecated-declarations 36 test-suite config 41 : #input-files 44 [ check-target-builds has_atomic_lib : <source>atomic ] 45 [ check-target-builds has_pthread_lib : <source>pthread ] 46 [ check-target-builds has_rt_lib : <source>rt ] 51 : #input-files 53 <threading>single <toolset>msvc:<runtime-link>static <toolset>msvc:<link>static 54 [ check-target-builds has_atomic_lib : <source>atomic ] 55 [ check-target-builds has_pthread_lib : <source>pthread ] [all …]
|
| /external/elfutils/ |
| D | configure.ac | 2 dnl Configure input file for elfutils. -*-autoconf-*- 4 dnl Copyright (C) 1996-2019 Red Hat, Inc. 32 # We want eu- as default program prefix if none was given by the user. 33 # But if the user explicitly provided --program-prefix="" then pretend 38 AC_MSG_NOTICE([No --program-prefix given, using "eu-"]) 39 program_prefix="eu-" 41 AC_MSG_NOTICE([Using no program-prefix]) 48 AC_COPYRIGHT([Copyright (C) 1996-2023 The elfutils developers.]) 51 dnl We use GNU make extensions; automake 1.10 defaults to -Wportability. 52 AM_INIT_AUTOMAKE([gnits 1.11 -Wno-portability dist-bzip2 no-dist-gzip parallel-tests]) [all …]
|
| /external/tinyxml2/ |
| D | Android.bp | 9 "SPDX-license-identifier-BSD", 10 "SPDX-license-identifier-MIT", 11 "SPDX-license-identifier-Zlib", 23 license_kinds: ["SPDX-license-identifier-GPL"], 46 "-Wall", 47 "-Werror", 48 "-Wno-implicit-fallthrough", 49 // tinyxml2.cpp line 436, 441, 446 have -Wimplicit-fallthrough. 58 "-DDEBUG", 59 "-DANDROID_NDK", [all …]
|
| /external/lzma/C/ |
| D | warn_gcc.mak | 4 -Waddress \ 5 -Waggressive-loop-optimizations \ 6 -Wattributes \ 7 -Wbool-compare \ 8 -Wcast-align \ 9 -Wcomment \ 10 -Wdiv-by-zero \ 11 -Wduplicated-cond \ 12 -Wformat-contains-nul \ 13 -Winit-self \ [all …]
|
| /external/lzma/CPP/7zip/ |
| D | warn_gcc.mak | 2 -Waddress \ 3 -Waggressive-loop-optimizations \ 4 -Wattributes \ 5 -Wcast-align \ 6 -Wcomment \ 7 -Wdiv-by-zero \ 8 -Wformat-contains-nul \ 9 -Winit-self \ 10 -Wint-to-pointer-cast \ 11 -Wunused \ [all …]
|
| /external/strace/m4/ |
| D | st_warn_cflags.m4 | 2 gl_WARN_ADD([-Wall]) 3 gl_WARN_ADD([-Wempty-body]) 4 gl_WARN_ADD([-Wformat-security]) 5 gl_WARN_ADD([-Wignored-qualifiers]) 6 gl_WARN_ADD([-Wimplicit-fallthrough=5]) 7 gl_WARN_ADD([-Winit-self]) 8 gl_WARN_ADD([-Winitializer-overrides]) 9 gl_WARN_ADD([-Wlogical-op]) 10 gl_WARN_ADD([-Wmissing-parameter-type]) 11 gl_WARN_ADD([-Wnested-externs]) [all …]
|
| /external/perfetto/include/perfetto/base/ |
| D | compiler.h | 8 * http://www.apache.org/licenses/LICENSE-2.0 102 // that requires a -DXXX_IMPLEMENTATION depending on whether we are on the 103 // impl-site or call-site. Right now it's not worth the trouble as we 104 // force-export the xxxMain() symbols only on Android, where we pack all the 126 // Avoid calling the exit-time destructor on an object with static lifetime. 135 // Macro for telling -Wimplicit-fallthrough that a fallthrough is intentional. 136 #define PERFETTO_FALLTHROUGH [[fallthrough]]
|
| /external/curl/CMake/ |
| D | PickyWarnings.cmake | 21 # SPDX-License-Identifier: curl 31 …VERSION_LESS 3.23.0) OR # check_symbol_exists() incompatible with GCC -pedantic-errors in earlier… 33 set(WPICKY "${WPICKY} -pedantic-errors") 40 # https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html 42 # WPICKY_ENABLE = Options we want to enable as-is. 45 # Prefer the -Wextra alias with clang. 47 set(WPICKY_ENABLE "-Wextra") 49 set(WPICKY_ENABLE "-W") 53 -Wall -pedantic 56 # ---------------------------------- [all …]
|
| /external/grpc-grpc/bazel/ |
| D | copts.bzl | 7 # http://www.apache.org/licenses/LICENSE-2.0 22 "-Wall", 23 "-Wextra", 25 "-Wimplicit-fallthrough", 27 "-Werror", 29 "-Wno-unknown-warning-option", 31 "-Wc++20-extensions", 32 "-Wctad-maybe-unsupported", 33 "-Wdeprecated-increment-bool", 34 "-Wfloat-overflow-conversion", [all …]
|