Summary:public Running clang-format on symbolic link replaced it with another file. This is first diff out of two to fix that problem. Reviewed By: jvillard Differential Revision: D2960204 fb-gh-sync-id: aaa3231 shipit-source-id: aaa3231master
parent
c570d97ad8
commit
1fdead5958
@ -1,15 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2013 - present Facebook, Inc.
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the BSD style license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree. An additional grant
|
|
||||||
* of patent rights can be found in the PATENTS file in the same directory.
|
|
||||||
*/
|
|
||||||
|
|
||||||
int foo(int* p) {
|
|
||||||
if ((*p = 0)) {
|
|
||||||
return 32;
|
|
||||||
}
|
|
||||||
return 52;
|
|
||||||
}
|
|
@ -1,38 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2013 - present Facebook, Inc.
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the BSD style license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree. An additional grant
|
|
||||||
* of patent rights can be found in the PATENTS file in the same directory.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
struct {
|
|
||||||
int a;
|
|
||||||
int b;
|
|
||||||
} * x;
|
|
||||||
|
|
||||||
union {
|
|
||||||
int e;
|
|
||||||
int f;
|
|
||||||
|
|
||||||
struct {
|
|
||||||
int w;
|
|
||||||
int u;
|
|
||||||
} g;
|
|
||||||
|
|
||||||
int h;
|
|
||||||
} y;
|
|
||||||
|
|
||||||
int main() {
|
|
||||||
int l;
|
|
||||||
|
|
||||||
x->a = 1;
|
|
||||||
y.f = 7;
|
|
||||||
y.g.u = y.f;
|
|
||||||
|
|
||||||
y.g.w = x->b;
|
|
||||||
return 0;
|
|
||||||
}
|
|
Loading…
Reference in new issue