From: Francis Dupont Date: Sun, 8 Oct 2017 15:54:51 +0000 (+0200) Subject: [master] Disabled clang static analyzer on *lexer.cc files X-Git-Tag: trac5379_base~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c5da72a9b8835f5185ca972b4aca15fd52bdf8b;p=thirdparty%2Fkea.git [master] Disabled clang static analyzer on *lexer.cc files --- diff --git a/src/bin/agent/agent_lexer.ll b/src/bin/agent/agent_lexer.ll index 2f26545435..9ddae0bdf4 100644 --- a/src/bin/agent/agent_lexer.ll +++ b/src/bin/agent/agent_lexer.ll @@ -5,6 +5,10 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/. */ %{ /* -*- C++ -*- */ + +/* Generated files do not make clang static analyser so happy */ +#ifndef __clang_analyzer__ + #include #include #include @@ -695,3 +699,4 @@ class Dummy { void dummy() { yy_fatal_error("Fix me: how to disable its definition?"); } }; } +#endif /* !__clang_analyzer__ */ diff --git a/src/bin/d2/d2_lexer.ll b/src/bin/d2/d2_lexer.ll index e008c12b7f..0e9b9c7cda 100644 --- a/src/bin/d2/d2_lexer.ll +++ b/src/bin/d2/d2_lexer.ll @@ -5,6 +5,10 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/. */ %{ /* -*- C++ -*- */ + +/* Generated files do not make clang static analyser so happy */ +#ifndef __clang_analyzer__ + #include #include #include @@ -769,3 +773,4 @@ class Dummy { void dummy() { yy_fatal_error("Fix me: how to disable its definition?"); } }; } +#endif /* !__clang_analyzer__ */ diff --git a/src/bin/dhcp4/dhcp4_lexer.ll b/src/bin/dhcp4/dhcp4_lexer.ll index 13dbec9873..7452264896 100644 --- a/src/bin/dhcp4/dhcp4_lexer.ll +++ b/src/bin/dhcp4/dhcp4_lexer.ll @@ -5,6 +5,10 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/. */ %{ /* -*- C++ -*- */ + +/* Generated files do not make clang static analyser so happy */ +#ifndef __clang_analyzer__ + #include #include #include @@ -1669,3 +1673,4 @@ class Dummy { void dummy() { yy_fatal_error("Fix me: how to disable its definition?"); } }; } +#endif /* !__clang_analyzer__ */ diff --git a/src/bin/dhcp6/dhcp6_lexer.ll b/src/bin/dhcp6/dhcp6_lexer.ll index 6210c214a2..6d891067c4 100644 --- a/src/bin/dhcp6/dhcp6_lexer.ll +++ b/src/bin/dhcp6/dhcp6_lexer.ll @@ -5,6 +5,10 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/. */ %{ /* -*- C++ -*- */ + +/* Generated files do not make clang static analyser so happy */ +#ifndef __clang_analyzer__ + #include #include #include @@ -1717,3 +1721,4 @@ class Dummy { void dummy() { yy_fatal_error("Fix me: how to disable its definition?"); } }; } +#endif /* !__clang_analyzer__ */ diff --git a/src/lib/eval/lexer.ll b/src/lib/eval/lexer.ll index 9a914f7147..b7447ea2bc 100644 --- a/src/lib/eval/lexer.ll +++ b/src/lib/eval/lexer.ll @@ -5,6 +5,10 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/. */ %{ /* -*- C++ -*- */ + +/* Generated files do not make clang static analyser so happy */ +#ifndef __clang_analyzer__ + #include #include #include @@ -242,3 +246,4 @@ class Dummy { void dummy() { yy_fatal_error("Fix me: how to disable its definition?"); } }; } +#endif /* !__clang_analyzer__ */