Skip to content

Commit 9dfd6b7

Browse files
committed
disable clang format,
It's run automatically by many automated tools and wreaks havoc on commit diffs. We should, maybe, go back later and re-enable it.
1 parent ea5890f commit 9dfd6b7

71 files changed

Lines changed: 215 additions & 2 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎check_all_options.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
/* clang-format off */
18+
1719
#include "common.h"
1820
#include "check_all_options.h"
1921

@@ -132,3 +134,4 @@ void check_options_psp_common(struct options *opts, struct callbacks *cb)
132134
"PSP server requires server IP (-H) for device lookup.");
133135
}
134136
}
137+
/* clang-format on */

‎check_all_options.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
/* clang-format off */
18+
1719
#ifndef THIRD_PARTY_NEPER_CHECK_ALL_OPTIONS_H_
1820
#define THIRD_PARTY_NEPER_CHECK_ALL_OPTIONS_H_
1921

@@ -34,3 +36,4 @@ void check_options_psp_common(struct options *opts, struct callbacks *cb);
3436

3537
#endif // THIRD_PARTY_NEPER_CHECK_ALL_OPTIONS_H_
3638

39+
/* clang-format on */

‎coef.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
/* clang-format off */
18+
1719
#include "coef.h"
1820
#include "common.h"
1921

@@ -102,3 +104,4 @@ struct neper_coef *neper_coef(void)
102104

103105
return coef;
104106
}
107+
/* clang-format on */

‎coef.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
/* clang-format off */
18+
1719
#ifndef THIRD_PARTY_NEPER_COEF_H
1820
#define THIRD_PARTY_NEPER_COEF_H
1921

@@ -44,3 +46,4 @@ struct neper_coef {
4446
struct neper_coef *neper_coef(void);
4547

4648
#endif
49+
/* clang-format on */

‎common.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
/* clang-format off */
18+
1719
#include <fcntl.h>
1820
#include <netinet/tcp.h>
1921
#include <stddef.h>
@@ -346,3 +348,4 @@ int create_suicide_timeout(int sec_to_suicide)
346348
}
347349
return 0;
348350
}
351+
/* clang-format on */

‎common.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
/* clang-format off */
18+
1719
#ifndef THIRD_PARTY_NEPER_COMMON_H
1820
#define THIRD_PARTY_NEPER_COMMON_H
1921

@@ -169,3 +171,4 @@ const struct rate_conversion *auto_unit(const double throughput,
169171
const struct rate_conversion *opt,
170172
struct callbacks *);
171173
#endif
174+
/* clang-format on */

‎control_plane.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
/* clang-format off */
18+
1719
#include "control_plane.h"
1820
#include <netinet/tcp.h>
1921
#include <inttypes.h>
@@ -514,3 +516,4 @@ void control_plane_destroy(struct control_plane *cp)
514516
{
515517
free(cp);
516518
}
519+
/* clang-format on */

‎control_plane.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
/* clang-format off */
18+
1719
#ifndef THIRD_PARTY_NEPER_CONTROL_PLANE_H
1820
#define THIRD_PARTY_NEPER_CONTROL_PLANE_H
1921

@@ -36,3 +38,4 @@ int control_plane_incidents(struct control_plane *cp);
3638
void control_plane_destroy(struct control_plane *cp);
3739

3840
#endif
41+
/* clang-format on */

‎countdown_cond.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
/* clang-format off */
18+
1719
#ifndef _COUNTDOWN_COND_H
1820
#define _COUNTDOWN_COND_H
1921

@@ -92,3 +94,4 @@ static inline void countdown_cond_wait(struct countdown_cond *cc)
9294
}
9395

9496
#endif
97+
/* clang-format on */

‎cpuinfo.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
/* clang-format off */
18+
1719
#include <ctype.h>
1820
#include <stdio.h>
1921
#include <stdlib.h>
@@ -87,3 +89,4 @@ int get_cpuinfo(struct cpuinfo *cpus, int max_cpus, struct callbacks *cb)
8789
fclose(f);
8890
return n;
8991
}
92+
/* clang-format on */

0 commit comments

Comments
 (0)