public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/c++-contracts] tweak get_source_text_between comment
@ 2022-11-04 17:05 Jason Merrill
0 siblings, 0 replies; only message in thread
From: Jason Merrill @ 2022-11-04 17:05 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:df3709d167ccb86775b7aebb12bc6865fc814a9d
commit df3709d167ccb86775b7aebb12bc6865fc814a9d
Author: Jason Merrill <jason@redhat.com>
Date: Fri Nov 4 13:05:06 2022 -0400
tweak get_source_text_between comment
Diff:
---
gcc/input.cc | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/gcc/input.cc b/gcc/input.cc
index 04d0809bfdf..c185bd74c1f 100644
--- a/gcc/input.cc
+++ b/gcc/input.cc
@@ -949,8 +949,9 @@ location_get_source_line (const char *file_path, int line)
return char_span (buffer, len);
}
-/* Return a copy of the source text between two locations. The caller is
- responsible for freeing the return value. */
+/* Return a NUL-terminated copy of the source text between two locations, or
+ NULL if the arguments are invalid. The caller is responsible for freeing
+ the return value. */
char *
get_source_text_between (location_t start, location_t end)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-11-04 17:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-04 17:05 [gcc/devel/c++-contracts] tweak get_source_text_between comment Jason Merrill
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).