Source/LexerParser: Suppress "Use of zero-allocated memory" warning

clang scan-build warns about YY_CURRENT_BUFFER_LVALUE being zero-
allocated, but the whole point of the macro is to know that it's
not zero. Wrap the entire file in an "#ifndef __clang_analyzer__"
block in order to suppress the warning.
This commit is contained in:
Kyle Edwards
2019-01-11 18:30:13 -05:00
parent 613323a78b
commit 9e4b6bcbe8
8 changed files with 40 additions and 0 deletions
@@ -860,6 +860,8 @@ Modify cmDependsJavaLexer.cxx:
/* IWYU pragma: no_forward_declare yyguts_t */
#ifndef __clang_analyzer__ /* Suppress clang scan-build warnings */
#include <iostream>
#include "cmDependsJavaParserHelper.h"
@@ -2811,3 +2813,7 @@ void yyfree (void * ptr , yyscan_t yyscanner)
}
#define YYTABLES_NAME "yytables"
/*--------------------------------------------------------------------------*/
#endif /* __clang_analyzer__ */