Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit 9e4396d

Browse files
authored
format.sh: Remove trailing spaces. (#143)
1 parent 29e96d4 commit 9e4396d

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

opencensus/copts.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ DEFAULT_COPTS = select({
4242
TEST_COPTS = DEFAULT_COPTS + select({
4343
"//opencensus:llvm_compiler": LLVM_TEST_FLAGS,
4444
# Disable "not all control paths return a value"; functions that return
45-
# out of a switch on an enum cause build errors otherwise.
45+
# out of a switch on an enum cause build errors otherwise.
4646
"//opencensus:windows": MSVC_TEST_FLAGS + ["/wd4715"],
4747
"//conditions:default": GCC_TEST_FLAGS,
4848
})

opencensus/doc/benchmarks.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@ bazel run -c opt opencensus/stats:stats_manager_benchmark [-- BENCHMARK_FLAGS]
1010
Benchmarks use the [Google benchmark](https://github.com/google/benchmark)
1111
library. This accepts several helpful flags, including
1212
- --benchmark_filter=REGEX: Run only benchmarks whose names match REGEX.
13-
- --benchmark_repetitions=N: Repeat each benchmark and calculate
13+
- --benchmark_repetitions=N: Repeat each benchmark and calculate
1414
mean/median/stddev.
15-
- --benchmark_report_aggregates_only={true|false}: In conjunction with
15+
- --benchmark_report_aggregates_only={true|false}: In conjunction with
1616
benchmark_repetitions, report only summary statistics and not single-run
1717
timings.
1818

1919
## Profiling
2020

2121
Benchmarks can be profiled using the
22-
[gperftools](https://github.com/gperftools/gperftools) library. On
22+
[gperftools](https://github.com/gperftools/gperftools) library. On
2323
Debian/Ubuntu, install the `google-perftools` (profile analysis tools) and
24-
`libgoogle-perftools-dev` (profiling library) packages. When running the
24+
`libgoogle-perftools-dev` (profiling library) packages. When running the
2525
benchmark, set `LD_PRELOAD=/usr/lib/libprofiler.so` to enable the profiler and
2626
`CPUPROFILE=PATH` to save a profile, and analyze the profile with
27-
`google-pprof` (which needs a path to the binary for symbolization). For
27+
`google-pprof` (which needs a path to the binary for symbolization). For
2828
example,
2929
```shell
3030
bazel build -c opt opencensus/stats:stats_manager_benchmark

tools/format.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ set -e
2222
# Correct common miscapitalizations.
2323
sed -i 's/Open[c]ensus/OpenCensus/g' $(find * -type f)
2424
sed -i 's/Stack[D]river/Stackdriver/g' $(find * -type f)
25+
# No trailing spaces.
26+
sed -i 's/ \+$//' $(find * -type f)
2527
# For easier debugging: print the version because it affects the formatting.
2628
CMD=clang-format
2729
$CMD -version

0 commit comments

Comments
 (0)