mirror of https://github.com/openXC7/prjxray.git
Revert "Whitespace"
This commit is contained in:
parent
9e77c8bcfd
commit
c94cb0224c
9
Makefile
9
Makefile
|
|
@ -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
|
||||
# ------------------------
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue