q66 pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=69cccd043a740ff36782b1e15104545521f3de4e

commit 69cccd043a740ff36782b1e15104545521f3de4e
Author: Daniel Kolesa <d.kol...@osg.samsung.com>
Date:   Wed Jul 8 14:47:09 2015 +0100

    eolian: print more detailed location info for doc validation
---
 src/lib/eolian/database_validate.c | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/src/lib/eolian/database_validate.c 
b/src/lib/eolian/database_validate.c
index 137c24e..d3c4425 100644
--- a/src/lib/eolian/database_validate.c
+++ b/src/lib/eolian/database_validate.c
@@ -7,7 +7,7 @@
 #include "eo_lexer.h"
 
 static Eina_Bool
-_validate_ref(const char *ref)
+_validate_ref(const char *ref, const Eolian_Object *info)
 {
 #if 0
    if (eolian_declaration_get_by_name(ref))
@@ -73,15 +73,17 @@ _validate_ref(const char *ref)
    return EINA_TRUE;
 
 failed:
-   fprintf(stderr, "eolian: failed validating reference '%s'\n", ref);
+   fprintf(stderr, "eolian:%s:%d:%d: failed validating reference '%s'\n",
+       info->file, info->line, info->column, ref);
 #else
    (void)ref;
+   (void)info;
 #endif
    return EINA_TRUE;
 }
 
 static Eina_Bool
-_validate_docstr(Eina_Stringshare *str)
+_validate_docstr(Eina_Stringshare *str, const Eolian_Object *info)
 {
    if (!str) return EINA_TRUE;
 
@@ -102,7 +104,7 @@ _validate_docstr(Eina_Stringshare *str)
           ++p;
         if (*(p - 1) == '.') --p;
         Eina_Stringshare *refs = eina_stringshare_add_length(ref, (p - ref));
-        if (!_validate_ref(refs))
+        if (!_validate_ref(refs, info))
           {
              eina_stringshare_del(refs);
              return EINA_FALSE;
@@ -118,9 +120,9 @@ _validate_doc(const Eolian_Documentation *doc)
 {
    if (!doc) return EINA_TRUE;
 
-   if (!_validate_docstr(doc->summary))
+   if (!_validate_docstr(doc->summary, &doc->base))
      return EINA_FALSE;
-   if (!_validate_docstr(doc->description))
+   if (!_validate_docstr(doc->description, &doc->base))
      return EINA_FALSE;
 
    return EINA_TRUE;

-- 


Reply via email to