Gitweb links:

...log 
http://git.netsurf-browser.org/libnslog.git/shortlog/bdcdaf2ae22457f7ffae3787eb0b9ffd6ca9f082
...commit 
http://git.netsurf-browser.org/libnslog.git/commit/bdcdaf2ae22457f7ffae3787eb0b9ffd6ca9f082
...tree 
http://git.netsurf-browser.org/libnslog.git/tree/bdcdaf2ae22457f7ffae3787eb0b9ffd6ca9f082

The branch, master has been updated
       via  bdcdaf2ae22457f7ffae3787eb0b9ffd6ca9f082 (commit)
      from  6f42c731b926c9ccb553fb3031dea34ac5bddc85 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/libnslog.git/commit/?id=bdcdaf2ae22457f7ffae3787eb0b9ffd6ca9f082
commit bdcdaf2ae22457f7ffae3787eb0b9ffd6ca9f082
Author: Daniel Silverstone <[email protected]>
Commit: Daniel Silverstone <[email protected]>

    Infra: Prevent scan-build considering the lexer for now
    
    Signed-off-by: Daniel Silverstone <[email protected]>

diff --git a/src/Makefile b/src/Makefile
index 3ca70cd..d598cf5 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -4,11 +4,17 @@ CFLAGS := $(CFLAGS) -I$(BUILDDIR) -Isrc/
 
 SOURCES := $(SOURCES) $(BUILDDIR)/filter-parser.c $(BUILDDIR)/filter-lexer.c
 
-$(BUILDDIR)/%-lexer.c $(BUILDDIR)/%-lexer.h: src/%-lexer.l
+$(BUILDDIR)/%-lexer.inc $(BUILDDIR)/%-lexer.h: src/%-lexer.l
        $(VQ)$(ECHO) "    FLEX: $<"
-       $(Q)$(FLEX) --outfile=$(BUILDDIR)/$(*F)-lexer.c 
--header-file=$(BUILDDIR)/$(*F)-lexer.h $<
+       $(Q)$(FLEX) --outfile=$(BUILDDIR)/$(*F)-lexer.inc 
--header-file=$(BUILDDIR)/$(*F)-lexer.h $<
+.PRECIOUS: $(BUILDDIR)/%-lexer.inc
 
-$(BUILDDIR)/%-lexer.c: $(BUILDDIR)/%-parser.h
+$(BUILDDIR)/%-lexer.inc: $(BUILDDIR)/%-parser.h
+
+$(BUILDDIR)/%-lexer.c: $(BUILDDIR)/%-lexer.inc
+       $(Q)echo "#ifndef __clang_analyzer__" > $@
+       $(Q)echo "#include \"$(notdir $<)\"" >> $@
+       $(Q)echo "#endif" >> $@
 
 # Bison 3.0 and later require api.prefix in curly braces
 # Bison 2.6 and later require api.prefix


-----------------------------------------------------------------------

Summary of changes:
 src/Makefile |   12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/Makefile b/src/Makefile
index 3ca70cd..d598cf5 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -4,11 +4,17 @@ CFLAGS := $(CFLAGS) -I$(BUILDDIR) -Isrc/
 
 SOURCES := $(SOURCES) $(BUILDDIR)/filter-parser.c $(BUILDDIR)/filter-lexer.c
 
-$(BUILDDIR)/%-lexer.c $(BUILDDIR)/%-lexer.h: src/%-lexer.l
+$(BUILDDIR)/%-lexer.inc $(BUILDDIR)/%-lexer.h: src/%-lexer.l
        $(VQ)$(ECHO) "    FLEX: $<"
-       $(Q)$(FLEX) --outfile=$(BUILDDIR)/$(*F)-lexer.c 
--header-file=$(BUILDDIR)/$(*F)-lexer.h $<
+       $(Q)$(FLEX) --outfile=$(BUILDDIR)/$(*F)-lexer.inc 
--header-file=$(BUILDDIR)/$(*F)-lexer.h $<
+.PRECIOUS: $(BUILDDIR)/%-lexer.inc
 
-$(BUILDDIR)/%-lexer.c: $(BUILDDIR)/%-parser.h
+$(BUILDDIR)/%-lexer.inc: $(BUILDDIR)/%-parser.h
+
+$(BUILDDIR)/%-lexer.c: $(BUILDDIR)/%-lexer.inc
+       $(Q)echo "#ifndef __clang_analyzer__" > $@
+       $(Q)echo "#include \"$(notdir $<)\"" >> $@
+       $(Q)echo "#endif" >> $@
 
 # Bison 3.0 and later require api.prefix in curly braces
 # Bison 2.6 and later require api.prefix


-- 
NetSurf Parametric Logging Library

_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to