[gcc/devel/c++-modules] Include translate finesse

Nathan Sidwell nathan@gcc.gnu.org
Tue Nov 24 13:36:15 GMT 2020


https://gcc.gnu.org/g:0e9a89a169cb1d8240e2f587226b33dc51e11549

commit 0e9a89a169cb1d8240e2f587226b33dc51e11549
Author: Nathan Sidwell <nathan@acm.org>
Date:   Mon Nov 23 04:48:09 2020 -0800

    Include translate finesse
    
            libcody/
            Update from upstream, INCLUDE_TRANSLATE response meaning change

Diff:
---
 ChangeLog.modules |  5 +++++
 libcody/README.md | 11 ++++++-----
 libcody/client.cc |  2 +-
 3 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/ChangeLog.modules b/ChangeLog.modules
index 89aadff6fde..d7154bb068b 100644
--- a/ChangeLog.modules
+++ b/ChangeLog.modules
@@ -1,3 +1,8 @@
+2020-11-23  Nathan Sidwell  <nathan@acm.org>
+
+	libcody/
+	Update from upstream, INCLUDE_TRANSLATE response meaning change
+
 2020-11-20  Nathan Sidwell  <nathan@acm.org>
 
 	gcc/
diff --git a/libcody/README.md b/libcody/README.md
index 05264ee7112..07e34d1a004 100644
--- a/libcody/README.md
+++ b/libcody/README.md
@@ -273,11 +273,12 @@ Include translation can be determined with:
 `INCLUDE-TRANSLATE $header [$flags]`
 
 The header name, `$header`, is the fully resolved header name, in the
-above-mentioned unambiguous filename form.  The response will either be
-a BOOL response indicating translation (TRUE) or textual inclusion
-(FALSE).  Alternatively a PATHNAME response can directly name the CMI,
-and implies translation, this possibly elides a subsequent
-`MODULE-IMPORT` request.
+above-mentioned unambiguous filename form.  The response will either
+be a BOOL response indicating textual inclusion, or a PATHNAME
+response naming the CMI for such translation.  The BOOL value is TRUE,
+if the header is known to be a textual header, and FALSE if nothing is
+known about it -- the latter might cause diagnostics about incomplete
+knowledge.
 
 ### GCC LTO Messages
 
diff --git a/libcody/client.cc b/libcody/client.cc
index b3c952756f4..ce671620ae0 100644
--- a/libcody/client.cc
+++ b/libcody/client.cc
@@ -329,7 +329,7 @@ Packet Client::IncludeTranslate (char const *include, Flags flags, size_t ilen)
   return MaybeRequest (Detail::RC_INCLUDE_TRANSLATE);
 }
 
-// BOOL $truthiness
+// BOOL $knowntextualness
 // PATHNAME $cmifile
 Packet IncludeTranslateResponse (std::vector<std::string> &words)
 {


More information about the Gcc-cvs mailing list