OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:redeclaration
(Results
1 - 25
of
438
) sorted by null
1
2
3
4
5
6
7
8
9
10
11
>>
/external/clang/test/Sema/
memset-invalid.c
3
char memset(); // expected-warning {{incompatible
redeclaration
of library function 'memset'}} expected-note{{'memset' is a builtin with type}}
vfprintf-invalid-redecl.c
6
char vfprintf(); // expected-warning {{incompatible
redeclaration
of library function 'vfprintf'}} expected-note {{'vfprintf' is a builtin}}
implicit-builtin-decl.c
10
void *alloca(__SIZE_TYPE__); //
redeclaration
okay
12
int *calloc(__SIZE_TYPE__, __SIZE_TYPE__); // expected-warning{{incompatible
redeclaration
of library function 'calloc'}} \
21
int malloc(int); // expected-warning{{incompatible
redeclaration
of library function 'malloc'}}
22
int strcpy(int); // expected-warning{{incompatible
redeclaration
of library function 'strcpy'}} \
41
void * realloc(void *p, int size) { // expected-warning{{incompatible
redeclaration
of library function 'realloc'}} \
47
void snprintf(); // expected-warning{{incompatible
redeclaration
of library function 'snprintf'}} \
var-redecl.c
12
extern float outer1; // expected-error{{
redeclaration
of 'outer1' with a different type}}
13
extern float outer2; // expected-error{{
redeclaration
of 'outer2' with a different type}}
43
extern float outer11; // expected-error{{
redeclaration
of 'outer11' with a different type}}
46
extern float outer12; // expected-error{{
redeclaration
of 'outer12' with a different type}}
47
extern float outer13; // expected-error{{
redeclaration
of 'outer13' with a different type}}
70
void g21() { extern int b[4]; } // expected-error{{
redeclaration
of 'b' with a different type: 'int [4]' vs 'int [3]'}}
implicit-builtin-redecl.c
9
void *calloc(int, int, int); // expected-warning{{incompatible
redeclaration
of library function 'calloc'}} \
int-arith-convert.c
4
// Check types are the same through
redeclaration
struct-compat.c
5
extern struct {int a;} x; // expected-error {{
redeclaration
of 'x'}}
extern-redecl.c
49
extern float *calloc(); // expected-warning {{incompatible
redeclaration
of library function}} expected-note {{is a builtin}} expected-note 2 {{previous declaration is here}}
52
float *malloc(); // expected-warning {{incompatible
redeclaration
of library function}} expected-note 2 {{is a builtin}}
57
float *malloc(); // expected-warning {{incompatible
redeclaration
of library function}}
mrtd.c
21
// expected-error@+3 {{
redeclaration
of 'a' with a different type: 'void ((*))(int, int) __attribute__((cdecl))' vs 'void (*)(int, int) __attribute__((stdcall))'}}
31
// expected-error@+3 {{
redeclaration
of 'c' with a different type: 'void ((*))(int, int) __attribute__((stdcall))' vs 'void (*)(int, int)'}}
dllimport.c
98
// Adding an attribute on
redeclaration
.
101
__declspec(dllimport) extern int GlobalRedecl4; // expected-error{{
redeclaration
of 'GlobalRedecl4' cannot add 'dllimport' attribute}}
105
__declspec(dllimport) extern int GlobalRedecl5; // expected-warning{{
redeclaration
of 'GlobalRedecl5' should not add 'dllimport' attribute}}
120
__declspec(dllimport) int LocalRedecl1; // expected-error{{
redeclaration
of 'LocalRedecl1' with a different type: 'int' vs 'float'}}
121
int *__attribute__((dllimport)) LocalRedecl2; // expected-error{{
redeclaration
of 'LocalRedecl2' with a different type: 'int *' vs 'float'}}
122
int LocalRedecl3 __attribute__((dllimport)); // expected-error{{
redeclaration
of 'LocalRedecl3' with a different type: 'int' vs 'float'}}
130
// Local extern
redeclaration
does not drop the attribute.
184
__declspec(dllimport) void redecl4(); // expected-warning{{
redeclaration
of 'redecl4' should not add 'dllimport' attribute}}
188
__declspec(dllimport) void redecl5(); // expected-warning{{
redeclaration
of 'redecl5' should not add 'dllimport' attribute}}
200
// expected-warning@+5{{
redeclaration
of 'redecl7' should not add 'dllimport' attribute}
[
all
...]
/external/clang/test/CodeGen/
ucn-identifiers.c
7
extern void \U000000FCber(int); //
redeclaration
, no warning
/external/clang/test/SemaObjC/
objc2-merge-gc-attribue-decl.m
17
extern __weak id p3; // expected-error {{
redeclaration
of 'p3' with a different type}}
20
extern void * __strong p4; // expected-error {{
redeclaration
of 'p4' with a different type}}
26
extern char* p6; // expected-error {{
redeclaration
of 'p6' with a different type}}
29
extern char* p7; // expected-error {{
redeclaration
of 'p7' with a different type}}
property-atomic-redecl.m
6
// Readonly, atomic public
redeclaration
of property in subclass.
19
// Readonly, atomic public
redeclaration
of property in subclass.
36
// Readonly, atomic public
redeclaration
of property in subclass.
49
// Readonly, atomic public
redeclaration
of property in subclass.
duplicate-property-class-extension.m
12
@property (readwrite) char bar; // expected-error{{illegal
redeclaration
of 'readwrite' property in class extension 'Foo' (perhaps you intended this to be a 'readwrite'
redeclaration
of a 'readonly' public property?)}}
continuation-class-err.m
15
@property(readonly) id object1; // expected-error {{illegal
redeclaration
of property in class extension 'ReadOnly' (attribute must be 'readwrite', while its primary must be 'readonly')}}
34
@property (copy) id foo; // expected-error {{illegal
redeclaration
of property in class extension 'Bar' (attribute must be 'readwrite', while its primary must be 'readonly')}}
35
@property (copy) id fee; // expected-error {{illegal
redeclaration
of property in class extension 'Bar' (attribute must be 'readwrite', while its primary must be 'readonly')}}
/external/clang/test/SemaObjCXX/
objc2-merge-gc-attribue-decl.mm
39
extern __weak id p3; // expected-error {{
redeclaration
of 'p3' with a different type}}
42
extern void * __strong p4; // expected-error {{
redeclaration
of 'p4' with a different type}}
48
extern char* p6; // expected-error {{
redeclaration
of 'p6' with a different type}}
51
extern char* p7; // expected-error {{
redeclaration
of 'p7' with a different type}}
/prebuilts/go/darwin-x86/test/
declbad.go
18
// simple
redeclaration
50
// single
redeclaration
55
// double
redeclaration
62
// triple
redeclaration
/prebuilts/go/linux-x86/test/
declbad.go
18
// simple
redeclaration
50
// single
redeclaration
55
// double
redeclaration
62
// triple
redeclaration
/prebuilts/go/darwin-x86/src/cmd/vet/testdata/
shadow.go
35
i := i // OK: obviously intentional idiomatic
redeclaration
41
switch shadowTemp := shadowTemp.(type) { // OK: obviously intentional idiomatic
redeclaration
46
if shadowTemp := shadowTemp; true { // OK: obviously intentional idiomatic
redeclaration
/prebuilts/go/linux-x86/src/cmd/vet/testdata/
shadow.go
35
i := i // OK: obviously intentional idiomatic
redeclaration
41
switch shadowTemp := shadowTemp.(type) { // OK: obviously intentional idiomatic
redeclaration
46
if shadowTemp := shadowTemp; true { // OK: obviously intentional idiomatic
redeclaration
/external/clang/test/CXX/basic/basic.link/
p6.cpp
26
// This is a
redeclaration
of the same entity, even though it doesn't
37
// FIXME: This is not a
redeclaration
of the prior entity, because
/external/clang/test/SemaCXX/
redeclared-alias-template.cpp
5
template<typename T1, typename T2> using A = T1; // expected-error {{too many template parameters in template
redeclaration
}}
14
template<typename X> using SXRInt = typename S<X>::template R<int>; // ok,
redeclaration
.
attr-abi-tag-syntax.cpp
33
// expected-error@-1 {{cannot add 'abi_tag' attribute in a
redeclaration
}}
dllexport.cpp
56
__declspec(dllexport) extern int GlobalRedecl3; // expected-warning{{
redeclaration
of 'GlobalRedecl3' should not add 'dllexport' attribute}}
60
__declspec(dllexport) extern int GlobalRedecl4; // expected-warning{{
redeclaration
of 'GlobalRedecl4' should not add 'dllexport' attribute}}
116
template<typename T> __declspec(dllexport) extern int VarTmplRedecl3; // expected-error{{
redeclaration
of 'VarTmplRedecl3' cannot add 'dllexport' attribute}}
201
__declspec(dllexport) void redecl3(); // expected-warning{{
redeclaration
of 'redecl3' should not add 'dllexport' attribute}}
205
__declspec(dllexport) void redecl4(); // expected-warning{{
redeclaration
of 'redecl4' should not add 'dllexport' attribute}}
209
__declspec(dllexport) inline void redecl5() {} // expected-warning{{
redeclaration
of 'redecl5' should not add 'dllexport' attribute}}
220
__declspec(dllexport) void friend3() {} // expected-warning{{
redeclaration
of 'friend3' should not add 'dllexport' attribute}}
221
__declspec(dllexport) inline void friend4() {} // expected-warning{{
redeclaration
of 'friend4' should not add 'dllexport' attribute}}
267
template<typename T> __declspec(dllexport) void funcTmplRedecl3(); // expected-error{{
redeclaration
of 'funcTmplRedecl3' cannot add 'dllexport' attribute}}
270
template<typename T> __declspec(dllexport) inline void funcTmplRedecl4() {} // expected-error{{
redeclaration
of 'funcTmplRedecl4' cannot add 'dllexport' attribute}
[
all
...]
/external/clang/test/CXX/dcl.dcl/dcl.attr/dcl.align/
p6.cpp
4
alignas(8) int n1; // expected-error {{
redeclaration
has different alignment requirement (8 vs 4)}}
35
enum alignas(2) F : char; // expected-error {{
redeclaration
has different alignment requirement (2 vs 4)}}
53
struct alignas(4) T; // expected-error {{
redeclaration
has different alignment requirement (4 vs 2)}}
72
alignas(O) alignas(P) char X<M, N, O, P>::Buffer[32]; // expected-error {{
redeclaration
has different alignment requirement (8 vs 2)}}
Completed in 723 milliseconds
1
2
3
4
5
6
7
8
9
10
11
>>