Unnamed: 0
int64 0
0
| repo_id
stringlengths 5
186
| file_path
stringlengths 15
223
| content
stringlengths 1
32.8M
⌀ |
---|---|---|---|
0 |
repos/DirectXShaderCompiler/tools/clang/test/Misc
|
repos/DirectXShaderCompiler/tools/clang/test/Misc/Inputs/working-directory.h
|
typedef int Foo;
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/HLSLFileCheck/Readme.md
|
Files in this directory are executed using FileCheck in a batch mode.
There is a confirmation bias problem when testing debug info using file-check.
Say your test file contains:
// RUN: %dxc -E main -T vs_6_0 -Zi %s | FileCheck %s
// CHECK: foo
void main() {}
Due to /Zi, the !dx.source.contents metadata will be present and contain a string
with the original source file. This means that the generated file contains your
"// CHECK: foo", and hence the "foo" itself, so the check will succeed by default!
The current workaround is to include the following in your test to explicitly match
the quoted source file:
// Exclude quoted source file (see readme)
// CHECK-LABEL: {{!"[^"]*\\0A[^"]*"}}
This will match a metadata string containing \0A (newline), which should only appear
in the quoted source file. It will not match itself in the quoted source file because
the regex won't match itself, and even less the escaped version of itself.
Note that if you see a failure on that line, it means that something else before that
CHECK failed to match.
|
0 |
repos/DirectXShaderCompiler/tools/clang/test/HLSLFileCheck/dxil/debug
|
repos/DirectXShaderCompiler/tools/clang/test/HLSLFileCheck/dxil/debug/inc_dir/inc_dir.h
|
#ifndef AA
float foo(float a) {
return sin(a);
}
#else
float bar(float b) {
return cos(b);
}
#endif
|
0 |
repos/DirectXShaderCompiler/tools/clang/test/HLSLFileCheck/dxil/debug
|
repos/DirectXShaderCompiler/tools/clang/test/HLSLFileCheck/dxil/debug/inc_dir/inc_dir2.h
|
//#include "..\inc_dir\inc_dir.h"
#define AA
#include "inc_dir.h"
float bar2(float a) {
return bar(a);
}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test/HLSLFileCheck
|
repos/DirectXShaderCompiler/tools/clang/test/HLSLFileCheck/rewriter/header.h
|
struct A {
float a;
};
struct B : A {
float b;
};
struct X {
float a;
};
// test macro
#ifdef TEST
float bbb;
#endif
struct C {
B b;
float c;
float Get() { return c + b.b + b.a; }
};
struct D {
C c;
};
|
0 |
repos/DirectXShaderCompiler/tools/clang/test/HLSLFileCheck/rewriter
|
repos/DirectXShaderCompiler/tools/clang/test/HLSLFileCheck/rewriter/inc/include_file.h
|
#define FOO 1
|
0 |
repos/DirectXShaderCompiler/tools/clang/test/HLSLFileCheck/rewriter
|
repos/DirectXShaderCompiler/tools/clang/test/HLSLFileCheck/rewriter/inc/globalCB.h
|
float4 a;
namespace NN {
namespace N {
struct C {
int4 c;
};
}
}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test/HLSLFileCheck/samples
|
repos/DirectXShaderCompiler/tools/clang/test/HLSLFileCheck/samples/d3d11/TessellatorCS40_defines.h
|
//--------------------------------------------------------------------------------------
// File: TessellatorCS40_defines.h
//
// This file defines common constants which are included by both CPU code and shader code
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//--------------------------------------------------------------------------------------
#define MAX_FACTOR 16
|
0 |
repos/DirectXShaderCompiler/tools/clang/test/HLSLFileCheck/hlsl/preprocessor
|
repos/DirectXShaderCompiler/tools/clang/test/HLSLFileCheck/hlsl/preprocessor/version_defines/Readme.md
|
The shaders in this directory test the builtin definition of version macros covering DXC version, HLSL versions, and target stage and version information.
|
0 |
repos/DirectXShaderCompiler/tools/clang/test/HLSLFileCheck/hlsl
|
repos/DirectXShaderCompiler/tools/clang/test/HLSLFileCheck/hlsl/intrinsics/Readme.md
|
## Overview
This folder contains unit tests covering [HLSL intrinsics](https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-intrinsic-functions).
## Logical grouping of Intrinsics
- atomic
- barrier
- basic : (abs, fma, frac, frexp, ldexp, dot, mad, max, min)
- bitwise: (countbits, firstbithigh, firstbitlow, reversebits, ...}
- boolean: (all, any, ...?)
- cast: (asfloat, asuint, asdouble, f16tof32, f32tof16, ...)
- CheckAccessFullyMapped - there really isn't a category of intrinsics that fit with this
- compound: (normalize, step, smoothstep, lerp, saturate, lit, distance, length, cross, rcp, exp, log, log10, pow, dst, reflect, refract, modf, ...)
Intrinsics that are expanded to native instructions or other intrinsics during lowering, but we may intend
to map to new (or existing) native dxil intrinsics in the future (to make more efficient backend expansion possible).
List not accurate/complete.
**TODO**: Double check and fill in. Some may move to basic, some to helper.
- fpspecial: (isfinite, isinf, isnan, ...)
- helper: (D3DCOLORtoUBYTE4, Process\*, degrees, radians, faceforward)
- matrix: (determinant, transpose) - Thought of putting mul here, but...
- mixed: (dot2add, dot4add, msad4) (specialized mixed precision and/or fused operations)
- mul: this has so many overloads, it deserves its own folder.
- pixel: (clip, GetRenderTargetSampleCount, GetRenderTargetSamplePosition)
- pixel/attr: (Evaluate\*, GetAttributeAtVertex).
There could also be more testing of barycentrics, using GetAttributeAtVertex, under shader_targets/pixel/barycentrics or something.
- pixel/deriv: (ddx\*, ddy\*)
- power: (exp2, log2, rsqrt, sqrt)
- rounding: (round, ceil, floor, trunc)
- trig: (asin, atan*, cos*, sin*, tan*, ...)
- unsupported: (noise) - unsupported intrinsics tested to make sure they result in expected error message.
- unsupported/debug: (abort, errorf, printf) - Future: not yet supported by dxc.
- unsupported/legacy_tex (tex*)
- wave: - breakdown groups according to sections in spec, which makes a lot of sense...
- wave/broadcast: (WaveReadLaneFirst, WaveReadLaneAt)
- wave/prefix: (WavePrefixCountBits, WavePrefixProduct, WavePrefixSum)
- wave/quad: (QuadReadAcrossX, QuadReadAcrossY, QuadReadAcrossDiagonal, QuadReadLaneAt)
- wave/quad/pixel: - test in pixel context
- wave/quad/compute: - test in compute context (newly enabled)
- wave/query: (WaveIsFirstLane, WaveGetLaneCount, WaveGetLaneIndex)
- wave/reduction: (WaveActiveAllEqual[Bool], WaveActiveCountBits, WaveActive[Sum|Product], WaveActiveBit*, WaveActive[Min|Max])
- wave/vote: (WaveActive[Any|All]True, WaveActiveBallot)
## Test Coverage Gap
Current we have missing/minimal test coverage for below HLSL intrinsics:
- abs
- AllMemoryBarrierWithGroupSync
- any
- asdouble
- ceil
- CheckAccessFullyMapped
- clamp
- cross
- ddx
- ddx_coarse
- ddx_fine
- ddy
- ddy_coarse
- ddy_fine
- degrees
- DeviceMemoryBarrierWithGroupSync
- distance
- dst
- EvaluateAttributeSnapped
- exp2
- f16tof32
- f32tof16
- floor
- fmod
- GetRenderTargetSampleCount
- GetRenderTargetSamplePosition
- GroupMemoryBarrier
- GroupMemoryBarrierWithGroupSync
- isinf
- isnan
- ldexp
- length
- lerp
- log10
- log2
- msad4
- Process\* intrinsics
- radians
- reflect
- refract
- sincos
- trunc
## Unsupported Intrinsics
- abort
- errorf
- printf
- noise
- tex\* intrinsics
## Additional Notes
- CheckAccessFullyMapped should be tested as part of resource tests that test Sample/Load/Gather method overloads with status output.
- tex\* intrinsics are legacy DX9 intrinsics not supported by dxc.
|
0 |
repos/DirectXShaderCompiler/tools/clang/test/HLSLFileCheck/hlsl/control_flow
|
repos/DirectXShaderCompiler/tools/clang/test/HLSLFileCheck/hlsl/control_flow/loops/_readme.txt
|
There is a confirmation bias problem when testing debug info using file-check.
Say your test file contains:
// RUN: %dxc -E main -T vs_6_0 -Zi %s | FileCheck %s
// CHECK: foo
void main() {}
Due to /Zi, the !dx.source.contents metadata will be present and contain a string
with the original source file. This means that the generated file contains your
"// CHECK: foo", and hence the "foo" itself, so the check will succeed by default!
The current workaround is to include the following in your test to explicitly match
the quoted source file:
// Exclude quoted source file (see readme)
// CHECK-LABEL: {{!"[^"]*\\0A[^"]*"}}
This will match a metadata string containing \0A (newline), which should only appear
in the quoted source file. It will not match itself in the quoted source file because
the regex won't match itself, and even less the escaped version of itself.
Note that if you see a failure on that line, it means that something else before that
CHECK failed to match.
|
0 |
repos/DirectXShaderCompiler/tools/clang/test/HLSLFileCheck
|
repos/DirectXShaderCompiler/tools/clang/test/HLSLFileCheck/infra/Readme.txt
|
Contains tests to test test-infrastructure.
|
0 |
repos/DirectXShaderCompiler/tools/clang/test/HLSLFileCheck/shader_targets
|
repos/DirectXShaderCompiler/tools/clang/test/HLSLFileCheck/shader_targets/library/lib_no_alloca.h
|
float2 test(float2 a) {
float2 b = a;
b.y = sin(a.y);
return b;
}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Unit/lit.site.cfg.in
|
import sys
## Autogenerated by LLVM/Clang configuration.
# Do not edit!
config.llvm_src_root = "@LLVM_SOURCE_DIR@"
config.llvm_obj_root = "@LLVM_BINARY_DIR@"
config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
config.llvm_libs_dir = "@LLVM_LIBS_DIR@"
config.llvm_build_mode = "@LLVM_BUILD_MODE@"
config.clang_obj_root = "@CLANG_BINARY_DIR@"
config.enable_shared = @ENABLE_SHARED@
config.shlibdir = "@SHLIBDIR@"
config.target_triple = "@TARGET_TRIPLE@"
# Support substitution of the tools_dir, libs_dirs, and build_mode with user
# parameters. This is used when we can't determine the tool dir at
# configuration time.
try:
config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params
config.llvm_libs_dir = config.llvm_libs_dir % lit_config.params
config.llvm_build_mode = config.llvm_build_mode % lit_config.params
config.shlibdir = config.shlibdir % lit_config.params
except KeyError:
e = sys.exc_info()[1]
key, = e.args
lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
# Let the main config do the real work.
lit_config.load_config(config, "@CLANG_SOURCE_DIR@/test/Unit/lit.cfg")
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Tooling/auto-detect-from-source-parent.cpp
|
// RUN: rm -rf %t
// RUN: mkdir -p %t/abc/def/ijk/qwe
// RUN: echo "[{\"directory\":\".\",\"command\":\"clang++ -c %/t/abc/def/ijk/qwe/test.cpp\",\"file\":\"%/t/abc/def/ijk/qwe/test.cpp\"}]" | sed -e 's/\\/\\\\/g' > %t/compile_commands.json
// RUN: cp "%s" "%t/abc/def/ijk/qwe/test.cpp"
// RUN: not clang-check "%t/abc/def/ijk/qwe/test.cpp" 2>&1 | FileCheck %s
// CHECK: C++ requires
invalid;
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Tooling/ms-asm-no-target.cpp
|
// RUN: clang-check "%s" -- -fasm-blocks -target x86_64-apple-darwin10 2>&1 | FileCheck -check-prefix=CHECK-X86 %s -allow-empty
// RUN: not clang-check "%s" -- -fasm-blocks -target powerpc-apple-darwin10 2>&1 | FileCheck -check-prefix=CHECK-PPC %s
// REQUIRES: x86-registered-target
void Break() {
__asm { int 3 }
}
// clang-check should initialize the x86 target, so x86 should work.
// CHECK-X86-NOT: error: MS-style inline assembly is not available
// Test that the ordinary error is emitted on unsupported architectures.
// CHECK-PPC: error: Unsupported architecture 'powerpc' for MS-style inline assembly
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Tooling/clang-check-autodetect-dir.cpp
|
// RUN: rm -rf %t
// RUN: mkdir -p %t/abc/def
// RUN: echo "[{\"directory\":\".\",\"command\":\"clang++ -c %/t/test.cpp\",\"file\":\"%/t/test.cpp\"}]" | sed -e 's/\\/\\\\/g' > %t/compile_commands.json
// RUN: cp "%s" "%t/test.cpp"
// RUN: not clang-check -p "%t/abc/def" "%t/test.cpp" 2>&1|FileCheck %s
// FIXME: Make the above easier.
// CHECK: C++ requires
invalid;
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Tooling/clang-check-analyzer.cpp
|
// RUN: clang-check -analyze "%s" -- -c 2>&1 | FileCheck %s
// CHECK: Dereference of null pointer
int a(int *x) { if(x){} *x = 47; }
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Tooling/auto-detect-from-source-parent-of-cwd.cpp
|
// RUN: rm -rf %t
// RUN: mkdir -p %t/abc/def/ijk/qwe
// RUN: echo "[{\"directory\":\".\",\"command\":\"clang++ -c %t/abc/def/ijk/qwe/test.cpp\",\"file\":\"%t/abc/def/ijk/qwe/test.cpp\"}]" | sed -e 's/\\/\\\\/g' > %t/compile_commands.json
// RUN: cp "%s" "%t/abc/def/ijk/qwe/test.cpp"
// RUN: ln -sf %t/abc/def %t/abc/def2
// RUN: cd %t/abc/def2
// RUN: not env PWD="%t/abc/def" clang-check "ijk/qwe/test.cpp" 2>&1 | FileCheck %s
// CHECK: C++ requires
// CHECK: /abc/def/ijk/qwe/test.cpp
invalid;
// REQUIRES: shell
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Tooling/clang-check-strip-o.cpp
|
// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: echo '[{"directory":".","command":"clang++ -c %t/test.cpp -o foo -ofoo","file":"%t/test.cpp"}]' | sed -e 's/\\/\//g' > %t/compile_commands.json
// RUN: cp "%s" "%t/test.cpp"
// RUN: not clang-check -p "%t" "%t/test.cpp" -extra-arg=-v 2>&1|FileCheck %s
// FIXME: Make the above easier.
// CHECK: Invocation
// CHECK-NOT: {{ -v}}
// CHECK: C++ requires
invalid;
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Tooling/clang-check-chdir.cpp
|
// Verifies that paths are resolved relatively to the directory specified in the
// compilation database.
// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: echo "[{\"directory\":\"%t\",\"command\":\"clang -c test.cpp -I.\",\"file\":\"%t/test.cpp\"}]" | sed -e 's/\\/\//g' > %t/compile_commands.json
// RUN: cp "%s" "%t/test.cpp"
// RUN: touch "%t/clang-check-test.h"
// RUN: not clang-check -p "%t" "%t/test.cpp" 2>&1|FileCheck %s
// FIXME: Make the above easier.
#include "clang-check-test.h"
// CHECK: C++ requires
invalid;
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Tooling/pch.cpp
|
// This is a regression test for handling of stat caches within the tooling
// infrastructure. This test reproduces the problem under valgrind:
// First, create a pch that we can later load. Loading the pch will insert
// a stat cache into the FileManager:
// RUN: %clang -x c++-header %S/Inputs/pch.h -o %t1
// Use the generated pch and enforce a subsequent stat miss by using
// the test file with an unrelated include as second translation unit.
// Test for an non-empty file after clang-check is executed.
// RUN: clang-check -ast-dump "%S/Inputs/pch.cpp" "%s" -- -include-pch %t1 -I "%S" -c >%t2 2>&1
// RUN: test -s %t2
#include "Inputs/pch-fail.h"
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Tooling/clang-check-extra-arg.cpp
|
// RUN: clang-check "%s" -extra-arg=-Wunimplemented-warning -extra-arg-before=-Wunimplemented-warning-before -- -c 2>&1 | FileCheck %s
// CHECK: unknown warning option '-Wunimplemented-warning-before'
// CHECK: unknown warning option '-Wunimplemented-warning'
int a(){}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Tooling/clang-check-ast-dump.cpp
|
// RUN: clang-check -ast-dump "%s" -- 2>&1 | FileCheck %s
// CHECK: NamespaceDecl{{.*}}test_namespace
// CHECK-NEXT: CXXRecordDecl{{.*}}TheClass
// CHECK: CXXMethodDecl{{.*}}theMethod
// CHECK-NEXT: ParmVarDecl{{.*}}x
// CHECK-NEXT: CompoundStmt
// CHECK-NEXT: ReturnStmt
// CHECK-NEXT: BinaryOperator
//
// RUN: clang-check -ast-dump -ast-dump-filter test_namespace::TheClass::theMethod "%s" -- 2>&1 | FileCheck -check-prefix CHECK-FILTER %s
// CHECK-FILTER-NOT: NamespaceDecl
// CHECK-FILTER-NOT: CXXRecordDecl
// CHECK-FILTER: {{^}}Dumping test_namespace::TheClass::theMethod
// CHECK-FILTER-NEXT: {{^}}CXXMethodDecl{{.*}}theMethod
// CHECK-FILTER-NEXT: ParmVarDecl{{.*}}x
// CHECK-FILTER-NEXT: CompoundStmt
// CHECK-FILTER-NEXT: ReturnStmt
// CHECK-FILTER-NEXT: BinaryOperator
//
// RUN: clang-check -ast-print "%s" -- 2>&1 | FileCheck -check-prefix CHECK-PRINT %s
// CHECK-PRINT: namespace test_namespace
// CHECK-PRINT: class TheClass
// CHECK-PRINT: int theMethod(int x)
//
// RUN: clang-check -ast-list "%s" -- 2>&1 | FileCheck -check-prefix CHECK-LIST %s
// CHECK-LIST: test_namespace
// CHECK-LIST-NEXT: test_namespace::TheClass
// CHECK-LIST-NEXT: test_namespace::TheClass::theMethod
// CHECK-LIST-NEXT: x
//
// RUN: clang-check -ast-dump -ast-dump-filter test_namespace::TheClass::n "%s" -- 2>&1 | FileCheck -check-prefix CHECK-ATTR %s
// CHECK-ATTR: test_namespace
// CHECK-ATTR-NEXT: FieldDecl{{.*}}n
// CHECK-ATTR-NEXT: AlignedAttr
// CHECK-ATTR-NEXT: BinaryOperator
//
// RUN: clang-check -ast-dump -ast-dump-filter test_namespace::AfterNullNode "%s" -- 2>&1 | FileCheck -check-prefix CHECK-AFTER-NULL %s
// CHECK-AFTER-NULL: class AfterNullNode
namespace test_namespace {
class TheClass {
public:
int theMethod(int x) {
return x + x;
}
int n __attribute__((aligned(1+1)));
};
// Used to fail with -ast-dump-filter X
template<template<typename T> class C> class Z {};
// Check that traversal continues after the previous construct.
class AfterNullNode {};
}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Tooling/clang-check-args.cpp
|
// RUN: not clang-check "%s" -- -c 2>&1 | FileCheck %s
// CHECK: C++ requires
invalid;
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Tooling/auto-detect-from-source.cpp
|
// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: echo "[{\"directory\":\".\",\"command\":\"clang++ -c %/t/test.cpp\",\"file\":\"%/t/test.cpp\"}]" | sed -e 's/\\/\\\\/g' > %t/compile_commands.json
// RUN: cp "%s" "%t/test.cpp"
// RUN: not clang-check "%t/test.cpp" 2>&1 | FileCheck %s
// CHECK: C++ requires
invalid;
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Tooling/multi-jobs.cpp
|
// RUN: not clang-check "%s" -- -no-integrated-as -c 2>&1 | FileCheck %s
// The following test uses multiple time the same '-no-integrated-as' flag in order to make sure those flags are really skipped, and not just overwritten by luck :
// RUN: not clang-check "%s" -- -target x86_64-win32 -c -no-integrated-as -no-integrated-as -no-integrated-as 2>&1 | FileCheck %s
// CHECK: C++ requires
invalid;
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Tooling/clang-check-builtin-headers.cpp
|
// RUN: rm -rf %t
// RUN: mkdir %t
// Add a path that doesn't exist as argv[0] for the compile command line:
// RUN: echo '[{"directory":".","command":"/random/tool -c %t/test.cpp","file":"%t/test.cpp"}]' | sed -e 's/\\/\//g' > %t/compile_commands.json
// RUN: cp "%s" "%t/test.cpp"
// RUN: not clang-check -p "%t" "%t/test.cpp" 2>&1|FileCheck %s
// FIXME: Make the above easier.
#include <stddef.h>
// CHECK: C++ requires
invalid;
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Tooling/clang-check-rel-path.cpp
|
// This block test a compilation database with files relative to the directory
// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: echo '[{"directory":"%t","command":"clang++ -c test.cpp","file":"test.cpp"}]' | sed -e 's/\\/\//g' > %t/compile_commands.json
// RUN: cp "%s" "%t/test.cpp"
// RUN: not clang-check -p "%t" "%t/test.cpp" 2>&1|FileCheck %s
// FIXME: Make the above easier.
// CHECK: C++ requires
invalid;
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Tooling/clang-check.cpp
|
// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: echo '[{"directory":".","command":"clang++ -c %t/test.cpp","file":"%t/test.cpp"}]' | sed -e 's/\\/\//g' > %t/compile_commands.json
// RUN: cp "%s" "%t/test.cpp"
// RUN: not clang-check -p "%t" "%t/test.cpp" 2>&1|FileCheck %s
// FIXME: Make the above easier.
// CHECK: C++ requires
invalid;
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/Tooling/clang-check-pwd.cpp
|
// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: echo "[{\"directory\":\".\",\"command\":\"clang++ -c %t/test.cpp\",\"file\":\"%t/test.cpp\"}]" | sed -e 's/\\/\\\\/g' > %t/compile_commands.json
// RUN: cp "%s" "%t/test.cpp"
// RUN: ln -sf %t %t.foobar
// RUN: cd %t
// RUN: not env PWD="%t.foobar" clang-check -p "%t" "test.cpp" 2>&1|FileCheck %s
// FIXME: Make the above easier.
// CHECK: C++ requires
// CHECK: .foobar/test.cpp
invalid;
// REQUIRES: shell
|
0 |
repos/DirectXShaderCompiler/tools/clang/test/CodeGenCUDA
|
repos/DirectXShaderCompiler/tools/clang/test/CodeGenCUDA/Inputs/cuda.h
|
/* Minimal declarations for CUDA support. Testing purposes only. */
#include <stddef.h>
#define __constant__ __attribute__((constant))
#define __device__ __attribute__((device))
#define __global__ __attribute__((global))
#define __host__ __attribute__((host))
#define __shared__ __attribute__((shared))
#define __launch_bounds__(...) __attribute__((launch_bounds(__VA_ARGS__)))
struct dim3 {
unsigned x, y, z;
__host__ __device__ dim3(unsigned x, unsigned y = 1, unsigned z = 1) : x(x), y(y), z(z) {}
};
typedef struct cudaStream *cudaStream_t;
int cudaConfigureCall(dim3 gridSize, dim3 blockSize, size_t sharedSize = 0,
cudaStream_t stream = 0);
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/shader_model_update.test
|
// dxc.exe shader model upgrade
// RUN: %dxc %S/Inputs/smoke.hlsl /T ps_5_0 | FileCheck %s --check-prefix=MODEL_UPGRADE
// Make sure shader model upgrade to 6.0.
// MODEL_UPGRADE:!{!"ps", i32 6, i32 0}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/ast_dump.test
|
// ast-dump
// RUN: %dxc /T ps_6_0 %S/Inputs/smoke.hlsl /ast-dump | FileCheck %s --check-prefix=AST
// AST:TranslationUnitDecl
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/help_text.test
|
// Test /? and /help option
// RUN: %dxc /? | FileCheck %s
// RUN: %dxc /help | FileCheck %s
// Test to ensure the help text for '-Qsource_in_debug_module' is present
// CHECK:-Qsource_in_debug_module
// CHECK:Embed source code in PDB
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/strip_reflect.test
|
// /Qstrip_reflect strips reflection
// RUN: %dxc /T ps_6_0 %S/Inputs/smoke.hlsl -D DX12 /Qstrip_reflect /Fo %t.strip.reflection
// RUN: %dxc -dumpbin %t.strip.reflection | FileCheck %s --check-prefix=STRIP_REFLECTION
// STRIP_REFLECTION:define void @main()
// STRIP_REFLECTION-NOT:i32 6, !"g"
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/private_data.test
|
// Set private data
// RUN: echo private data > %t.private.txt
// RUN: %dxc %S/Inputs/smoke.hlsl /D "semantic = SV_Position" /T vs_6_0 /Zi /Qembed_debug /DDX12 /Fo %t.private.smoke.cso
// RUN: %dxc %t.private.smoke.cso /dumpbin /setprivate %t.private.txt /Fo %t.private.cso
// RUN: %dxc %t.private.cso /dumpbin /setprivate %t.private.txt /Fo %t.private.cso
// RUN: %dxc %t.private.cso /dumpbin /Qstrip_priv /Fo %t.noprivate.cso
// RUN: %dxc %t.private.cso /dumpbin /getprivate %t.private1.txt
// RUN: FileCheck %s --input-file=%t.private1.txt --check-prefix=PRIVATE1
// PRIVATE1:private data
// Appending and removing private data blob roundtrip
// RUN: cmp %t.private.smoke.cso %t.noprivate.cso
// Strip multiple, verify stripping
// RUN: %dxc %t.private.cso /dumpbin /Qstrip_priv /Qstrip_debug /Qstrip_rootsignature /Fo %t.noprivdebugroot.cso
// RUN: not %dxc %t.noprivdebugroot.cso /dumpbin /getprivate %t.private2.txt
// RUN: not %dxc %t.noprivdebugroot.cso /dumpbin /extractrootsignature %t.rootsig1.cso
// Make sure %t.rootsig1.cso not exist.
// RUN: not %dxc -dumpbin %t.rootsig1.cso
// RUN: %dxc %t.noprivdebugroot.cso /dumpbin | FileCheck %s --check-prefix=NO_PRIVATE_DBG_ROOT
// NO_PRIVATE_DBG_ROOT:define void @main()
// NO_PRIVATE_DBG_ROOT-NOT:DICompileUnit
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/preprocess.test
|
// Preprocess
// RUN: %dxc /T ps_6_0 %S/Inputs/smoke.hlsl /P %t.preprocessed.hlsl
// RUN: FileCheck --input-file=%t.preprocessed.hlsl %s --check-prefix=PREPROCESSED
// PREPROCESSED:float4 main
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/strip_dbg.test
|
// /Fd implies /Qstrip_debug ; path with / produces auto hash-named .pdb file
// NOTE: cd into unique directory to avoid ls *.pdb affected by pdb files generated by other tests.
// RUN: mkdir -p %T/strip_dbg && cd %T/strip_dbg
// Clear contents left by previous run.
// RUN: find %T/strip_dbg/ -type f -delete
// RUN: %dxc /T ps_6_0 %S/Inputs/smoke.hlsl /Zi /Fd %T/strip_dbg/ /Fo %t.strip
// RUN: %dxc -dumpbin %t.strip | FileCheck %s --check-prefix=STRIP_DBG
// Make sure the pdb file exist.
// RUN: ls -1 %T/strip_dbg | grep "\\.pdb$" | count 1
// /Zi with /Qstrip_debug and no output should not embed
// RUN: %dxc /T ps_6_0 %S/Inputs/smoke.hlsl /Zi /Qstrip_debug /Fo %t.strip2
// RUN: %dxc -dumpbin %t.strip2 | FileCheck %s --check-prefix=STRIP_DBG
// STRIP_DBG:shader debug name: {{[0-9a-z]+}}.pdb
// STRIP_DBG-NOT:DICompileUnit
// Strip Debug from compiled object
// RUN: %dxc %S/Inputs/smoke.hlsl /D "semantic = SV_Position" /T vs_6_0 /Zi /Qembed_debug /DDX12 /Fo %t.define.cso
// RUN: %dxc %t.define.cso /dumpbin /Qstrip_debug /Fo %t.nodebug.cso
// RUN: %dxc -dumpbin %t.nodebug.cso | FileCheck %s --check-prefix=STRIP_DEBUG_CSO
// STRIP_DEBUG_CSO:define void @main()
// STRIP_DEBUG_CSO-NOT:DICompileUnit
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/denorm.test
|
// Test for denorm options
// RUN: %dxc %S/Inputs/smoke.hlsl /Tps_6_2 /denorm preserve | FileCheck %s
// CHECK:"fp32-denorm-mode"="preserve"
// RUN: %dxc %S/Inputs/smoke.hlsl /Tps_6_2 | FileCheck %s --check-prefix=CLEAN
// CLEAN:define void @main()
// CLEAN-NOT:"fp32-denorm-mode"
// RUN: %dxc %S/Inputs/smoke.hlsl /Tps_6_2 /denorm ftz | FileCheck %s --check-prefix=FTZ
// FTZ:"fp32-denorm-mode"="ftz"
// RUN: not %dxc %S/Inputs/smoke.hlsl /Tps_6_2 /denorm abc 2>&1 | FileCheck %s --check-prefix=UNSUPPORTED
// UNSUPPORTED:Unsupported value 'abc' for denorm option.
// RUN: not %dxc %S/Inputs/smoke.hlsl /Tps_6_1 /denorm any 2>&1 | FileCheck %s --check-prefix=SM62
// SM62:denorm option is only allowed for shader model 6.2 and above.
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/enable_16_bits.test
|
// Test /enable-16bit-types option
// RUN: %dxc %S/Inputs/smoke.hlsl /Tps_6_2 /enable-16bit-types
// RUN: not %dxc %S/Inputs/smoke.hlsl /Tps_6_1 /enable-16bit-types > %t.ps61 2>&1
// RUN: FileCheck --input-file=%t.ps61 %s
// RUN: not %dxc %S/Inputs/smoke.hlsl /Tps_6_2 /enable-16bit-types /HV 2017 > %t 2>&1
// RUN: FileCheck --input-file=%t %s
// CHECK:enable-16bit-types is only allowed for shader model >= 6.2 and HLSL Language >= 2018
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/bom_test.test
|
// REQUIRES: system-windows
// RUN: %dxc /T ps_6_0 %S/Inputs/bom-main-ascii.hlsl -I Inputs | FileCheck %s
// RUN: %dxc /T ps_6_0 %S/Inputs/bom-main-utf8.hlsl -I Inputs | FileCheck %s
// RUN: %dxc /T ps_6_0 %S/Inputs/bom-main-utf16le.hlsl -I Inputs | FileCheck %s
// CHECK:define void @main()
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/binding_table.txt
|
ResourceName, Binding, space
"cb", b10, 30 ,
resource, b42, 999,
samp0, s1, 2,
resource, t1, 2
uav_0, u1, 2,
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/root_sig.test
|
// RUN: %dxc %S/Inputs/smoke.hlsl /D "semantic = SV_Position" /T vs_6_0 /Zi /Qembed_debug /DDX12 /Fo %t.define.cso
// Strip Root Signature from compiled object
// RUN: %dxc %t.define.cso /dumpbin /Qstrip_rootsignature /Fo %t.norootsignature.cso
// RUN:%dxa -listparts %t.norootsignature.cso | FileCheck %s --check-prefix=NO_RS
// NO_RS:Part count
// NO_RS-NOT:RTS0
// Extract rootsignature from compiled object
// RUN: %dxc %t.define.cso /dumpbin /extractrootsignature /Fo %t.rootsig.cso
// RUN:%dxa -listparts %t.rootsig.cso | FileCheck %s --check-prefix=RS_PART
// Add rootsignature to compiled object
// RUN: %dxc %t.norootsignature.cso /dumpbin /setrootsignature %t.rootsig.cso /Fo %t.merged.cso
// RUN:%dxa -listparts %t.merged.cso | FileCheck %s --check-prefix=RS_PART
// RS_PART:Part count
// RS_PART:RTS0
// Verify root signature for smoke.cso
// RUN: %dxc %t.define.cso /dumpbin /verifyrootsignature %t.rootsig.cso
// RUN: %dxc %t.norootsignature.cso /dumpbin /verifyrootsignature %t.rootsig.cso
// Set root signature when already has one should succeed
// RUN: %dxc %t.define.cso /dumpbin /setrootsignature %t.rootsig.cso /Fo %t.smoke.rsadded.cso
// Make sure %t.smoke.rsadded.cso exist.
// RUN: ls %t.smoke.rsadded.cso
// Set mismatched root signature when already has one should fail
// RUN: not %dxc %t.define.cso /dumpbin /setrootsignature %t.NonUniformRootSig.cso /Fo %t.smoke.rsadded.cso
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/dxa_tests.test
|
// RUN: %dxc %S/Inputs/smoke.hlsl /D "semantic = SV_Position" /T vs_6_0 /Zi /Qembed_debug /DDX12 /Fo %t.dxa.cso
// RUN: %dxa %t.dxa.cso -listfiles | FileCheck %s --check-prefix=FILES
// FILES:smoke.hlsl
// RUN: %dxa %t.dxa.cso -listparts | FileCheck %s --check-prefix=PARTS
// PARTS-DAG:DXIL
// PARTS-DAG:ILDB
// PARTS-DAG:RTS0
// PARTS-DAG:PSV0
// PARTS-DAG:STAT
// PARTS-DAG:ILDN
// PARTS-DAG:HASH
// PARTS-DAG:ISG1
// PARTS-DAG:OSG1
// RUN: %dxa %t.dxa.cso -extractpart dbgmodule -o %t.dxa.cso.dbgmodule
// RUN: %dxa %t.dxa.cso.dbgmodule -listfiles | FileCheck %s --check-prefix=DBG_FILES
// DBG_FILES:smoke.hlsl
// RUN: %dxa %t.dxa.cso.dbgmodule -extractfile=* | FileCheck %s --check-prefix=EXTRACT_FILE
// EXTRACT_FILE:float4 main()
// RUN: %dxa %t.dxa.cso -extractpart module -o %t.dxa.cso.plain.bc
// RUN: %dxa %t.dxa.cso.plain.bc -o %t.rebuilt-container.cso
// RUN: %dxc -dumpbin %t.rebuilt-container.cso | FileCheck %s --check-prefix=REBUILD
// RUN: %dxc -dumpbin %t.dxa.cso -Fc %t.dxa.ll
// RUN: %dxa %t.dxa.ll -o %t.rebuilt-container2.cso
// RUN: %dxc -dumpbin %t.rebuilt-container2.cso | FileCheck %s --check-prefix=REBUILD
// REBUILD:define void @main()
// RUN: %dxa %t.dxa.cso -dumpreflection | FileCheck %s --check-prefix=REFLECTION
// REFLECTION: ID3D12ShaderReflection:
// REFLECTION-NEXT: D3D12_SHADER_DESC:
// REFLECTION-NEXT: Shader Version: Vertex 6.0
// REFLECTION-NEXT: Creator: dxc
// REFLECTION-NEXT: Flags: 0
// REFLECTION-NEXT: ConstantBuffers: 1
// REFLECTION-NEXT: BoundResources: 1
// REFLECTION-NEXT: InputParameters: 0
// REFLECTION-NEXT: OutputParameters: 1
// REFLECTION-NEXT: InstructionCount: 10
// REFLECTION-NEXT: TempArrayCount: 0
// REFLECTION-NEXT: DynamicFlowControlCount: 0
// REFLECTION-NEXT: ArrayInstructionCount: 0
// REFLECTION-NEXT: TextureNormalInstructions: 0
// REFLECTION-NEXT: TextureLoadInstructions: 0
// REFLECTION-NEXT: TextureCompInstructions: 0
// REFLECTION-NEXT: TextureBiasInstructions: 0
// REFLECTION-NEXT: TextureGradientInstructions: 0
// REFLECTION-NEXT: FloatInstructionCount: 1
// REFLECTION-NEXT: IntInstructionCount: 1
// REFLECTION-NEXT: UintInstructionCount: 0
// REFLECTION-NEXT: CutInstructionCount: 0
// REFLECTION-NEXT: EmitInstructionCount: 0
// REFLECTION-NEXT: cBarrierInstructions: 0
// REFLECTION-NEXT: cInterlockedInstructions: 0
// REFLECTION-NEXT: cTextureStoreInstructions: 0
// REFLECTION-NEXT: OutputParameter Elements: 1
// REFLECTION-NEXT: D3D12_SIGNATURE_PARAMETER_DESC: SemanticName: SV_POSITION SemanticIndex: 0
// REFLECTION-NEXT: Register: 0
// REFLECTION-NEXT: SystemValueType: D3D_NAME_POSITION
// REFLECTION-NEXT: ComponentType: D3D_REGISTER_COMPONENT_FLOAT32
// REFLECTION-NEXT: Mask: xyzw (15)
// REFLECTION-NEXT: ReadWriteMask: ---- (0) (AlwaysReads/NeverWrites)
// REFLECTION-NEXT: Stream: 0
// REFLECTION-NEXT: MinPrecision: D3D_MIN_PRECISION_DEFAULT
// REFLECTION-NEXT: Constant Buffers:
// REFLECTION-NEXT: ID3D12ShaderReflectionConstantBuffer:
// REFLECTION-NEXT: D3D12_SHADER_BUFFER_DESC: Name: $Globals
// REFLECTION-NEXT: Type: D3D_CT_CBUFFER
// REFLECTION-NEXT: Size: 16
// REFLECTION-NEXT: uFlags: 0
// REFLECTION-NEXT: Num Variables: 1
// REFLECTION-NEXT: {
// REFLECTION-NEXT: ID3D12ShaderReflectionVariable:
// REFLECTION-NEXT: D3D12_SHADER_VARIABLE_DESC: Name: g
// REFLECTION-NEXT: Size: 4
// REFLECTION-NEXT: StartOffset: 0
// REFLECTION-NEXT: uFlags: (D3D_SVF_USED)
// REFLECTION-NEXT: DefaultValue: <nullptr>
// REFLECTION-NEXT: ID3D12ShaderReflectionType:
// REFLECTION-NEXT: D3D12_SHADER_TYPE_DESC: Name: int
// REFLECTION-NEXT: Class: D3D_SVC_SCALAR
// REFLECTION-NEXT: Type: D3D_SVT_INT
// REFLECTION-NEXT: Elements: 0
// REFLECTION-NEXT: Rows: 1
// REFLECTION-NEXT: Columns: 1
// REFLECTION-NEXT: Members: 0
// REFLECTION-NEXT: Offset: 0
// REFLECTION-NEXT: CBuffer: $Globals
// REFLECTION-NEXT: }
// REFLECTION-NEXT: Bound Resources:
// REFLECTION-NEXT: D3D12_SHADER_INPUT_BIND_DESC: Name: $Globals
// REFLECTION-NEXT: Type: D3D_SIT_CBUFFER
// REFLECTION-NEXT: uID: 0
// REFLECTION-NEXT: BindCount: 1
// REFLECTION-NEXT: BindPoint: 0
// REFLECTION-NEXT: Space: 0
// REFLECTION-NEXT: ReturnType: <unknown: 0>
// REFLECTION-NEXT: Dimension: D3D_SRV_DIMENSION_UNKNOWN
// REFLECTION-NEXT: NumSamples (or stride): 0
// REFLECTION-NEXT: uFlags: (D3D_SIF_USERPACKED)
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/embed_dbg.test
|
// Embed debug info
// NOTE: cd into unique directory to avoid ls *.pdb affected by pdb files generated by other tests.
// RUN: mkdir -p %T/embed_dbg && cd %T/embed_dbg
// RUN: %dxc /T ps_6_0 %S/Inputs/smoke.hlsl /Zi /Qembed_debug /Fo %t.embedpdb
// RUN: %dxc -dumpbin %t.embedpdb | FileCheck %s --check-prefix=EMBED_PDB
// Make sure the pdb file not exist with /Zi /Qembed_debug.
// RUN: ls -1 %T/embed_dbg | not grep "\\.pdb$"
// Auto-embed debug info when no debug output, and expect warning signifying that this is the case.
// RUN: %dxc /T ps_6_0 %S/Inputs/smoke.hlsl /Zi /Fo %t.embedpdb2 /Fe %t.err.embedpdb
// RUN: FileCheck --input-file=%t.err.embedpdb %s --check-prefix=ERR_EMBED_PDB
// ERR_EMBED_PDB:warning: no output provided for debug - embedding PDB in shader container. Use -Qembed_debug to silence this warning.
// RUN: %dxc -dumpbin %t.embedpdb2 | FileCheck %s --check-prefix=EMBED_PDB
// EMBED_PDB:shader debug name: {{[0-9a-z]+}}.pdb
// EMBED_PDB:DICompileUnit
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/dxr_test.test
|
// Basic Rewriter Smoke Test
// RUN: %dxr -remove-unused-globals %S/Inputs/smoke.hlsl -Emain | FileCheck %s --check-prefix=DXR
// DXR:int f2(int g)
// DXR-not:g_unused
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/recompile.test
|
// Embed Debug, Recompile
// RUN: %dxc /T ps_6_0 %S/Inputs/smoke.hlsl /Zi /Qembed_debug /Fo %t.recompile.cso
// RUN: %dxc -dumpbin %t.recompile.cso | FileCheck %s --check-prefix=RECOMPILE_EMBED_DEBUG
// RECOMPILE_EMBED_DEBUG:DICompileUnit
// RUN: %dxc /T ps_6_0 %S/Inputs/smoke.hlsl /Zi /Qembed_debug /Fo %t.recompile.cc.cso /Cc /Ni /No /Lx
// RUN: %dxc -dumpbin %t.recompile.cc.cso | FileCheck %s --check-prefix=RECOMPILE_CC_EMBED_DEBUG
// RECOMPILE_CC_EMBED_DEBUG:DICompileUnit
// RUN: %dxc %t.recompile.cc.cso /recompile
// RUN: %dxc %t.recompile.cc.cso /recompile /T ps_6_0 /E main
// Strip Debug, Recompile PDB
// RUN: %dxc /T ps_6_0 %S/Inputs/smoke.hlsl /Zi /Fd %t.recompiled.pdb
// RUN: %dxc -dumpbin %t.recompiled.pdb | FileCheck %s --check-prefix=RECOMPILE_PDB
// RECOMPILE_PDB:DICompileUnit
// RUN: %dxc %t.recompiled.pdb /recompile > %t.recompiled.pdb.ll
// RUN: %dxc %t.recompiled.pdb /recompile /T ps_6_0 /E main
// Command-line Defines, Recompile
// RUN: %dxc %S/Inputs/smoke.hlsl /D "semantic = SV_Position" /T vs_6_0 /Zi /Qembed_debug /DDX12 /Fo %t.define.cso
// RUN: %dxc %t.define.cso /recompile
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/warning.test
|
// Check Warning
// RUN: %dxc /T ps_6_0 %S/Inputs/smoke.hlsl /Dcheck_warning 2>&1 | FileCheck %s --check-prefix=CHECK_WARNING
// CHECK_WARNING:warning:
// /no-warnings
// RUN: %dxc /T ps_6_0 %S/Inputs/smoke.hlsl /Dcheck_warning /no-warnings 2>&1 | FileCheck %s --check-prefix=CHECK_NOWARNING
// CHECK_NOWARNING-NOT:warning:
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/batch_compile.test
|
// REQUIRES: system-windows
// RUN: %batch -lib-link -multi-thread %S\Inputs\batch_cmds2.txt
// RUN: %batch -lib-link -multi-thread %S\Inputs\batch_cmds.txt
// RUN: %batch -multi-thread %S\Inputs\batch_cmds.txt
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/spirv.test
|
// REQUIRES: spirv
// RUN:%dxc %s /T ps_6_0 %S/Inputs/smoke.hlsl -spirv | FileCheck %s
// CHECK: SPIR-V
// CHECK:OpName %main "main"
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/fd_zs.test
|
// /Fd plus /Zs
// RUN: %dxc /T ps_6_0 %S/Inputs/smoke.hlsl /Zs /Fd %t.pdb /Fo %t.dxo_fd
// RUN:FileCheck --input-file=%t.pdb %s --check-prefix=PDB
// Make sure PDB not empty.
// PDB:{{.+}}
// RUN:FileCheck --input-file=%t.dxo_fd %s --check-prefix=FD_FO
// FD_FO:{{.+}}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/dxopt_test.test
|
// Smoke test for dxopt command line
// RUN: %dxc /Odump -Tps_6_0 %S/Inputs/smoke.hlsl > %t.opt.passes.txt
// RUN: echo -print-module:test >> %t.opt.passes.txt
// RUN: %dxc -T ps_6_0 %S/Inputs/smoke.hlsl -fcgl -Fc %t.smoke.hl.ll
// RUN: FileCheck --input-file=%t.smoke.hl.ll %s --check-prefix=HL_LL
// Make sure hl.ll not empty.
// HL_LL:{{.+}}
// RUN: %dxopt -pf %t.opt.passes.txt -o=%t.smoke.opt.bc %t.smoke.hl.ll | FileCheck %s --check-prefix=OPT_PRN
// OPT_PRN:MODULE-PRINT
// RUN: %dxc -dumpbin %t.smoke.opt.bc | FileCheck %s --check-prefix=OPT_BC
// Make sure OPT_BC not empty.
// OPT_BC:{{.+}}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/no_spirv.test
|
// UNSUPPORTED: spirv
// RUN:not %dxc %S/Inputs/smoke.hlsl /T ps_6_0 -spirv > %t.nospirv.log 2>&1
// RUN: FileCheck %s --input-file=%t.nospirv.log
// CHECK:SPIR-V CodeGen not available
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/fdiagnostics-format.test
|
// RUN: %dxc -T ps_6_0 %s -verify
// RUN: not %dxc -T ps_6_0 %s 2>&1 | FileCheck %s --check-prefix=CLANG
// RUN: not %dxc -T ps_6_0 %s -fdiagnostics-format=clang 2>&1 | FileCheck %s --check-prefix=CLANG
// RUN: not %dxc -T ps_6_0 %s -fdiagnostics-format=msvc 2>&1 | FileCheck %s --check-prefix=MSVC
// RUN: not %dxc -T ps_6_0 %s -fdiagnostics-format=msvc-fallback 2>&1 | FileCheck %s --check-prefix=MSVC
// RUN: not %dxc -T ps_6_0 %s -fdiagnostics-format=vi 2>&1 | FileCheck %s --check-prefix=VI
// RUN: not %dxc -T ps_6_0 %s -fdiagnostics-format=nonsense 2>&1 | FileCheck %s --check-prefixes=NONSENSE,CLANG
main() {} // expected-error{{HLSL requires a type specifier for all declarations}}
// NONSENSE: warning: invalid option nonsense to -fdiagnostics-format: supported values are clang, msvc, msvc-fallback, and vi
// VI: +9:1: error: HLSL requires a type specifier for all declarations
// MSVC: (9,1) : error: HLSL requires a type specifier for all declarations
// CLANG: :9:1: error: HLSL requires a type specifier for all declarations
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/basic_smoke.test
|
// Basic DXC Smoke Test
// RUN: %dxc /T ps_6_0 %S/Inputs/smoke.hlsl /Fc %t
// RUN: FileCheck --input-file=%t %s --check-prefix=FC
// FC:define void @main()
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/force_root_sig_ver.test
|
// force_rootsig_ver
// RUN: %dxc /T ps_6_0 %S/Inputs/smoke.hlsl -force_rootsig_ver rootsig_1_0 | FileCheck %s --check-prefix=IR
// RUN: %dxc /T ps_6_0 %S/Inputs/smoke.hlsl -force_rootsig_ver rootsig_1_1 | FileCheck %s --check-prefix=IR
// RUN: not %dxc /T ps_6_0 %S/Inputs/smoke.hlsl -force_rootsig_ver rootsig_2_0 > %t 2>&1
// RUN: FileCheck --input-file=%t %s
// CHECK:Unsupported value 'rootsig_2_0' for root signature profile
// IR:define void @main()
// IR:!{!"ps", i32 6, i32 0}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/hlsl_ver.test
|
// HLSL Version
// RUN: %dxc /T ps_6_0 %S/Inputs/smoke.hlsl /HV 2016
// RUN: not %dxc /T ps_6_0 %S/Inputs/smoke.hlsl /HV 2015 > %t 2>&1
// RUN: FileCheck --input-file=%t %s
// CHECK:HLSL Version 2015 is only supported for language services
// dxc.exe shader model version promtion warning
// RUN: %dxc %S/Inputs/smoke.hlsl /Emain /Tps_5_0 2>%t.version.err
// RUN: FileCheck --input-file=%t.version.err %s --check-prefix=VERSION_WARNING
// RUN: %dxc %S/Inputs/smoke.hlsl /Emain /Tps_5_1 2>%t.version2.err
// RUN: FileCheck --input-file=%t.version2.err %s --check-prefix=VERSION_WARNING
// VERSION_WARNING:warning: Promoting older shader model profile to 6.0 version
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/extra_output.test
|
// Test extra DXC outputs together
// RUN: %dxc /T ps_6_0 %S/Inputs/smoke.hlsl /DDX12 /Dcheck_warning /Fh %t.h /Vn g_myvar /Fc %t.ll /Fo %t.cso /Fre %t.reflection /Frs %t.rootsig /Fe %t.err
// RUN: FileCheck --input-file=%t.h %s --check-prefix=HEADER
// RUN: FileCheck --input-file=%t.ll %s --check-prefix=IR
// HEADER:define void @main()
// HEADER:g_myvar
// HEADER:0x44, 0x58
// IR:define void @main()
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/fd_strip_dbg.test
|
// /Fd implies /Qstrip_debug
// RUN: %dxc /T ps_6_0 %S/Inputs/smoke.hlsl /Zi /Fd %t.fd /Fo %t.dxo
// RUN:FileCheck --input-file=%t.fd %s --check-prefix=FD | %dxc -dumpbin %t.dxo | FileCheck %s --check-prefix=FO
// Make sure FD not empty.
// FD:{{.+}}
// FO:shader debug name: {{.*}}fd_strip_dbg.test.tmp.fd
// FO-not:DICompileUnit
|
0 |
repos/DirectXShaderCompiler/tools/clang/test/DXC
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/Inputs/batch_cmds2.txt
|
-E ps_main -T ps_6_0 lib_entries3.hlsl
|
0 |
repos/DirectXShaderCompiler/tools/clang/test/DXC
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/Inputs/batch_cmds.txt
|
-E ps_main -T ps_6_0 lib_entries2.hlsl
-E vs_main -T vs_6_0 lib_entries2.hlsl
-E hs_main -T hs_6_0 lib_entries2.hlsl
-E gs_main -T gs_6_0 lib_entries2.hlsl
-E ds_main -T ds_6_0 lib_entries2.hlsl
|
0 |
repos/DirectXShaderCompiler/tools/clang/test/DXC/Inputs
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/Inputs/include/dependency3.h
|
#ifndef DEPENDENCY3_H_
#define DEPENDENCY3_H_
#include "dependency4.h"
#endif // DEPENDENCY3_H_
|
0 |
repos/DirectXShaderCompiler/tools/clang/test/DXC/Inputs
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/Inputs/include/dependency0.h
|
#ifndef DEPENDENCY0_H_
#define DEPENDENCY0_H_
#include "dependency1.h"
#endif // DEPENDENCY0_H_
|
0 |
repos/DirectXShaderCompiler/tools/clang/test/DXC/Inputs
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/Inputs/include/dependency5.h
|
#ifndef DEPENDENCY5_H_
#define DEPENDENCY5_H_
// Empty
#endif // DEPENDENCY5_H_
|
0 |
repos/DirectXShaderCompiler/tools/clang/test/DXC/Inputs
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/Inputs/include/dependency4.h
|
#ifndef DEPENDENCY4_H_
#define DEPENDENCY4_H_
#include "dependency5.h"
#endif // DEPENDENCY4_H_
|
0 |
repos/DirectXShaderCompiler/tools/clang/test/DXC/Inputs
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/Inputs/include/dependency2.h
|
#ifndef DEPENDENCY2_H_
#define DEPENDENCY2_H_
#include "dependency3.h"
#include "dependency4.h"
#endif // DEPENDENCY2_H_
|
0 |
repos/DirectXShaderCompiler/tools/clang/test/DXC/Inputs
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/Inputs/include/dependency1.h
|
#ifndef DEPENDENCY1_H_
#define DEPENDENCY1_H_
// Empty
#endif // DEPENDENCY1_H_
|
0 |
repos/DirectXShaderCompiler/tools/clang/test/DXC/Inputs
|
repos/DirectXShaderCompiler/tools/clang/test/DXC/Inputs/inc/include-declarations.h
|
struct foo {
float4x4 MPV;
} CB;
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/FixIt/no-typo.c
|
// RUN: %clang_cc1 -fsyntax-only -fno-spell-checking -verify %s
typedef struct {
float x, y;
} Point;
point p1; // expected-error{{unknown type name 'point'}}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/FixIt/fixit-errors-1.c
|
// RUN: cp %s %t
// RUN: %clang_cc1 -pedantic -fixit %t
// RUN: %clang_cc1 -pedantic -Werror -x c %t
/* This is a test of the various code modification hints that are
provided as part of warning or extension diagnostics. All of the
warnings will be fixed by -fixit, and the resulting file should
compile cleanly with -Werror -pedantic. */
// FIXME: If you put a space at the end of the line, it doesn't work yet!
char *s = "hi\
there";
// The following line isn't terminated, don't fix it.
int i; // expected-error{{no newline at end of file}}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/FixIt/fixit-recompile.c
|
// RUN: %clang_cc1 -Werror -pedantic %s -fixit-recompile -fixit-to-temporary -E -o - | FileCheck %s
// RUN: not %clang_cc1 -Werror -pedantic %s -fixit-recompile -fixit-to-temporary -fix-only-warnings
_Complex cd;
// CHECK: _Complex double cd;
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/FixIt/fixit-recursive-block.c
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -Wuninitialized -fblocks -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -Wuninitialized -fblocks -verify %s
// rdar://10817031
int main() {
void (^arc_fail)() = ^() { // expected-warning {{block pointer variable 'arc_fail' is uninitialized when captured by block}} \
// expected-note {{did you mean to use __block 'arc_fail'}}
arc_fail(); // BOOM
};
}
// CHECK: {7:12-7:12}:"__block "
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/FixIt/fixit-unrecoverable.cpp
|
/* FIXME: This is a file containing various typos for which we can
suggest corrections but are unable to actually recover from
them. Ideally, we would eliminate all such cases and move these
tests elsewhere. */
// RUN: %clang_cc1 -fsyntax-only -verify %s
float f(int y) {
return static_cst<float>(y); // expected-error{{use of undeclared identifier 'static_cst'; did you mean 'static_cast'?}}
}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/FixIt/fixit-include.c
|
// RUN: %clang_cc1 -fsyntax-only -Wall -pedantic -verify %s
// RUN: cp %s %t
// RUN: cp %S/fixit-include.h %T
// RUN: not %clang_cc1 -fsyntax-only -fixit %t
// RUN: %clang_cc1 -Wall -pedantic %t
// RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s
#include <fixit-include.h> // expected-error {{'fixit-include.h' file not found with <angled> include; use "quotes" instead}}
// CHECK: fix-it:{{.*}}:{8:10-8:27}
#pragma does_not_exist // expected-warning {{unknown pragma ignored}}
int main( void ) {
return 0;
}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/FixIt/fixit-function-call.cpp
|
// RUN: not %clang_cc1 -fdiagnostics-parseable-fixits -x c++ %s 2> %t
// RUN: FileCheck %s < %t
// PR5941
// END.
/* Test fixits for * and & mismatch in function arguments.
* Since fixits are on the notes, they cannot be applied automatically. */
typedef int intTy;
typedef int intTy2;
void f0(int *a);
void f1(double *a);
void f1(intTy &a);
void f2(intTy2 *a) {
// CHECK: error: no matching function for call to 'f1
// CHECK: dereference the argument with *
// CHECK: void f1(intTy &a);
// CHECK: fix-it{{.*}}*(
// CHECK-NEXT: fix-it{{.*}})
// CHECK: void f1(double *a);
f1(a + 1);
// This call cannot be fixed since without resulting in null pointer dereference.
// CHECK: error: no matching function for call to 'f1
// CHECK-NOT: dereference the argument with *
// CHECK-NOT: fix-it
f1((int *)0);
}
void f3(int &a) {
// CHECK: error: no matching function for call to 'f0
// CHECK: fix-it{{.*}}&
f0(a);
}
void m(int *a, const int *b); // match 2
void m(double *a, int *b); // no match
void m(int *a, double *b); // no match
void m(intTy &a, int *b); // match 1
void mcaller(intTy2 a, int b) {
// CHECK: error: no matching function for call to 'm
// CHECK: take the address of the argument with &
// CHECK: fix-it{{.*}}&
// CHECK: take the address of the argument with &
// CHECK: fix-it{{.*}}&
// CHECK: fix-it{{.*}}&
m(a, b);
// This call cannot be fixed because (a + 1) is not an l-value.
// CHECK: error: no matching function for call to 'm
// CHECK-NOT: fix-it
m(a + 1, b);
}
// Test derived to base conversions.
struct A {
int xx;
};
struct B : public A {
double y;
};
class C : A {};
bool br(A &a);
bool bp(A *a);
bool dv(B b);
void u(int x);
void u(const C *x);
void u(double x);
void dbcaller(A *ptra, B *ptrb, C &c, B &refb) {
B b;
// CHECK: error: no matching function for call to 'br
// CHECK: fix-it{{.*}}*
br(ptrb); // good
// CHECK: error: no matching function for call to 'bp
// CHECK: fix-it{{.*}}&
bp(b); // good
// CHECK: error: no matching function for call to 'dv
// CHECK-NOT: fix-it
dv(ptra); // bad: base to derived
// CHECK: error: no matching function for call to 'dv
// CHECK: remove &
dv(&b);
// CHECK: error: no matching function for call to 'bp
// CHECK: remove *
bp(*ptra);
// CHECK: error: no viable overloaded '='
// CHECK: remove &
b = &refb;
// TODO: Test that we do not provide a fixit when inheritance is private.
// CHECK: error: no matching function for call to 'bp
// There should not be a fixit here:
// CHECK: fix-it
bp(c);
// CHECK: no matching function for call to 'u'
// CHECK: candidate function not viable: no known conversion from 'C' to 'const C *' for 1st argument; take the address of the argument with &
// CHECK: candidate function not viable
// CHECK: candidate function not viable
u(c);
}
// CHECK: errors generated
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/FixIt/typo-using.cpp
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
// RUN: cp %s %t
// RUN: not %clang_cc1 -fsyntax-only -fixit -x c++ %t
// RUN: %clang_cc1 -fsyntax-only -pedantic -Werror -x c++ %t
// RUN: grep using_suggestion_tyname_ty_dropped_specifier %t
// These tests have been separated from typo.cpp to keep the maximum typo
// correction counter from ticking over; this causes spurious failures.
namespace using_suggestion_ty {
namespace N { class AAA {}; } // expected-note {{'AAA' declared here}}
using N::AAB; // expected-error {{no member named 'AAB' in namespace 'using_suggestion_ty::N'; did you mean 'AAA'?}}
}
namespace using_suggestion_tyname_ty {
namespace N { class AAA {}; } // expected-note {{'AAA' declared here}}
using typename N::AAB; // expected-error {{no member named 'AAB' in namespace 'using_suggestion_tyname_ty::N'; did you mean 'AAA'?}}
}
namespace using_suggestion_val {
namespace N { void FFF() {} } // expected-note {{'FFF' declared here}}
using N::FFG; // expected-error {{no member named 'FFG' in namespace 'using_suggestion_val::N'; did you mean 'FFF'?}}
}
namespace using_suggestion_ty_dropped_specifier {
class ABC {}; // expected-note {{'::using_suggestion_ty_dropped_specifier::ABC' declared here}}
namespace N { }
using N::ABC; // expected-error {{no member named 'ABC' in namespace 'using_suggestion_ty_dropped_specifier::N'; did you mean '::using_suggestion_ty_dropped_specifier::ABC'?}}
}
namespace using_suggestion_tyname_ty_dropped_specifier {
class BCD {}; // expected-note {{'::using_suggestion_tyname_ty_dropped_specifier::BCD' declared here}}
namespace N { }
using typename N::BCD; // expected-error {{no member named 'BCD' in namespace 'using_suggestion_tyname_ty_dropped_specifier::N'; did you mean '::using_suggestion_tyname_ty_dropped_specifier::BCD'?}}
}
namespace using_suggestion_val_dropped_specifier {
void EFG() {} // expected-note {{'::using_suggestion_val_dropped_specifier::EFG' declared here}}
namespace N { }
using N::EFG; // expected-error {{no member named 'EFG' in namespace 'using_suggestion_val_dropped_specifier::N'; did you mean '::using_suggestion_val_dropped_specifier::EFG'?}}
}
namespace using_suggestion_member_ty {
class CCC { public: typedef int AAA; }; // expected-note {{'AAA' declared here}}
class DDD : public CCC { public: using CCC::AAB; }; // expected-error {{no member named 'AAB' in 'using_suggestion_member_ty::CCC'; did you mean 'AAA'?}}
}
namespace using_suggestion_member_val {
class CCC { public: void AAA() { } }; // expected-note {{'AAA' declared here}}
class DDD : public CCC { public: using CCC::AAB; }; // expected-error {{no member named 'AAB' in 'using_suggestion_member_val::CCC'; did you mean 'AAA'?}}
}
namespace using_suggestion_member_tyname_ty {
class CCC { public: typedef int AAA; }; // expected-note {{'AAA' declared here}}
class DDD : public CCC { public: using typename CCC::AAB; }; // expected-error {{no member named 'AAB' in 'using_suggestion_member_tyname_ty::CCC'; did you mean 'AAA'?}}
}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/FixIt/fixit-large-file.cpp
|
// Don't modify the source in place, since it might be readonly.
// RUN: cp %s %t.cpp
// RUN: not %clang_cc1 -fixit %t.cpp 2>&1 | FileCheck %s
struct A { int x; };
int foo(A *p) {
return p.x;
}
// CHECK: error: member reference type 'A *' is a pointer; did you mean to use '->'?
// CHECK: note: FIX-IT applied suggested code changes
// CHECK-NOT: error:
// The following comment block makes the file at least 16K, which causes clang
// to mmap it. This caused an issue with clang on Windows, where you cannot
// write a file which is currently mapped.
//
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx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xxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/FixIt/fixit-vexing-parse.cpp
|
// RUN: %clang_cc1 -verify -x c++ %s
// RUN: not %clang_cc1 -fdiagnostics-parseable-fixits -x c++ %s 2>&1 | FileCheck %s
struct S {
int n;
};
struct T {
T();
T(S, S);
int n;
};
struct U {
~U();
int n;
};
struct V {
~V();
};
struct W : V {
};
struct X : U {
};
int F1();
S F2();
namespace N {
void test() {
// CHECK: fix-it:"{{.*}}":{35:9-35:11}:" = {}"
S s1(); // expected-warning {{function declaration}} expected-note {{replace parentheses with an initializer}}
// CHECK: fix-it:"{{.*}}":{39:9-39:10}:";"
// CHECK: fix-it:"{{.*}}":{40:7-40:9}:" = {}"
S s2, // expected-note {{change this ',' to a ';' to call 'F2'}}
F2(); // expected-warning {{function declaration}} expected-note {{replace parentheses with an initializer}}
// CHECK: fix-it:"{{.*}}":{44:9-44:11}:""
// CHECK: fix-it:"{{.*}}":{45:9-45:11}:""
T t1(), // expected-warning {{function declaration}} expected-note {{remove parentheses}}
t2(); // expected-warning {{function declaration}} expected-note {{remove parentheses}}
// Suggest parentheses only around the first argument.
// CHECK: fix-it:"{{.*}}":{50:10-50:10}:"("
// CHECK: fix-it:"{{.*}}":{50:13-50:13}:")"
T t3(S(), S()); // expected-warning {{disambiguated as a function declaration}} expected-note {{add a pair of parentheses}}
// Check fixit position for pathological case
// CHECK: fix-it:"{{.*}}":{56:11-56:11}:"("
// CHECK: fix-it:"{{.*}}":{56:20-56:20}:")"
float k[1];
int l(int(k[0])); // expected-warning {{disambiguated as a function declaration}} expected-note {{add a pair of parentheses}}
// Don't emit warning and fixit because this must be a function declaration due to void return type.
typedef void VO;
VO m(int (*p)[4]);
// Don't emit warning and fixit because direct initializer is not permitted here.
if (int n(int())){} // expected-error {{function type is not allowed here}} expected-error {{condition must have an initializer}}
// CHECK: fix-it:"{{.*}}":{66:8-66:10}:" = {}"
U u(); // expected-warning {{function declaration}} expected-note {{replace parentheses with an initializer}}
// CHECK: fix-it:"{{.*}}":{69:8-69:10}:""
V v(); // expected-warning {{function declaration}} expected-note {{remove parentheses}}
// CHECK: fix-it:"{{.*}}":{72:8-72:10}:""
W w(); // expected-warning {{function declaration}} expected-note {{remove parentheses}}
// TODO: Removing the parens here would not initialize U::n.
// Maybe suggest an " = X()" initializer for this case?
// Maybe suggest removing the parens anyway?
X x(); // expected-warning {{function declaration}}
// CHECK: fix-it:"{{.*}}":{80:11-80:13}:" = 0"
int n1(); // expected-warning {{function declaration}} expected-note {{replace parentheses with an initializer}}
// CHECK: fix-it:"{{.*}}":{84:11-84:12}:";"
// CHECK: fix-it:"{{.*}}":{85:7-85:9}:" = 0"
int n2, // expected-note {{change this ',' to a ';' to call 'F1'}}
F1(); // expected-warning {{function declaration}} expected-note {{replace parentheses with an initializer}}
// CHECK: fix-it:"{{.*}}":{88:13-88:15}:" = 0.0"
double d(); // expected-warning {{function declaration}} expected-note {{replace parentheses with an initializer}}
typedef void *Ptr;
// CHECK: fix-it:"{{.*}}":{93:10-93:12}:" = 0"
Ptr p(); // expected-warning {{function declaration}} expected-note {{replace parentheses with an initializer}}
#define NULL 0
// CHECK: fix-it:"{{.*}}":{97:10-97:12}:" = NULL"
Ptr p(); // expected-warning {{function declaration}} expected-note {{replace parentheses with an initializer}}
// CHECK: fix-it:"{{.*}}":{100:11-100:13}:" = false"
bool b(); // expected-warning {{function declaration}} expected-note {{replace parentheses with an initializer}}
// CHECK: fix-it:"{{.*}}":{103:11-103:13}:" = '\\0'"
char c(); // expected-warning {{function declaration}} expected-note {{replace parentheses with an initializer}}
// CHECK: fix-it:"{{.*}}":{106:15-106:17}:" = L'\\0'"
wchar_t wc(); // expected-warning {{function declaration}} expected-note {{replace parentheses with an initializer}}
}
}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/FixIt/fixit-include.h
|
// This file is purposefully left empty
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/FixIt/fixit-unicode.c
|
// This file contains code and checks, that should work on any platform.
// There's a set of additional checks for systems with proper support of UTF-8
// on the standard output in fixit-unicode-with-utf8-output.c.
// RUN: not %clang_cc1 -fsyntax-only %s 2>&1 | FileCheck -strict-whitespace %s
// RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck -check-prefix=CHECK-MACHINE %s
struct Foo {
int bar;
};
// PR13312
void test1() {
struct Foo foo;
foo.bar = 42☃
// CHECK: error: non-ASCII characters are not allowed outside of literals and identifiers
// CHECK: {{^ \^}}
// CHECK: error: expected ';' after expression
// Make sure we emit the fixit right in front of the snowman.
// CHECK: {{^ \^}}
// CHECK: {{^ ;}}
// CHECK-MACHINE: fix-it:"{{.*}}":{[[@LINE-8]]:15-[[@LINE-8]]:18}:""
// CHECK-MACHINE: fix-it:"{{.*}}":{[[@LINE-9]]:15-[[@LINE-9]]:15}:";"
}
int printf(const char *, ...);
void test2() {
printf("∆: %d", 1L);
// CHECK: warning: format specifies type 'int' but the argument has type 'long'
// Don't crash emitting a fixit after the delta.
// CHECK: printf("
// CHECK: : %d", 1L);
// Unfortunately, we can't actually check the location of the printed fixit,
// because different systems will render the delta differently (either as a
// character, or as <U+2206>.) The fixit should line up with the %d regardless.
// CHECK-MACHINE: fix-it:"{{.*}}":{[[@LINE-9]]:16-[[@LINE-9]]:18}:"%ld"
}
void test3() {
int กssss = 42;
int a = กsss; // expected-error{{use of undeclared identifier 'กsss'; did you mean 'กssss'?}}
// CHECK: {{^ \^}}
// CHECK: {{^ [^ ]+ssss}}
// CHECK-MACHINE: fix-it:"{{.*}}":{[[@LINE-3]]:11-[[@LINE-3]]:17}:"\340\270\201ssss"
int ssกss = 42;
int b = ssกs; // expected-error{{use of undeclared identifier 'ssกs'; did you mean 'ssกss'?}}
// CHECK: {{^ \^}}
// CHECK: {{^ ss.+ss}}
// CHECK-MACHINE: fix-it:"{{.*}}":{[[@LINE-3]]:11-[[@LINE-3]]:17}:"ss\340\270\201ss"
int s一二三 = 42;
int b一二三四五六七 = ss一二三; // expected-error{{use of undeclared identifier 'ss一二三'; did you mean 's一二三'?}}
// CHECK-MACHINE: fix-it:"{{.*}}":{[[@LINE-1]]:32-[[@LINE-1]]:43}:"s\344\270\200\344\272\214\344\270\211"
int sssssssssก = 42;
int c = sssssssss; // expected-error{{use of undeclared identifier 'sssssssss'; did you mean 'sssssssssก'?}}
// CHECK: {{^ \^}}
// CHECK: {{^ sssssssss.+}}
// CHECK-MACHINE: fix-it:"{{.*}}":{[[@LINE-3]]:11-[[@LINE-3]]:20}:"sssssssss\340\270\201"
}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/FixIt/fixit-pmem.cpp
|
// RUN: cp %s %t
// RUN: %clang_cc1 -pedantic -fixit -x c++ %t
// RUN: %clang_cc1 -fsyntax-only -pedantic -Werror -x c++ %t
// XFAIL: *
/* This is a test of the various code modification hints that are
provided as part of warning or extension diagnostics. All of the
warnings will be fixed by -fixit, and the resulting file should
compile cleanly with -Werror -pedantic. */
struct S {
int i;
};
int foo(int S::* ps, S s, S* p)
{
p.*ps = 1;
return s->*ps;
}
void foo1(int (S::*ps)(), S s, S* p)
{
(p.*ps)();
(s->*ps)();
}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/FixIt/no-fixit.cpp
|
// RUN: not %clang_cc1 -fdiagnostics-parseable-fixits -x c++ -std=c++11 %s 2>&1 | FileCheck %s
// test that the diagnostics produced by this code do not include fixit hints
// CHECK-NOT: fix-it:
template<template<typename> +> void func();
struct {
void i() {
(void)&i;
}
} x;
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/FixIt/typo-location-bugs.cpp
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
// RUN: cp %s %t
// RUN: not %clang_cc1 -fsyntax-only -fixit -x c++ %t
// RUN: %clang_cc1 -fsyntax-only -pedantic -Werror -x c++ %t
namespace dcl_fct_default_p10 {
struct A {
virtual void f(int a = 7); // expected-note{{'A::f' declared here}}
};
struct B : public A {
void f(int a);
};
void m() {
B* pb = new B;
A* pa = pb;
pa->f(); // OK, calls pa->B::f(7)
pb->f(); // expected-error{{too few arguments to function call, expected 1, have 0; did you mean 'A::f'?}}
}
}
namespace PR18608 {
struct A {
virtual void f() const;
virtual void f(int x) const; // expected-note{{'A::f' declared here}}
};
struct B : public A {
virtual void f() const;
};
void test(B b) {
b.f(1); // expected-error{{too many arguments to function call, expected 0, have 1; did you mean 'A::f'?}}
}
}
namespace PR20626 {
class A {
public:
void Foo(){}; // expected-note{{'Foo' declared here}}
};
class B {};
class C : public A, public B {
void Run() {
B::Foo(); // expected-error{{no member named 'Foo' in 'PR20626::B'; did you mean simply 'Foo'?}}
}
};
}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/FixIt/fixit-suffix.c
|
// RUN: cp %s %t.extrasuffix
// RUN: %clang_cc1 -fixit=fixed -x c %t.extrasuffix
// RUN: %clang_cc1 -Werror -pedantic -x c %t.fixed.extrasuffix
_Complex cd;
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/FixIt/typo-crash.cpp
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
// FIXME: The diagnostics and recovery here are very, very poor.
// PR10355
template<typename T> void template_id1() { // expected-note {{'template_id1' declared here}} \
// expected-note {{possible target for call}}
template_id2<> t; // expected-error {{no template named 'template_id2'; did you mean 'template_id1'?}} \
// expected-error {{expected ';' after expression}} \
// expected-error {{reference to overloaded function could not be resolved; did you mean to call it?}} \
// expected-error {{use of undeclared identifier 't'}}
}
// FIXME: It would be nice if we could get this correction right.
namespace PR12297 {
namespace A {
typedef short T;
namespace B {
typedef short T;
T global(); // expected-note {{'::PR12297::global' declared here}}
}
}
using namespace A::B;
// FIXME: Adding '::PR12297::' is not needed as removing 'A::' is sufficient
T A::global(); // expected-error {{out-of-line declaration of 'global' does not match any declaration in namespace 'PR12297::A'; did you mean '::PR12297::global'?}}
}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/FixIt/fixit-nullability-declspec.cpp
|
// RUN: %clang_cc1 -fblocks -Werror=nullability-declspec -x c++ -verify %s
// RUN: cp %s %t
// RUN: not %clang_cc1 -fixit -fblocks -Werror=nullability-declspec -x c++ %t
// RUN: %clang_cc1 -fblocks -Werror=nullability-declspec -x c++ %t
_Nullable int *ip1; // expected-error{{nullability specifier '_Nullable' cannot be applied to non-pointer type 'int'; did you mean to apply the specifier to the pointer?}}
_Nullable int (*fp1)(int); // expected-error{{nullability specifier '_Nullable' cannot be applied to non-pointer type 'int'; did you mean to apply the specifier to the function pointer?}}
_Nonnull int (^bp1)(int); // expected-error{{nullability specifier '_Nonnull' cannot be applied to non-pointer type 'int'; did you mean to apply the specifier to the block pointer?}}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/FixIt/fixit-errors.c
|
// RUN: %clang_cc1 -fsyntax-only -pedantic -verify %s
// RUN: cp %s %t
// RUN: not %clang_cc1 -pedantic -fixit -x c %t
// RUN: %clang_cc1 -pedantic -Werror -Wno-invalid-noreturn -x c %t
/* This is a test of the various code modification hints that are
provided as part of warning or extension diagnostics. All of the
warnings will be fixed by -fixit, and the resulting file should
compile cleanly with -Werror -pedantic. */
struct s; // expected-note{{previous use is here}}
union s *s1; // expected-error{{use of 's' with tag type that does not match previous declaration}}
struct Point {
float x, y, z;
};
struct Point *get_origin();
void test_point() {
(void)get_origin->x; // expected-error {{base of member reference is a function; perhaps you meant to call it with no arguments?}}
}
void noreturn_1() _Noreturn; // expected-error {{must precede function declarator}}
void noreturn_1() {
return; // expected-warning {{should not return}}
}
void noreturn_2() _Noreturn { // expected-error {{must precede function declarator}}
return; // expected-warning {{should not return}}
}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/FixIt/fixit-unicode-with-utf8-output.c
|
// This test is an additional set of checks for the fixit-unicode.c test for
// systems capable of outputting Unicode characters to the standard output in
// the UTF-8 encoding.
// RUN: not %clang_cc1 -fsyntax-only %S/fixit-unicode.c 2>&1 | FileCheck -strict-whitespace %s
// REQUIRES: utf8-capable-terminal
// CHECK: warning: format specifies type 'int' but the argument has type 'long'
// CHECK: {{^ printf\("∆: %d", 1L\);}}
// CHECK: {{^ ~~ \^~}}
// CHECK: error: use of undeclared identifier 'กsss'; did you mean 'กssss'?
// CHECK: {{^ \^}}
// CHECK: {{^ กssss}}
// CHECK: error: use of undeclared identifier 'ssกs'; did you mean 'ssกss'?
// CHECK: {{^ \^}}
// CHECK: {{^ ssกss}}
// CHECK: error: use of undeclared identifier 'ss一二三'; did you mean 's一二三'?
// CHECK: {{^ \^~~~~~~~}}
// CHECK: {{^ s一二三}}
// CHECK: error: use of undeclared identifier 'sssssssss'; did you mean 'sssssssssก'?
// CHECK: {{^ \^}}
// CHECK: {{^ sssssssssก}}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/FixIt/fixit-cxx11-compat.cpp
|
// RUN: %clang_cc1 -Wc++11-compat -verify -std=c++98 %s
// RUN: cp %s %t
// RUN: not %clang_cc1 -Wc++11-compat -Werror -x c++ -std=c++98 -fixit %t
// RUN: %clang_cc1 -Wall -pedantic-errors -Wc++11-compat -Werror -x c++ -std=c++98 %t
// This is a test of the code modification hints for C++11-compatibility problems.
#define bar "bar"
const char *p = "foo"bar; // expected-warning {{will be treated as a reserved user-defined literal suffix}}
#define _bar "_bar"
const char *q = "foo"_bar; // expected-warning {{will be treated as a user-defined literal suffix}}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/FixIt/fixit.cpp
|
// RUN: %clang_cc1 -pedantic -Wall -Wno-comment -verify -fcxx-exceptions -x c++ %s
// RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-parseable-fixits -x c++ -std=c++11 %s 2>&1 | FileCheck %s
// RUN: cp %s %t
// RUN: not %clang_cc1 -pedantic -Wall -Wno-comment -fcxx-exceptions -fixit -x c++ %t
// RUN: %clang_cc1 -fsyntax-only -pedantic -Wall -Werror -Wno-comment -fcxx-exceptions -x c++ %t
/* This is a test of the various code modification hints that are
provided as part of warning or extension diagnostics. All of the
warnings will be fixed by -fixit, and the resulting file should
compile cleanly with -Werror -pedantic. */
struct C1 {
virtual void f();
static void g();
};
struct C2 : virtual public virtual C1 { }; // expected-error{{duplicate}}
virtual void C1::f() { } // expected-error{{'virtual' can only be specified inside the class definition}}
static void C1::g() { } // expected-error{{'static' can only be specified inside the class definition}}
template<int Value> struct CT { template<typename> struct Inner; }; // expected-note{{previous use is here}}
CT<10 >> 2> ct; // expected-warning{{require parentheses}}
class C3 {
public:
C3(C3, int i = 0); // expected-error{{copy constructor must pass its first argument by reference}}
};
struct CT<0> { }; // expected-error{{'template<>'}}
template<> union CT<1> { }; // expected-error{{tag type}}
struct CT<2>::Inner<int> { }; // expected-error 2{{'template<>'}}
// Access declarations
class A {
protected:
int foo();
};
class B : public A {
A::foo; // expected-warning{{access declarations are deprecated}}
};
void f() throw(); // expected-note{{previous}}
void f(); // expected-warning{{missing exception specification}}
namespace rdar7853795 {
struct A {
bool getNumComponents() const; // expected-note{{declared here}}
void dump() const {
getNumComponenets(); // expected-error{{use of undeclared identifier 'getNumComponenets'; did you mean 'getNumComponents'?}}
}
};
}
namespace rdar7796492 {
struct A { int x, y; A(); };
A::A()
: x(1) y(2) { // expected-error{{missing ',' between base or member initializers}}
}
}
// extra qualification on member
class C {
int C::foo(); // expected-error {{extra qualification}}
};
namespace rdar8488464 {
int x = 0;
int x1 &= 0; // expected-error {{invalid '&=' at end of declaration; did you mean '='?}}
int x2 *= 0; // expected-error {{invalid '*=' at end of declaration; did you mean '='?}}
int x3 += 0; // expected-error {{invalid '+=' at end of declaration; did you mean '='?}}
int x4 -= 0; // expected-error {{invalid '-=' at end of declaration; did you mean '='?}}
int x5 != 0; // expected-error {{invalid '!=' at end of declaration; did you mean '='?}}
int x6 /= 0; // expected-error {{invalid '/=' at end of declaration; did you mean '='?}}
int x7 %= 0; // expected-error {{invalid '%=' at end of declaration; did you mean '='?}}
int x8 <= 0; // expected-error {{invalid '<=' at end of declaration; did you mean '='?}}
int x9 <<= 0; // expected-error {{invalid '<<=' at end of declaration; did you mean '='?}}
int x10 >= 0; // expected-error {{invalid '>=' at end of declaration; did you mean '='?}}
int x11 >>= 0; // expected-error {{invalid '>>=' at end of declaration; did you mean '='?}}
int x12 ^= 0; // expected-error {{invalid '^=' at end of declaration; did you mean '='?}}
int x13 |= 0; // expected-error {{invalid '|=' at end of declaration; did you mean '='?}}
int x14 == 0; // expected-error {{invalid '==' at end of declaration; did you mean '='?}}
void f() {
int x = 0;
(void)x;
int x1 &= 0; // expected-error {{invalid '&=' at end of declaration; did you mean '='?}}
(void)x1;
int x2 *= 0; // expected-error {{invalid '*=' at end of declaration; did you mean '='?}}
(void)x2;
int x3 += 0; // expected-error {{invalid '+=' at end of declaration; did you mean '='?}}
(void)x3;
int x4 -= 0; // expected-error {{invalid '-=' at end of declaration; did you mean '='?}}
(void)x4;
int x5 != 0; // expected-error {{invalid '!=' at end of declaration; did you mean '='?}}
(void)x5;
int x6 /= 0; // expected-error {{invalid '/=' at end of declaration; did you mean '='?}}
(void)x6;
int x7 %= 0; // expected-error {{invalid '%=' at end of declaration; did you mean '='?}}
(void)x7;
int x8 <= 0; // expected-error {{invalid '<=' at end of declaration; did you mean '='?}}
(void)x8;
int x9 <<= 0; // expected-error {{invalid '<<=' at end of declaration; did you mean '='?}}
(void)x9;
int x10 >= 0; // expected-error {{invalid '>=' at end of declaration; did you mean '='?}}
(void)x10;
int x11 >>= 0; // expected-error {{invalid '>>=' at end of declaration; did you mean '='?}}
(void)x11;
int x12 ^= 0; // expected-error {{invalid '^=' at end of declaration; did you mean '='?}}
(void)x12;
int x13 |= 0; // expected-error {{invalid '|=' at end of declaration; did you mean '='?}}
(void)x13;
int x14 == 0; // expected-error {{invalid '==' at end of declaration; did you mean '='?}}
(void)x14;
if (int x = 0) { (void)x; }
if (int x1 &= 0) { (void)x1; } // expected-error {{invalid '&=' at end of declaration; did you mean '='?}}
if (int x2 *= 0) { (void)x2; } // expected-error {{invalid '*=' at end of declaration; did you mean '='?}}
if (int x3 += 0) { (void)x3; } // expected-error {{invalid '+=' at end of declaration; did you mean '='?}}
if (int x4 -= 0) { (void)x4; } // expected-error {{invalid '-=' at end of declaration; did you mean '='?}}
if (int x5 != 0) { (void)x5; } // expected-error {{invalid '!=' at end of declaration; did you mean '='?}}
if (int x6 /= 0) { (void)x6; } // expected-error {{invalid '/=' at end of declaration; did you mean '='?}}
if (int x7 %= 0) { (void)x7; } // expected-error {{invalid '%=' at end of declaration; did you mean '='?}}
if (int x8 <= 0) { (void)x8; } // expected-error {{invalid '<=' at end of declaration; did you mean '='?}}
if (int x9 <<= 0) { (void)x9; } // expected-error {{invalid '<<=' at end of declaration; did you mean '='?}}
if (int x10 >= 0) { (void)x10; } // expected-error {{invalid '>=' at end of declaration; did you mean '='?}}
if (int x11 >>= 0) { (void)x11; } // expected-error {{invalid '>>=' at end of declaration; did you mean '='?}}
if (int x12 ^= 0) { (void)x12; } // expected-error {{invalid '^=' at end of declaration; did you mean '='?}}
if (int x13 |= 0) { (void)x13; } // expected-error {{invalid '|=' at end of declaration; did you mean '='?}}
if (int x14 == 0) { (void)x14; } // expected-error {{invalid '==' at end of declaration; did you mean '='?}}
}
}
template <class A>
class F1 {
public:
template <int B>
class Iterator {
};
};
template<class T>
class F2 {
typename F1<T>:: /*template*/ Iterator<0> Mypos; // expected-error {{use 'template' keyword to treat 'Iterator' as a dependent template name}}
};
template <class T>
void f(){
typename F1<T>:: /*template*/ Iterator<0> Mypos; // expected-error {{use 'template' keyword to treat 'Iterator' as a dependent template name}}
}
// Tests for &/* fixits radar 7113438.
class AD {};
class BD: public AD {};
void test (BD &br) {
AD* aPtr;
BD b;
aPtr = b; // expected-error {{assigning to 'AD *' from incompatible type 'BD'; take the address with &}}
aPtr = br; // expected-error {{assigning to 'AD *' from incompatible type 'BD'; take the address with &}}
}
void foo1() const {} // expected-error {{non-member function cannot have 'const' qualifier}}
void foo2() volatile {} // expected-error {{non-member function cannot have 'volatile' qualifier}}
void foo3() const volatile {} // expected-error {{non-member function cannot have 'const volatile' qualifier}}
struct S { void f(int, char); };
int itsAComma,
itsAComma2 = 0,
oopsAComma(42), // expected-error {{expected ';' at end of declaration}}
AD oopsMoreCommas() {
static int n = 0, // expected-error {{expected ';' at end of declaration}}
static char c,
&d = c, // expected-error {{expected ';' at end of declaration}}
S s, // expected-error {{expected ';' at end of declaration}}
s.f(n, d);
AD ad, // expected-error {{expected ';' at end of declaration}}
return ad;
}
struct MoreAccidentalCommas {
int a : 5,
b : 7,
: 4, // expected-error {{expected ';' at end of declaration}}
char c, // expected-error {{expected ';' at end of declaration}}
double d, // expected-error {{expected ';' at end of declaration}}
MoreAccidentalCommas *next, // expected-error {{expected ';' at end of declaration}}
public:
int k, // expected-error {{expected ';' at end of declaration}}
friend void f(MoreAccidentalCommas) {}
int k2, // expected-error {{expected ';' at end of declaration}}
virtual void g(), // expected-error {{expected ';' at end of declaration}}
};
template<class T> struct Mystery;
template<class T> typedef Mystery<T>::type getMysteriousThing() { // \
expected-error {{function definition declared 'typedef'}} \
expected-error {{missing 'typename' prior to dependent}}
return Mystery<T>::get();
}
template<template<typename> Foo, // expected-error {{template template parameter requires 'class' after the parameter list}}
template<typename> typename Bar, // expected-warning {{template template parameter using 'typename' is a C++1z extension}}
template<typename> struct Baz> // expected-error {{template template parameter requires 'class' after the parameter list}}
void func();
namespace ShadowedTagType {
class Foo {
public:
enum Bar { X, Y };
void SetBar(Bar bar);
Bar Bar(); // expected-note 2 {{enum 'Bar' is hidden by a non-type declaration of 'Bar' here}}
private:
Bar bar_; // expected-error {{must use 'enum' tag to refer to type 'Bar' in this scope}}
};
void Foo::SetBar(Bar bar) { bar_ = bar; } // expected-error {{must use 'enum' tag to refer to type 'Bar' in this scope}}
}
#define NULL __null
char c = NULL; // expected-warning {{implicit conversion of NULL constant to 'char'}}
double dbl = NULL; // expected-warning {{implicit conversion of NULL constant to 'double'}}
namespace arrow_suggest {
template <typename T>
class wrapped_ptr {
public:
wrapped_ptr(T* ptr) : ptr_(ptr) {}
T* operator->() { return ptr_; }
private:
T *ptr_;
};
class Worker {
public:
void DoSomething();
};
void test() {
wrapped_ptr<Worker> worker(new Worker);
worker.DoSomething(); // expected-error {{no member named 'DoSomething' in 'arrow_suggest::wrapped_ptr<arrow_suggest::Worker>'; did you mean to use '->' instead of '.'?}}
}
} // namespace arrow_suggest
// Make sure fixing namespace-qualified identifiers functions properly with
// namespace-aware typo correction/
namespace redecl_typo {
namespace Foo {
void BeEvil(); // expected-note {{'BeEvil' declared here}}
}
namespace Bar {
namespace Foo {
bool isGood(); // expected-note {{'Bar::Foo::isGood' declared here}}
void beEvil();
}
}
bool Foo::isGood() { // expected-error {{out-of-line definition of 'isGood' does not match any declaration in namespace 'redecl_typo::Foo'; did you mean 'Bar::Foo::isGood'?}}
return true;
}
void Foo::beEvil() {} // expected-error {{out-of-line definition of 'beEvil' does not match any declaration in namespace 'redecl_typo::Foo'; did you mean 'BeEvil'?}}
}
// Test behavior when a template-id is ended by a token which starts with '>'.
namespace greatergreater {
template<typename T> struct S { S(); S(T); };
void f(S<int>=0); // expected-error {{a space is required between a right angle bracket and an equals sign (use '> =')}}
// FIXME: The fix-its here overlap so -fixit mode can't apply the second one.
//void f(S<S<int>>=S<int>());
struct Shr {
template<typename T> Shr(T);
template<typename T> void operator >>=(T);
};
template<template<typename>> struct TemplateTemplateParam; // expected-error {{requires 'class'}}
template<typename T> void t();
void g() {
void (*p)() = &t<int>;
(void)(&t<int>==p); // expected-error {{use '> ='}}
(void)(&t<int>>=p); // expected-error {{use '> >'}}
(void)(&t<S<int>>>=p); // expected-error {{use '> >'}}
(Shr)&t<S<int>>>>=p; // expected-error {{use '> >'}}
// FIXME: We correct this to '&t<int> > >= p;' not '&t<int> >>= p;'
//(Shr)&t<int>>>=p;
// FIXME: The fix-its here overlap.
//(void)(&t<S<int>>==p);
}
}
class foo {
static void test() {
(void)&i; // expected-error{{must explicitly qualify name of member function when taking its address}}
}
int i();
};
namespace dtor_fixit {
class foo {
~bar() { } // expected-error {{expected the class name after '~' to name a destructor}}
// CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:6-[[@LINE-1]]:9}:"foo"
};
class bar {
~bar();
};
~bar::bar() {} // expected-error {{'~' in destructor name should be after nested name specifier}}
// CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:3-[[@LINE-1]]:4}:""
// CHECK: fix-it:"{{.*}}":{[[@LINE-2]]:9-[[@LINE-2]]:9}:"~"
}
namespace PR5066 {
template<typename T> struct X {};
X<int *p> x; // expected-error {{type-id cannot have a name}}
}
namespace PR5898 {
class A {
public:
const char *str();
};
const char* foo(A &x)
{
return x.str.(); // expected-error {{unexpected '.' in function call; perhaps remove the '.'?}}
}
bool bar(A x, const char *y) {
return foo->(x) == y; // expected-error {{unexpected '->' in function call; perhaps remove the '->'?}}
}
}
namespace PR15045 {
class Cl0 {
public:
int a;
};
int f() {
Cl0 c;
return c->a; // expected-error {{member reference type 'PR15045::Cl0' is not a pointer; did you mean to use '.'?}}
}
}
namespace curly_after_base_clause {
struct A { void f(); };
struct B : A // expected-error{{expected '{' after base class list}}
// CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:13-[[@LINE-1]]:13}:" {"
int i;
};
struct C : A // expected-error{{expected '{' after base class list}}
// CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:13-[[@LINE-1]]:13}:" {"
using A::f;
};
struct D : A // expected-error{{expected '{' after base class list}}
// CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:13-[[@LINE-1]]:13}:" {"
protected:
};
struct E : A // expected-error{{expected '{' after base class list}}
// CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:13-[[@LINE-1]]:13}:" {"
template<typename T> struct inner { };
};
struct F : A // expected-error{{expected '{' after base class list}}
// CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:13-[[@LINE-1]]:13}:" {"
F() { }
};
#if __cplusplus >= 201103L
struct G : A // expected-error{{expected '{' after base class list}}
// CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:13-[[@LINE-1]]:13}:" {"
constexpr G(int) { }
};
struct H : A // expected-error{{expected '{' after base class list}}
// CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:13-[[@LINE-1]]:13}:" {"
static_assert(true, "");
};
#endif
}
struct conversion_operator {
conversion_operator::* const operator int(); // expected-error {{put the complete type after 'operator'}}
// CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:3-[[@LINE-1]]:32}:""
// CHECK: fix-it:"{{.*}}":{[[@LINE-2]]:44-[[@LINE-2]]:44}:" conversion_operator::* const"
};
struct const_zero_init {
int a;
};
const const_zero_init czi; // expected-error {{default initialization of an object of const type 'const const_zero_init'}}
// CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:26-[[@LINE-1]]:26}:"{}"
int use_czi = czi.a;
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/FixIt/fixit-eof-space.c
|
// RUN: not %clang_cc1 %s -fsyntax-only -fdiagnostics-parseable-fixits 2>&1 | FileCheck %s
// vim: set binary noeol:
// This file intentionally ends without a \n on the last line. Make sure your
// editor doesn't add one. The trailing space is also intentional.
// CHECK: :9:8: warning: duplicate 'extern' declaration specifier
// CHECK: fix-it:"{{.*}}":{9:8-9:15}:""
extern extern
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/FixIt/fixit-cxx1y-compat.cpp
|
// RUN: %clang_cc1 -verify -std=c++11 %s
// RUN: cp %s %t
// RUN: %clang_cc1 -x c++ -std=c++11 -fixit %t
// RUN: %clang_cc1 -Wall -pedantic-errors -Werror -x c++ -std=c++11 %t
// RUN: %clang_cc1 -Wall -pedantic-errors -Werror -x c++ -std=c++1y %t
// This is a test of the code modification hints for C++1y-compatibility problems.
struct S {
constexpr int &f(); // expected-warning {{'constexpr' non-static member function will not be implicitly 'const' in C++14; add 'const' to avoid a change in behavior}}
int &f();
};
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/FixIt/no-macro-fixit.c
|
// RUN: %clang_cc1 -pedantic -fixit -x c %s
// rdar://9091893
#define va_arg(ap, type) __builtin_va_arg(ap, type)
typedef __builtin_va_list va_list;
void myFunc() {
va_list values;
int value;
while (value = va_arg(values, int)) { // expected-warning {{using the result of an assignment as a condition without parentheses}} \
// expected-note {{use '==' to turn this assignment into an equality comparison}} \
// expected-note {{place parentheses around the assignment to silence this warning}}
}
}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/FixIt/messages.cpp
|
// RUN: not %clang_cc1 -fsyntax-only -std=c++11 2>&1 %s | FileCheck -strict-whitespace %s
struct A {
unsigned int a;
};
// PR10696
void testOverlappingInsertions(int b) {
A var = { b };
// CHECK: A var = { b };
// CHECK: ^
// CHECK: static_cast<unsigned int>( )
}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/FixIt/typo.c
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
// RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s
// RUN: cp %s %t
// RUN: not %clang_cc1 -fsyntax-only -fixit -x c %t
// RUN: %clang_cc1 -fsyntax-only -pedantic -Werror -x c %t
struct Point {
float x, y;
};
struct Rectangle {
struct Point top_left, // expected-note{{'top_left' declared here}}
bottom_right;
};
enum Color { Red, Green, Blue };
struct Window {
struct Rectangle bounds; // expected-note{{'bounds' declared here}}
enum Color color;
};
struct Window window = {
.bunds. // expected-error{{field designator 'bunds' does not refer to any field in type 'struct Window'; did you mean 'bounds'?}}
// CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:4-[[@LINE-1]]:9}:"bounds"
topleft.x = 3.14, // expected-error{{field designator 'topleft' does not refer to any field in type 'struct Rectangle'; did you mean 'top_left'?}}
// CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:3-[[@LINE-1]]:10}:"top_left"
2.71818, 5.0, 6.0, Red
};
void test() {
Rectangle r1; // expected-error{{must use 'struct' tag to refer to type 'Rectangle'}}
// CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:3-[[@LINE-1]]:3}:"struct "
r1.top_left.x = 0;
typedef struct Rectangle Rectangle; // expected-note{{'Rectangle' declared here}}
rectangle *r2 = &r1; // expected-error{{unknown type name 'rectangle'; did you mean 'Rectangle'?}}
// CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:3-[[@LINE-1]]:12}:"Rectangle"
r2->top_left.y = 0;
unsinged *ptr = 0; // expected-error{{use of undeclared identifier 'unsinged'; did you mean 'unsigned'?}}
// CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:3-[[@LINE-1]]:11}:"unsigned"
*ptr = 17;
}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/FixIt/fixit-uninit.c
|
// RUN: %clang_cc1 -fsyntax-only -Wuninitialized -verify %s
// RUN: %clang_cc1 -fsyntax-only -Wuninitialized -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s
_Bool test_bool_no_false() {
_Bool var; // expected-note {{initialize}}
// CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:12-[[@LINE-1]]:12}:" = 0"
return var; // expected-warning {{uninitialized}}
}
#define bool _Bool
#define false (bool)0
#define true (bool)1
bool test_bool_with_false() {
bool var; // expected-note {{initialize}}
// CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:11-[[@LINE-1]]:11}:" = false"
return var; // expected-warning {{uninitialized}}
}
bool test_bool_with_false_undefined() {
bool
#undef false
var; // expected-note {{initialize}}
// CHECK: fix-it:"{{.*}}":{[[@LINE-1]]:10-[[@LINE-1]]:10}:" = 0"
return var; // expected-warning {{uninitialized}}
}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/FixIt/fixit-newline-style.c
|
// RUN: %clang_cc1 -pedantic -Wunused-label -x c %s 2>&1 | FileCheck %s -strict-whitespace
// This file intentionally uses a CRLF newline style
// <rdar://problem/12639047>
// CHECK: warning: unused label 'ddd'
// CHECK-NEXT: {{^ ddd:}}
// CHECK-NEXT: {{^ \^~~~$}}
void f() {
ddd:
;
}
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/FixIt/no-diagnostics-fixit-info.c
|
// RUN: not %clang_cc1 %s 2>&1 | FileCheck -check-prefix=WITH-FIXIT %s
// RUN: not %clang_cc1 -fno-diagnostics-fixit-info %s 2>&1 | FileCheck -check-prefix=WITHOUT-FIXIT %s
struct Foo {
int x;
}
// WITH-FIXIT: error: expected ';' after struct
// WITH-FIXIT-NEXT: }
// WITH-FIXIT-NEXT: ^
// WITH-FIXIT-NEXT: ;
// WITHOUT-FIXIT: error: expected ';' after struct
// WITHOUT-FIXIT-NEXT: }
// WITHOUT-FIXIT-NEXT: ^
// WITHOUT-FIXIT-NOT: ;
|
0 |
repos/DirectXShaderCompiler/tools/clang/test
|
repos/DirectXShaderCompiler/tools/clang/test/FixIt/fixit-unrecoverable.c
|
/* FIXME: This is a file containing various typos for which we can
suggest corrections but are unable to actually recover from
them. Ideally, we would eliminate all such cases and move these
tests elsewhere. */
// RUN: %clang_cc1 -fsyntax-only -verify %s
unsinged x = 17; // expected-error{{unknown type name 'unsinged'; did you mean 'unsigned'?}}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.