file_text string | language string | file_name string |
|---|---|---|
/*
Test to see if a particular fix should be applied to a header file.
Copyright (C) 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2009
Free Software Foundation, Inc.
= = = = = = = = = = = = = = = = = = = = = = = = =
NOTE TO DEVELOPERS
The routines you write here must work closely with fixincl.c.
Here are t... | C | fixfixes.c |
/* Software floating-point emulation.
Convert a IEEE half to 64bit signed integer
Copyright (C) 2022-2024 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
... | C | fixhfdi.c |
/* Software floating-point emulation.
Convert a IEEE half to 64bit signed integer
Copyright (C) 2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Lic... | C | fixhfdi_1.c |
/* Software floating-point emulation.
Convert a IEEE half to 64bit signed integer
Copyright (C) 2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Lic... | C | fixhfdi_2.c |
/* Software floating-point emulation.
Convert a IEEE half to 32bit signed integer
Copyright (C) 2022-2024 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
... | C | fixhfsi.c |
/* Software floating-point emulation.
Convert a IEEE half to 32bit signed integer
Copyright (C) 2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Lic... | C | fixhfsi_1.c |
/* Software floating-point emulation.
Convert a IEEE half to 32bit signed integer
Copyright (C) 2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Lic... | C | fixhfsi_2.c |
/* Software floating-point emulation.
Convert IEEE half to 128bit signed integer
Copyright (C) 2007-2024 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
... | C | fixhfti.c |
/* Software floating-point emulation.
Convert IEEE half to 128bit signed integer
Copyright (C) 2007-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
... | C | fixhfti_1.c |
/* Software floating-point emulation.
Convert IEEE half to 128bit signed integer
Copyright (C) 2007-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
... | C | fixhfti_2.c |
/* Software floating-point emulation.
Convert IEEE half to 128bit signed integer
Copyright (C) 2007-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
... | C | fixhfti_3.c |
/* DO NOT EDIT THIS FILE.
It has been auto-edited by fixincludes from:
"fixinc/tests/inc/fixinc-test-limits.h"
This had to be done to correct non-standard usages in the
original, manufacturer supplied header file. */
#if defined( HPUX10_CPP_POW_INLINE_CHECK )
#endif /* HPUX10_CPP_POW_INLINE_CHECK... | C | fixinc-test-limits.h |
/* DO NOT EDIT THIS FILE.
It has been auto-edited by fixincludes from:
"fixinc/tests/inc/fixinc-test-limits.h"
This had to be done to correct non-standard usages in the
original, manufacturer supplied header file. */
#if defined( HPUX10_CPP_POW_INLINE_CHECK )
#endif /* HPUX10_CPP_POW_INLINE_CHECK... | C | fixinc-test-limits_1.h |
/* Install modified versions of certain ANSI-incompatible system header
files which are fixed to work correctly with ANSI C and placed in a
directory that GCC will search.
Copyright (C) 1997, 1998, 1999, 2000, 2004, 2009, 2012
Free Software Foundation, Inc.
This file is part of GCC.
GCC is free software;... | C | fixincl.c |
[= AutoGen5 Template -*- Mode: C -*-
x=fixincl.x =]
[=
(if (version-compare >= autogen-version "5.18.1")
(dne "-D" " * " "/* ")
(dne " * " "/* ") ) =]
*/
/* DO NOT SVN-MERGE THIS FILE, EITHER [=
(define re-ct 0) (define max-mach 0) (define ct 0)
(define HACK "") (define Hack "") (define tmp "")
... | C | fixincl.tpl |
[= AutoGen5 Template -*- Mode: C -*-
x=fixincl.x =]
[=
(if (version-compare >= autogen-version "5.18.1")
(dne "-D" " * " "/* ")
(dne " * " "/* ") ) =]
*/
/* DO NOT SVN-MERGE THIS FILE, EITHER [=
(define re-ct 0) (define max-mach 0) (define ct 0)
(define HACK "") (define Hack "") (define tmp "")
... | C | fixincl_1.tpl |
// RUN: %clang_cc1 -fsyntax-only -Wunguarded-availability -fdiagnostics-parseable-fixits -triple x86_64-apple-darwin9 %s 2>&1 | FileCheck %s
__attribute__((availability(macos, introduced=10.12)))
int function(void);
void use() {
function();
// CHECK: fix-it:{{.*}}:{[[@LINE-1]]:3-[[@LINE-1]]:3}:"if (__builtin_availa... | C | fixit-availability.c |
// RUN: %clang_cc1 -fsyntax-only -Wunguarded-availability -fdiagnostics-parseable-fixits -triple x86_64-apple-darwin9 %s 2>&1 | FileCheck %s
__attribute__((availability(macos, introduced=10.12)))
int function(void);
void use() {
function();
// CHECK: fix-it:{{.*}}:{[[@LINE-1]]:3-[[@LINE-1]]:3}:"if (__builtin_availa... | C | fixit-availability_1.c |
/* RUN: cp %s %t
RUN: %clang_cc1 -std=c90 -pedantic -fixit %t
RUN: %clang_cc1 -pedantic -x c -std=c90 -Werror %t
*/
/*
This test passes because clang merely warns for this syntax error even with
-pedantic -Werror -std=c90.
*/
/* This is a test of the various code modification hints that are
provided a... | C | fixit-c90.c |
/* RUN: cp %s %t
RUN: %clang_cc1 -std=c90 -pedantic -fixit %t
RUN: %clang_cc1 -pedantic -x c -std=c90 -Werror %t
*/
/*
This test passes because clang merely warns for this syntax error even with
-pedantic -Werror -std=c90.
*/
/* This is a test of the various code modification hints that are
provided a... | C | fixit-c90_1.c |
/* RUN: cp %s %t
RUN: %clang_cc1 -std=c90 -pedantic -fixit %t
RUN: %clang_cc1 -pedantic -x c -std=c90 -Werror %t
*/
/*
This test passes because clang merely warns for this syntax error even with
-pedantic -Werror -std=c90.
*/
/* This is a test of the various code modification hints that are
provided a... | C | fixit-c90_2.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... | C | 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... | C | fixit-eof-space_1.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... | C | fixit-eof-space_2.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 cleanl... | C | 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 cleanl... | C | fixit-errors-1_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 cleanl... | C | fixit-errors-1_2.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... | C | 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... | C | fixit-errors_1.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... | C | fixit-errors_2.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> // exp... | C | fixit-include.c |
// This file is purposefully left empty
| C | fixit-include.h |
// RUN: %clang_cc1 -fsyntax-only -Wall -pedantic -verify %s
// RUN: mkdir -p %t-dir
// RUN: cp %s %t-dir/fixit-include.c
// RUN: cp %S/fixit-include.h %t-dir/fixit-include.h
// RUN: not %clang_cc1 -fsyntax-only -fixit %t-dir/fixit-include.c
// RUN: %clang_cc1 -Wall -pedantic %t-dir/fixit-include.c
// RUN: not %clang_cc... | C | fixit-include_1.c |
// This file is purposefully left empty
| C | fixit-include_1.h |
// RUN: %clang_cc1 -fsyntax-only -Wall -pedantic -verify %s
// RUN: mkdir -p %t-dir
// RUN: cp %s %t-dir/fixit-include.c
// RUN: cp %S/fixit-include.h %t-dir/fixit-include.h
// RUN: not %clang_cc1 -fsyntax-only -fixit %t-dir/fixit-include.c
// RUN: %clang_cc1 -Wall -pedantic %t-dir/fixit-include.c
// RUN: not %clang_cc... | C | fixit-include_2.c |
// This file is purposefully left empty
| C | fixit-include_2.h |
// 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:
;
}
| C | 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:
;
}
| C | fixit-newline-style_1.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:
;
}
| C | fixit-newline-style_2.c |
// RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s
// Verify that the suggested attribute subject match rules don't include the
// rules that are not applicable in the current language mode.
#pragma clang attribute push (__attribute__((abi_tag("a"))))
// CHECK: fix-it:{{.*}}:{[[... | C | fixit-pragma-attribute.c |
// RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s
// Verify that the suggested attribute subject match rules don't include the
// rules that are not applicable in the current language mode.
#pragma clang attribute push (__attribute__((abi_tag("a"))))
// CHECK: fix-it:{{.*}}:{[[... | C | fixit-pragma-attribute_1.c |
// RUN: %clang_cc1 -fsyntax-only -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s
#pragma pack (push, 1)
#pragma pack()
// CHECK: fix-it:{{.*}}:{[[@LINE-1]]:14-[[@LINE-1]]:14}:"pop"
| C | fixit-pragma-pack.c |
// RUN: %clang_cc1 -fsyntax-only -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s
#pragma pack (push, 1)
#pragma pack()
// CHECK: fix-it:{{.*}}:{[[@LINE-1]]:14-[[@LINE-1]]:14}:"pop"
| C | fixit-pragma-pack_1.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;
| C | 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;
| C | fixit-recompile_1.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;
| C | fixit-recompile_2.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 va... | C | 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
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -Wuninitialized -fblocks -x objective-c -fobjc-arc -DA... | C | fixit-recursive-block_1.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
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -Wuninitialized -fblocks -x objective-c -fobjc-arc -DA... | C | fixit-recursive-block_2.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;
| C | 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;
| C | fixit-suffix_1.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;
| C | fixit-suffix_2.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: w... | C | 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: w... | C | fixit-unicode-with-utf8-output_1.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: w... | C | fixit-unicode-with-utf8-output_2.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 -f... | C | 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 -f... | C | fixit-unicode_1.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 -f... | C | fixit-unicode_2.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; /... | C | 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; /... | C | fixit-uninit_1.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; /... | C | fixit-uninit_2.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 ... | C | 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 ... | C | fixit-unrecoverable_1.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 ... | C | fixit-unrecoverable_2.c |
// RUN: %clang_cc1 -pedantic -Wunused-label -verify -x c %s
// RUN: cp %s %t
// RUN: not %clang_cc1 -pedantic -Wunused-label -fixit -x c %t
// RUN: grep -v CHECK %t > %t2
// RUN: %clang_cc1 -pedantic -Wunused-label -Werror -x c %t
// RUN: FileCheck -input-file=%t2 %t
/* This is a test of the various code modification ... | C | fixit.c |
// RUN: %clang_cc1 -pedantic -Wunused-label -verify -x c %s
// RUN: cp %s %t
// RUN: not %clang_cc1 -pedantic -Wunused-label -fixit -x c %t
// RUN: %clang_cc1 -pedantic -Wunused-label -Werror -x c %t
// RUN: grep -v CHECK %t | FileCheck %t
/* This is a test of the various code modification hints that are
provided a... | C | fixit_1.c |
// RUN: %clang_cc1 -pedantic -Wunused-label -verify -x c %s
// RUN: cp %s %t
// RUN: not %clang_cc1 -pedantic -Wunused-label -fixit -x c %t
// RUN: %clang_cc1 -pedantic -Wunused-label -Werror -x c %t
// RUN: grep -v CHECK %t | FileCheck %t
/* This is a test of the various code modification hints that are
provided a... | C | fixit_2.c |
/* This is padding (to avoid the output containing DejaGnu directives). */
/* We need -fdiagnostics-show-caret to trigger the ICE. */
/* { dg-options "-fdiagnostics-show-caret -pedantic-errors -Wno-implicit-function-declaration" } */
#line 3482810481 /* { dg-error "line number out of range" } */
/* { dg-begin-mult... | C | fixits-pr84852-1.c |
/* This is padding (to avoid the output containing DejaGnu directives). */
/* We need -fdiagnostics-show-caret to trigger the ICE. */
/* { dg-options "-fdiagnostics-show-caret -pedantic-errors -Wno-implicit-function-declaration" } */
#line 3482810481 /* { dg-error "line number out of range" } */
/* { dg-begin-mult... | C | fixits-pr84852-1_1.c |
/* This is padding (to avoid the output containing DejaGnu directives). */
/* We need -fdiagnostics-show-caret to trigger the ICE. */
/* { dg-options "-fdiagnostics-show-caret -pedantic-errors -Wno-implicit-function-declaration" } */
#line 7777777777 /* { dg-error "line number out of range" } */
/* { dg-begin-mult... | C | fixits-pr84852-2.c |
/* This is padding (to avoid the output containing DejaGnu directives). */
/* We need -fdiagnostics-show-caret to trigger the ICE. */
/* { dg-options "-fdiagnostics-show-caret -pedantic-errors -Wno-implicit-function-declaration" } */
#line 7777777777 /* { dg-error "line number out of range" } */
/* { dg-begin-mult... | C | fixits-pr84852-2_1.c |
/* Support for fixing grammar files.
Copyright (C) 2019-2021 Free Software Foundation, Inc.
This file is part of Bison, the GNU Compiler Compiler.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software... | C | fixits.c |
/* Support for fixing grammar files.
Copyright (C) 2019-2021 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at you... | C | fixits.h |
/* { dg-do compile } */
/* { dg-options "-fdiagnostics-show-caret" } */
struct foo { int x; };
union u { int x; };
/* Verify that we issue a hint for "." used with a ptr to a struct. */
int test_1 (struct foo *ptr)
{
return ptr.x; /* { dg-error "'ptr' is a pointer; did you mean to use '->'?" } */
/* { dg-begin-mu... | C | fixits_1.c |
/* { dg-do compile } */
/* { dg-options "-fdiagnostics-show-caret" } */
struct foo { int x; };
union u { int x; };
/* Verify that we issue a hint for "." used with a ptr to a struct. */
int test_1 (struct foo *ptr)
{
return ptr.x; /* { dg-error "'ptr' is a pointer; did you mean to use '->'?" } */
/* { dg-begin-mu... | C | fixits_2.c |
/* Software floating-point emulation, convert IEEE quad to 128bit signed
integer.
Copyright (C) 2016-2023 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Steven Munroe (munroesj@linux.vnet.ibm.com)
Code is based on the main soft-fp library written by:
Uros Bizja... | C | fixkfti-sw.c |
/* Software floating-point emulation, convert IEEE quad to 128bit signed
integer.
Copyright (C) 2016-2022 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Steven Munroe (munroesj@linux.vnet.ibm.com)
Code is based on the main soft-fp library written by:
Uros Bizja... | C | fixkfti-sw_1.c |
#include <ph.h>
#include <mapimg.h>
#define ARG_OUTFILE 1
PPH_STRING inFile = NULL;
PPH_STRING outFile = NULL;
BOOLEAN NTAPI CommandLineCallback(
_In_opt_ PPH_COMMAND_LINE_OPTION Option,
_In_opt_ PPH_STRING Value,
_In_opt_ PVOID Context
)
{
if (Option)
{
switch (Option... | C | fixlib.c |
/* Install modified versions of certain ANSI-incompatible system header
files which are fixed to work correctly with ANSI C and placed in a
directory that GCC will search.
Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2004, 2009, 2012
Free Software Foundation, Inc.
This file is part of GCC.
GCC is f... | C | fixlib.h |
/* Install modified versions of certain ANSI-incompatible system header
files which are fixed to work correctly with ANSI C and placed in a
directory that GCC will search.
Copyright (C) 1999, 2000, 2001, 2004, 2009 Free Software Foundation, Inc.
This file is part of GCC.
GCC is free software; you can redis... | C | fixlib_1.c |
/* Install modified versions of certain ANSI-incompatible system header
files which are fixed to work correctly with ANSI C and placed in a
directory that GCC will search.
Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2004, 2009, 2012
Free Software Foundation, Inc.
This file is part of GCC.
GCC is f... | C | fixlib_1.h |
// SPDX-License-Identifier: GPL-2.0
/*
* fixmaps for parisc
*
* Copyright (c) 2019 Sven Schnelle <svens@stackframe.org>
*/
#include <linux/kprobes.h>
#include <linux/mm.h>
#include <asm/cacheflush.h>
#include <asm/fixmap.h>
void notrace set_fixmap(enum fixed_addresses idx, phys_addr_t phys)
{
unsigned long vaddr... | C | fixmap.c |
/*
* fixmap.h: compile-time virtual memory allocation
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 1998 Ingo Molnar
*
* Support of BIGMEM added by Gerhard Wichert, Si... | C | fixmap.h |
// SPDX-License-Identifier: GPL-2.0
/*
* fixmaps for parisc
*
* Copyright (c) 2019 Sven Schnelle <svens@stackframe.org>
*/
#include <linux/kprobes.h>
#include <linux/mm.h>
#include <asm/cacheflush.h>
#include <asm/fixmap.h>
void notrace set_fixmap(enum fixed_addresses idx, phys_addr_t phys)
{
unsigned long vaddr... | C | fixmap_1.c |
/*
* fixmap.h: compile-time virtual memory allocation
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 1998 Ingo Molnar
*
* Support of BIGMEM added by Gerhard Wichert, Si... | C | fixmap_1.h |
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (C) 2019 Western Digital Corporation or its affiliates.
*/
#ifndef _ASM_RISCV_FIXMAP_H
#define _ASM_RISCV_FIXMAP_H
#include <linux/kernel.h>
#include <linux/sizes.h>
#include <linux/pgtable.h>
#include <asm/page.h>
#ifdef CONFIG_MMU
/*
* Here we define all the... | C | fixmap_10.h |
/*
* fixmap.h: compile-time virtual memory allocation
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 1998 Ingo Molnar
*
* Support of BIGMEM added by Gerhard Wichert, Si... | C | fixmap_11.h |
/*
* fixmap.h: compile-time virtual memory allocation
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 1998 Ingo Molnar
*
* Support of BIGMEM added by Gerhard Wichert, Si... | C | fixmap_12.h |
/* SPDX-License-Identifier: GPL-2.0 */
/*
* fixmap.h: compile-time virtual memory allocation
*
* Copyright (C) 1998 Ingo Molnar
*
* Copyright 2008 Freescale Semiconductor Inc.
* Port to powerpc added by Kumar Gala
*
* Copyright 2011 Michal Simek <monstr@monstr.eu>
* Copyright 2011 PetaLogix Qld Pty Ltd
* ... | C | fixmap_13.h |
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* OpenRISC Linux
*
* Linux architectural port borrowing liberally from similar works of
* others. All original copyrights apply as per the original source
* declaration.
*
* OpenRISC implementation:
* Copyright (C) 2003 Matjaz Breskvar <phoenix@bsemi.com>
* C... | C | fixmap_14.h |
/*
* fixmap.h: compile-time virtual memory allocation
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 1998 Ingo Molnar
* Copyright (C) 2013 Mark Salter <msalter@redhat.co... | C | fixmap_15.h |
/*
* fixmap.h: compile-time virtual memory allocation
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 1998 Ingo Molnar
*
* Copyright 2008 Freescale Semiconductor Inc.
*... | C | fixmap_16.h |
/*
* fixmap.h: compile-time virtual memory allocation
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 1998 Ingo Molnar
*
* Support of BIGMEM added by Gerhard Wichert, Si... | C | fixmap_17.h |
/* SPDX-License-Identifier: GPL-2.0 */
/*
* fixmap.h: compile-time virtual memory allocation
*
* Copyright (C) 2020-2022 Loongson Technology Corporation Limited
*/
#ifndef _ASM_FIXMAP_H
#define _ASM_FIXMAP_H
#define NR_FIX_BTMAPS 64
#endif
| C | fixmap_18.h |
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_FIXMAP_H
#define _ASM_FIXMAP_H
/*
* This file defines the locations of the fixed mappings on parisc.
*
* All of the values in this file are machine virtual addresses.
*
* All of the values in this file must be <4GB (because of assembly
* loading restrictions). ... | C | fixmap_19.h |
// SPDX-License-Identifier: GPL-2.0
/*
* fixmaps for parisc
*
* Copyright (c) 2019 Sven Schnelle <svens@stackframe.org>
*/
#include <linux/kprobes.h>
#include <linux/mm.h>
#include <asm/cacheflush.h>
#include <asm/fixmap.h>
void notrace set_fixmap(enum fixed_addresses idx, phys_addr_t phys)
{
unsigned long vaddr... | C | fixmap_2.c |
/* SPDX-License-Identifier: GPL-2.0 */
/*
* fixmap.h: compile-time virtual memory allocation
*
* Copyright (C) 2020-2022 Loongson Technology Corporation Limited
*/
#ifndef _ASM_FIXMAP_H
#define _ASM_FIXMAP_H
#define NR_FIX_BTMAPS 64
#endif
| C | fixmap_2.h |
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __ASM_CSKY_FIXMAP_H
#define __ASM_CSKY_FIXMAP_H
#include <asm/page.h>
#include <asm/memory.h>
#ifdef CONFIG_HIGHMEM
#include <linux/threads.h>
#include <asm/kmap_size.h>
#endif
enum fixed_addresses {
#ifdef CONFIG_HAVE_TCM
FIX_TCM = TCM_NR_PAGES,
#endif
#ifdef CONFIG_H... | C | fixmap_20.h |
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Fixmap support for Hexagon - enough to support highmem features
*
* Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
*/
#ifndef _ASM_FIXMAP_H
#define _ASM_FIXMAP_H
/*
* A lot of the fixmap info is already in mem-layout.h
*/
#include <asm/mem-la... | C | fixmap_21.h |
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __UM_FIXMAP_H
#define __UM_FIXMAP_H
#include <asm/processor.h>
#include <asm/archparam.h>
#include <asm/page.h>
#include <linux/threads.h>
/*
* Here we define all the compile-time 'special' virtual
* addresses. The point is to have a constant address at
* compile time... | C | fixmap_22.h |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.