Skip to content

Commit 4d0043f

Browse files
authored
Update VERSION in Makefile and add documentation for string_view_t (#641)
We now document PUGIXML_HAS_STRING_VIEW and PUGIXML_STRING_VIEW (the latter will be removed in the future) configuration as well as string_view_t type and overloads. Makefile also had to be fixed to recognize the version properly after pugixml.hpp changes.
1 parent 2729d80 commit 4d0043f

File tree

3 files changed

+123
-25
lines changed

3 files changed

+123
-25
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ BUILD=build/make-$(firstword $(CXX))-$(config)-$(defines)-$(cxxstd)
1010
SOURCES=src/pugixml.cpp $(filter-out tests/fuzz_%,$(wildcard tests/*.cpp))
1111
EXECUTABLE=$(BUILD)/test
1212

13-
VERSION=$(shell sed -n 's/.*version \(.*\).*/\1/p' src/pugiconfig.hpp)
13+
VERSION=$(shell sed -n 's/.*version \(.*\).*/\1/p; /version/q' src/pugiconfig.hpp)
1414
RELEASE=$(filter-out scripts/archive.py docs/%.adoc,$(shell git ls-files docs scripts src CMakeLists.txt LICENSE.md readme.txt))
1515

1616
CXXFLAGS=-g -Wall -Wextra -Werror -pedantic -Wundef -Wshadow -Wcast-align -Wcast-qual -Wold-style-cast -Wdouble-promotion

0 commit comments

Comments
 (0)