Change member variable name in test
Names starting with an underscore aren't allowed in a global namespace, according to the standard.
This commit is contained in:
parent
7b9c04c0d3
commit
ac93b84f01
|
@ -17,15 +17,15 @@ class A {
|
|||
// IWYU: IndirectClass needs a declaration
|
||||
IndirectClass *getIndirectClass(int i) {
|
||||
// IWYU: IndirectClass is...*indirect.h
|
||||
(void)sizeof(_b[i]); // requires full type
|
||||
(void)sizeof(b[i]); // requires full type
|
||||
// IWYU: IndirectClass needs a declaration
|
||||
// IWYU: IndirectClass is...*indirect.h
|
||||
(void)sizeof(&(_b[i])); // requires full type
|
||||
(void)sizeof(&(b[i])); // requires full type
|
||||
// IWYU: IndirectClass is...*indirect.h
|
||||
return &(_b[i]);
|
||||
return &(b[i]);
|
||||
}
|
||||
// IWYU: IndirectClass needs a declaration
|
||||
IndirectClass *_b;
|
||||
IndirectClass *b;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue