Revert "Whitespace"

This commit is contained in:
litghost 2019-10-23 14:22:17 -07:00 committed by GitHub
parent 9e77c8bcfd
commit c94cb0224c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
39 changed files with 248 additions and 251 deletions

View File

@ -58,7 +58,7 @@ test-cpp:
# Auto formatting of code.
# ------------------------
FORMAT_EXCLUDE = $(foreach x,$(ALL_EXCLUDE),-and -not -path './$(x)/*') -and -not -name *.bit
FORMAT_EXCLUDE = $(foreach x,$(ALL_EXCLUDE),-and -not -path './$(x)/*')
CLANG_FORMAT ?= clang-format-5.0
format-cpp:
@ -76,13 +76,10 @@ TCL_FORMAT ?= utils//tcl-reformat.sh
format-tcl:
find . -name \*.tcl $(FORMAT_EXCLUDE) -print0 | xargs -0 -P $$(nproc) -n 1 $(TCL_FORMAT)
format-trailing-ws:
find . -type f $(FORMAT_EXCLUDE) | xargs sed -i 's@\s\+$$@@g'
format: format-cpp format-docs format-py format-tcl format-trailing-ws
format: format-cpp format-docs format-py format-tcl
@true
.PHONY: format format-cpp format-py format-tcl format-trailing-ws
.PHONY: format format-cpp format-py format-tcl
# Targets related to Project X-Ray databases
# ------------------------

View File

@ -23,7 +23,7 @@ SegbitsFileReader::iterator SegbitsFileReader::end() {
}
SegbitsFileReader::value_type::value_type(const absl::string_view& view) {
size_t separator_start = view.find_first_of(" \t\n");
size_t separator_start = view.find_first_of(" \t");
if (separator_start == absl::string_view::npos) {
tag_ = view;
bit_ = absl::string_view();