/llvm-project/clang/test/Sema/ |
H A D | warn-deprecated-non-prototype.c | 1 // RUN: %clang_cc1 -fsyntax-only -verify=both,expected %s 2 // RUN: %clang_cc1 -fsyntax-only -Wstrict-prototypes -verify=both,strict %s 4 // Test both with and without -Wstrict-prototypes because there are complicated 5 // interactions between it and -Wdeprecated-non-prototype. 7 // Off by default warnings, enabled by -pedantic or -Wstrict-prototypes 8 void other_func(); // strict-warning {{a function declaration without a prototype is deprecated i… 9 void other_func() {} // strict-warning {{a function declaration without a prototype is deprecated i… in other_func() 11 void never_defined(); // strict-warning {{a function declaration without a prototype is deprecated … 13 typedef void (*fp)(); // strict-warning {{a function declaration without a prototype is deprecated … 16 …void (*func_ptr)() // strict-warning {{a function declaration without a prototype is deprecated in… [all …]
|
H A D | knr-def-call.c | 1 // RUN: %clang_cc1 -triple i386-pc-unknown -Wconversion -Wliteral-conversion -fsyntax-only -verify … 4 …, c, d) int a,b,c,d; {} // expected-warning {{a function definition without a prototype is depreca… in f0() 6 f0(1); // expected-warning{{too few arguments}} in t0() 9 …d f1(a, b) int a, b; {} // expected-warning {{a function definition without a prototype is depreca… in f1() 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() argument 16 …expected-warning {{a function definition without a prototype is deprecated in all versions of C an… 28 …register char *s, c; // expected-warning{{promoted type 'char *' of K&R function parameter is not … in rindex() 35 void proto(x) // expected-warning {{a function definition without a prototype is deprecated in all … in proto() argument [all …]
|
H A D | knr-variadic-def.c | 1 // RUN: %clang_cc1 -fsyntax-only -verify -pedantic %s -std=c99 8 int test(fmt) // expected-warning {{a function definition without a prototype is deprecated in all … in test() 13 int x; local 17 x=(a!=foo); 19 return x; 22 void exit(); // expected-warning {{a function declaration without a prototype is deprecated in all … 24 int main(argc,argv) // expected-warning {{a function definition without a prototype is deprecated i… in main()
|
/llvm-project/clang/test/FixIt/ |
H A D | fixit-availability.mm | 1 // RUN: %clang_cc1 -fsyntax-only -Wunguarded-availability -fdiagnostics-parseable-fixits -triple x86_64-apple-darwin 142 NewClass *x; global() field [all...] |
/llvm-project/clang/test/Parser/ |
H A D | declarators.c | 1 // RUN: %clang_cc1 %s -fsyntax-only -verify -pedantic -std=c99 5 void f0(); /* expected-warning {{a function declaration without a prototype is deprecated in all ve… 9 int f4(*XX)(void); /* expected-error {{cannot return}} expected-error {{type specifier missing, def… 10 int f5(int [static]); /* expected-error {{'static' may not be used without an array size}} */ 12 char ((((*X)))); variable 30 void test3(x, /* expected-warning {{a function definition without a prototype is depreca… in test3() argument 31 atype /* expected-error {{unexpected type name 'atype': expected identifier}} */ in test3() 32 ) int x, atype; {} in test3() 34 void test4(x, x) int x; {} // expected-error {{redefinition of parameter 'x'}} \ in test4() argument 35 …// expected-warning {{a function definition without a prototype is deprecated in all versions of C… [all …]
|
/llvm-project/lld/test/MachO/ |
H A D | framework.s | 2 # RUN: rm -rf %t; split-file %s %t 3 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/foo.s -o %t/foo.o 4 # RUN: mkdir -p %t/Foo.framework/Versions/A 5 # RUN: %lld -dylib -install_name %t/Foo.framework/Versions/A/Foo %t/foo.o -o %t/Foo.framework/Versi… 6 # RUN: %lld -dylib -install_name %t/Foo.framework/Versions/A/Foobar %t/foo.o -o %t/Foo.framework/Ve… 7 # RUN: ln -sf A %t/Foo.framework/Versions/Current 8 # RUN: ln -sf Versions/Current/Foo %t/Foo.framework/Foo 10 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/test.s -o %t/test.o 11 # RUN: %lld -lSystem -F%t -framework Foo %t/test.o -o %t/test 12 # RUN: llvm-objdump --macho --lazy-bind %t/test | FileCheck %s --check-prefix=NOSUFFIX [all …]
|
/llvm-project/clang/test/Analysis/ |
H A D | region-store.c | 1 // RUN: %clang_analyze_cc1 -analyzer-checker=core,unix,debug.ExprInspection \ 2 // RUN: -verify -analyzer-config eagerly-assume=false -std=c99 %s \ 3 // RUN: -Wno-implicit-function-declaration 33 return values[0]; // no-warning in concreteOffsetBindingIsInvalidatedBySymbolicOffsetAssignment() 36 struct X{ struct 39 int initStruct(struct X *st); argument 41 struct X l; in structOffsetBindingIsInvalidated() 43 return l.mem; // no-warning in structOffsetBindingIsInvalidated() 49 clang_analyzer_eval(values[1] == 4);// expected-warning {{UNKNOWN}} in testConstraintOnRegionOffset() 57 clang_analyzer_eval(values[0] == 4);// expected-warning {{UNKNOWN}} in testConstraintOnRegionOffsetStack() [all …]
|
/llvm-project/llvm/test/ThinLTO/X86/ |
H A D | memprof-duplicate-context-ids.ll | 29 ;; char *x = B(); // cold 32 ;; memset(x, 0, 10); 37 ;; delete[] x; 42 ;; Code compiled with -mllvm -memprof-ave-lifetime-cold-threshold=5 so that the 54 ;; The IR was then reduced using llvm-reduce with the expected FileCheck input. 56 ;; -stats requires asserts 59 ; RUN: opt -thinlto-bc %s >%t.o 60 ; RUN: llvm-lto2 run %t.o -enable-memprof-context-disambiguation \ 61 ; RUN: -supports-hot-cold-new \ 62 ; RUN: -r=%t.o,main,plx \ [all …]
|
H A D | memprof-inlined.ll | 21 ;; char *x = foo(); 23 ;; memset(x, 0, 10); 25 ;; delete[] x; 31 ;; Code compiled with -mllvm -memprof-ave-lifetime-cold-threshold=5 so that the 40 ;; like main -> foo(+baz) -> bar after the inlining reflected in this IR). 42 ;; The IR was then reduced using llvm-reduce with the expected FileCheck input. 44 ;; -stats requires asserts 47 ; RUN: opt -thinlto-bc %s >%t.o 48 ; RUN: llvm-lto2 run %t.o -enable-memprof-context-disambiguation \ 49 ; RUN: -supports-hot-cold-new \ [all …]
|
H A D | memprof-funcassigncloning.ll | 43 ;; Code compiled with -mllvm -memprof-min-lifetime-cold-threshold=5 so that the 46 ;; The IR was then reduced using llvm-reduce with the expected FileCheck input. 48 ;; -stats requires asserts 52 ; RUN: opt -thinlto-bc %s >%t.o 53 ; RUN: llvm-lto2 run %t.o -enable-memprof-context-disambiguation \ 54 ; RUN: -supports-hot-cold-new \ 55 ; RUN: -r=%t.o,main,plx \ 56 ; RUN: -r=%t.o,_ZdaPv, \ 57 ; RUN: -r=%t.o,sleep, \ 58 ; RUN: -r=%t.o,_Znam, \ [all …]
|
H A D | memprof-basic.ll | 19 ;; char *x = foo(); 21 ;; memset(x, 0, 10); 23 ;; delete[] x; 29 ;; Code compiled with -mllvm -memprof-ave-lifetime-cold-threshold=5 so that the 32 ;; The IR was then reduced using llvm-reduc [all...] |
/llvm-project/mlir/cmake/modules/ |
H A D | FindLevelZero.cmake | 1 # CMake find_package() module for level-zero 14 # and the ze_loader shared library. When using a custom level-zero installation, 16 # module to get the level-zero library and headers from that location. 41 ${LEVEL_ZERO_DIR}/lib/x86_64-linux-gnu 61 # Compares the two version string that are supposed to be in x.y.z format 64 # lists of equal lengths, with the shorter string getting zero-padded. 75 math(EXPR DIFF "${VL1_LEN} - ${VL2_LEN}" OUTPUT_FORMAT DECIMAL) 80 math(EXPR DIFF "${VL1_LEN} - ${VL2_LEN}" OUTPUT_FORMAT DECIMAL) 86 math(EXPR LEN_SUB_ONE "${LEN}-1") 115 zel_component_version_t *versions; [all …]
|
/llvm-project/flang/include/flang/Evaluate/ |
H A D | pgmath.h.inc | 1 //===-- include/flang/Evaluate/pgmath.h.inc -------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 18 // to the targeted versions. 26 #define PGMATH_DECLARE(x) extern "C" x; 31 #define PGMATH_DECLARE(x) 43 #define PGMATH_USE_S(name, x) 47 #define PGMATH_USE_D(name, x) 51 #define PGMATH_USE_C(name, x) 55 #define PGMATH_USE_Z(name, x) [all …]
|
/llvm-project/flang/runtime/Float128Math/ |
H A D | complex-math.h | 1 /*===-- runtime/Float128Math/complex-math.h ------- 17 CAbs(x) global() argument 18 CAcos(x) global() argument 19 CAcosh(x) global() argument 20 CAsin(x) global() argument 21 CAsinh(x) global() argument 22 CAtan(x) global() argument 23 CAtanh(x) global() argument 24 CCos(x) global() argument 25 CCosh(x) global() argument 26 CExp(x) global() argument 27 CLog(x) global() argument 28 CPow(x,p) global() argument 29 CSin(x) global() argument 30 CSinh(x) global() argument 31 CSqrt(x) global() argument 32 CTan(x) global() argument 33 CTanh(x) global() argument 38 CAbs(x) global() argument 39 CAcos(x) global() argument 40 CAcosh(x) global() argument 41 CAsin(x) global() argument 42 CAsinh(x) global() argument 43 CAtan(x) global() argument 44 CAtanh(x) global() argument 45 CCos(x) global() argument 46 CCosh(x) global() argument 47 CExp(x) global() argument 48 CLog(x) global() argument 49 CPow(x,p) global() argument 50 CSin(x) global() argument 51 CSinh(x) global() argument 52 CSqrt(x) global() argument 53 CTan(x) global() argument 54 CTanh(x) global() argument [all...] |
/llvm-project/clang-tools-extra/clangd/unittests/ |
H A D | DraftStoreTests.cpp | 1 //===-- DraftStoreTests.cpp -------------------------------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 17 TEST(DraftStore, Versions) { in TEST() argument 22 EXPECT_EQ("25", DS.getDraft(File)->Version); in TEST() 23 EXPECT_EQ("", *DS.getDraft(File)->Contents); in TEST() 25 EXPECT_EQ("26", DS.addDraft(File, "", "x")); in TEST() 26 EXPECT_EQ("26", DS.getDraft(File)->Version); in TEST() 27 EXPECT_EQ("x", *DS.getDraft(File)->Contents); in TEST() 29 EXPECT_EQ("27", DS.addDraft(File, "", "x")) << "no-op change"; in TEST() [all …]
|
/llvm-project/clang/test/SemaObjC/ |
H A D | nonnull.m | 3 // RUN: %clang_cc1 -fblocks -fsyntax-only -verify -Wno-objc-root-class %s 8 int f1(int x); // no warning 9 int f2(int *x) __attribute__ ((nonnull (1))); 10 int f3(int *x) __attribute__ ((nonnull (0))); // expected-error {{'nonnull' attribute parameter 1 i… 11 int f4(int *x, int *y) __attribute__ ((nonnull (1,2))); 12 int f5(int *x, int *y) __attribute__ ((nonnull (2,1))); 13 int f6(NSObject *x) __attribute__ ((nonnull (1))); // no-warning 14 int f7(NSObject *x) __attribute__ ((nonnull)); // no-warning 25 …unc6(); // expected-warning {{a function declaration without a prototype is deprecated in all vers… 33 …func1(0, cp2, i1); // expected-warning {{null passed to a callee that requires a non-null argumen… [all …]
|
/llvm-project/clang/test/Driver/ |
H A D | baremetal-multilib.yaml | 2 # UNSUPPORTED: system-windows 4 # RUN: %clang --multi-lib-config=%s -no-canonical-prefixes -x [all...] |
/llvm-project/clang/test/InstallAPI/ |
H A D | exclusive-passes-platform.test | 1 ; RUN: rm -rf %t 2 ; RUN: split-file %s %t 3 ; RUN: sed -e "s|DSTROOT|%/t|g" %t/inputs.json.in > %t/inputs.json 4 ; RUN: yaml2obj %t/Xplatform.yaml -o=%t/Xplatform 7 ; RUN: clang-installapi %t/inputs.json \ 8 ; RUN: --target=x86_64-apple-macos10.15 -darwin-target-variant x86_64-apple-ios13.1-macabi \ 9 ; RUN: -Xplatform_ios-macabi -iframework %t/System/iOSSupport/System/Library/Frameworks \ 10 ; RUN: -install_name /System/Library/Frameworks/Xplatform.framework/Versions/A/Xplatform \ 11 ; RUN: -fdefine-target-os-macros --verify-against=%t/Xplatform --verify-mode=Pedantic \ 12 ; RUN: -o Xplatform.tbd -F%t/Frameworks \ [all …]
|
H A D | exclusive-passes-zippered.test | 1 ; RUN: rm -rf %t 2 ; RUN: split-file %s %t 3 ; RUN: mkdir -p %t/Frameworks/ 4 ; RUN: cp -r %S/Inputs/Zippered/Zippered.framework %t/Frameworks/ 5 ; RUN: sed -e "s|DSTROOT|%/t|g" %t/inputs.json.in > %t/inputs.json 6 ; RUN: yaml2obj %S/Inputs/Zippered/Zippered.yaml -o %t/Frameworks/Zippered.framework/Zippered 8 ; RUN: clang-installapi \ 9 ; RUN: --target=x86_64-apple-macos13 -darwin-target-variant x86_64-apple-ios16-macabi \ 10 ; RUN: -install_name /System/Library/Frameworks/Zippered.framework/Versions/A/Zippered \ 11 ; RUN: -current_version 1 -compatibility_version 1 %t/inputs.json \ [all …]
|
/llvm-project/compiler-rt/lib/builtins/ |
H A D | int_math.h | 1 //===-- int_math.h - internal math inlines ------- 23 __has_builtin(x) global() argument 38 crt_isfinite(x) global() argument 39 crt_isinf(x) global() argument 40 crt_isnan(x) global() argument 46 crt_isfinite(x) global() argument 48 crt_isfinite(x) global() argument 56 crt_isinf(x) global() argument 57 crt_isnan(x) global() argument 61 crt_copysign(x,y) global() argument 62 crt_copysignf(x,y) global() argument 63 crt_copysignl(x,y) global() argument 65 crt_copysign(x,y) global() argument 66 crt_copysignf(x,y) global() argument 67 crt_copysignl(x,y) global() argument 69 crt_copysignf128(x,y) global() argument 71 crt_copysignf128(x,y) global() argument 76 crt_fabs(x) global() argument 77 crt_fabsf(x) global() argument 78 crt_fabsl(x) global() argument 80 crt_fabs(x) global() argument 81 crt_fabsf(x) global() argument 82 crt_fabsl(x) global() argument 84 crt_fabsf128(x) global() argument 86 crt_fabsf128(x) global() argument 91 crt_fmaxl(x,y) global() argument 93 crt_fmaxl(x,y) global() argument 97 crt_logbl(x) global() argument 99 crt_logbl(x) global() argument 103 crt_scalbnl(x,y) global() argument 105 crt_scalbnl(x,y) global() argument [all...] |
/llvm-project/third-party/unittest/googletest/include/gtest/internal/ |
H A D | gtest-string.h | 36 // This header file is #included by gtest-internal.h. 57 #include "gtest/internal/gtest-port.h" 62 // String - an abstract class holding static string utilities. 67 // Clones a 0-terminated C string, allocating memory using new. The 77 // Windows CE does not have the 'ANSI' versions of Win32 APIs. To be 79 // to 'Unicode', UTF-16. 81 // Creates a UTF-16 wide string from the given ANSI string, allocating 87 // match the behaviour of the ANSI versions of Win32 calls and the 97 // match the behaviour of the ANSI versions of Win32 calls and the 106 // NULL C string is considered different to any non-NULL C string, [all …]
|
/llvm-project/clang/test/C/drs/ |
H A D | dr3xx.c | 1 /* RUN: %clang_cc1 -std=c89 -fsyntax-only -Wvla -verify=expected,c89only,c17andearlier -pedantic -W… 2 …RUN: %clang_cc1 -std=c99 -fsyntax-only -Wvla -verify=expected,c99andup,c17andearlier -pedantic -Wn… 3 RUN: %clang_cc1 -std=c11 -fsyntax-only -Wvla -verify=expected,c99andup,c17andearlier -pedantic %s 4 RUN: %clang_cc1 -std=c17 -fsyntax-only -Wvla -verify=expected,c99andup,c17andearlier -pedantic %s 5 RUN: %clang_cc1 -std=c2x -fsyntax-only -Wvla -verify=expected,c99andup,c23andup -pedantic %s 12 * Translation-time expresssion evaluation 27 * Add non-corner case example of trigraphs 51 /* expected-error@+3 {{invalid token at start of a preprocessor expression}} 52 expected-warning@+3 {{missing terminating ' character}} 65 * Clarifying that rescanning applies to object-like macros [all …]
|
/llvm-project/llvm/docs/ |
H A D | MemorySSA.rst | 13 ``MemoryDependenceAnalysis`` for most (if not all) use-cases. This is because, 15 result in quadratic-time algorithms in LLVM. Additionally, ``MemorySSA`` doesn't 22 form for memory, complete with def-use and use-def chains, which 23 enables users to quickly find may-def and may-uses of memory operations. 24 It can also be thought of as a way to cheaply give versions to the complete 25 state of memory, and associate memory operations with those versions. 31 found here <http://www.airs.com/dnovillo/Papers/mem-ssa.pdf>`_. Though, it's 32 relatively out-of-date; the paper references multiple memory partitions, but GCC 46 - ``MemoryDef`` 47 - ``MemoryPhi`` [all …]
|
/llvm-project/clang/docs/ |
H A D | MemorySanitizer.rst | 12 compiler instrumentation module and a run-time library. 14 Typical slowdown introduced by MemorySanitizer is **3x**. 20 * Uninitialized value was passed or returned from a function call, which is considered an undefined behavior. The check can be disabled with ``-fno-sanitize-memory-param-retval``. 31 Simply compile and link your program with ``-fsanitize=memory`` flag. 32 The MemorySanitizer run-time library should be linked to the final 34 link step. When linking shared libraries, the MemorySanitizer run-tim [all...] |
/llvm-project/clang/include/clang/AST/ |
H A D | DeclLookups.h | 1 //===- DeclLookups.h - Low-level interface to all names in a DC -*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 26 /// all_lookups_iterator - An iterator that provides a view over the results 43 DeclarationName getLookupName() const { return It->first; } in getLookupName() 45 reference operator*() const { return It->second.getLookupResult(); } 46 pointer operator->() const { return It->second.getLookupResult(); } 55 It->first == DeclarationName::getUsingDirectiveName()); 66 friend bool operator==(all_lookups_iterator x, all_lookups_iterator y) { [all …]
|