llvm.org GIT mirror llvm / 0f82c94
Support: Return void from Scanner::scan_ns_uri_char, no one uses the result Simplify this a little bit since the result is never used. It can be added back easily enough if that changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@284348 91177308-0d34-0410-b5e6-96231b3b80d8 Justin Bogner 3 years ago
1 changed file(s) with 2 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
359359 /// @brief Scan ns-uri-char[39]s starting at Cur.
360360 ///
361361 /// This updates Cur and Column while scanning.
362 ///
363 /// @returns A StringRef starting at Cur which covers the longest contiguous
364 /// sequence of ns-uri-char.
365 StringRef scan_ns_uri_char();
362 void scan_ns_uri_char();
366363
367364 /// @brief Consume a minimal well-formed code unit subsequence starting at
368365 /// \a Cur. Return false if it is not the same Unicode scalar value as
882879 || (C >= 'A' && C <= 'Z');
883880 }
884881
885 StringRef Scanner::scan_ns_uri_char() {
886 StringRef::iterator Start = Current;
882 void Scanner::scan_ns_uri_char() {
887883 while (true) {
888884 if (Current == End)
889885 break;
899895 } else
900896 break;
901897 }
902 return StringRef(Start, Current - Start);
903898 }
904899
905900 bool Scanner::consume(uint32_t Expected) {