clang-analyzer: rename from scan-build in comments

This commit is contained in:
Brad King 2021-06-03 14:50:24 -04:00
parent dbfb50cd72
commit c1b575f4d1
14 changed files with 14 additions and 14 deletions

View File

@ -83,7 +83,7 @@ list(APPEND CTEST_CUSTOM_WARNING_EXCEPTION
"compilation completed with warnings" # PGI
"[0-9]+ Warning\\(s\\) detected" # SunPro
# scanbuild exceptions
# clang-analyzer exceptions
"char_traits.h:.*: warning: Null pointer argument in call to string length function"
"stl_construct.h:.*: warning: Forming reference to null pointer"
".*stl_uninitialized.h:75:19: warning: Forming reference to null pointer.*"

View File

@ -659,7 +659,7 @@ Modify cmCTestResourceGroupsLexer.cxx:
/* IWYU pragma: no_forward_declare yyguts_t */
#ifndef __clang_analyzer__ /* Suppress clang scan-build warnings */
#ifndef __clang_analyzer__ /* Suppress clang-analyzer warnings */
#include "cmCTestResourceGroupsLexerHelper.h"

View File

@ -18,7 +18,7 @@ Modify cmCTestResourceGroupsLexer.cxx:
/* IWYU pragma: no_forward_declare yyguts_t */
#ifndef __clang_analyzer__ /* Suppress clang scan-build warnings */
#ifndef __clang_analyzer__ /* Suppress clang-analyzer warnings */
#include "cmCTestResourceGroupsLexerHelper.h"

View File

@ -664,7 +664,7 @@ Modify cmCommandArgumentLexer.cxx:
/* IWYU pragma: no_forward_declare yyguts_t */
#ifndef __clang_analyzer__ /* Suppress clang scan-build warnings */
#ifndef __clang_analyzer__ /* Suppress clang-analyzer warnings */
#include "cmCommandArgumentParserHelper.h"

View File

@ -18,7 +18,7 @@ Modify cmCommandArgumentLexer.cxx:
/* IWYU pragma: no_forward_declare yyguts_t */
#ifndef __clang_analyzer__ /* Suppress clang scan-build warnings */
#ifndef __clang_analyzer__ /* Suppress clang-analyzer warnings */
#include "cmCommandArgumentParserHelper.h"

View File

@ -860,7 +860,7 @@ Modify cmDependsJavaLexer.cxx:
/* IWYU pragma: no_forward_declare yyguts_t */
#ifndef __clang_analyzer__ /* Suppress clang scan-build warnings */
#ifndef __clang_analyzer__ /* Suppress clang-analyzer warnings */
#include <iostream>

View File

@ -18,7 +18,7 @@ Modify cmDependsJavaLexer.cxx:
/* IWYU pragma: no_forward_declare yyguts_t */
#ifndef __clang_analyzer__ /* Suppress clang scan-build warnings */
#ifndef __clang_analyzer__ /* Suppress clang-analyzer warnings */
#include <iostream>

View File

@ -664,7 +664,7 @@ Modify cmExprLexer.cxx:
/* IWYU pragma: no_forward_declare yyguts_t */
#ifndef __clang_analyzer__ /* Suppress clang scan-build warnings */
#ifndef __clang_analyzer__ /* Suppress clang-analyzer warnings */
#include "cmExprParserHelper.h"

View File

@ -18,7 +18,7 @@ Modify cmExprLexer.cxx:
/* IWYU pragma: no_forward_declare yyguts_t */
#ifndef __clang_analyzer__ /* Suppress clang scan-build warnings */
#ifndef __clang_analyzer__ /* Suppress clang-analyzer warnings */
#include "cmExprParserHelper.h"

View File

@ -838,7 +838,7 @@ Modify cmFortranLexer.cxx:
/* IWYU pragma: no_forward_declare yyguts_t */
#ifndef __clang_analyzer__ /* Suppress clang scan-build warnings */
#ifndef __clang_analyzer__ /* Suppress clang-analyzer warnings */
#undef YY_NO_UNPUT

View File

@ -27,7 +27,7 @@ Modify cmFortranLexer.cxx:
/* IWYU pragma: no_forward_declare yyguts_t */
#ifndef __clang_analyzer__ /* Suppress clang scan-build warnings */
#ifndef __clang_analyzer__ /* Suppress clang-analyzer warnings */
#undef YY_NO_UNPUT

View File

@ -645,7 +645,7 @@ static const flex_int16_t yy_chk[46] =
/* IWYU pragma: no_forward_declare yyguts_t */
#ifndef __clang_analyzer__ /* Suppress clang scan-build warnings */
#ifndef __clang_analyzer__ /* Suppress clang-analyzer warnings */
#include <cmGccDepfileLexerHelper.h>
#include <string>

View File

@ -4,7 +4,7 @@
/* IWYU pragma: no_forward_declare yyguts_t */
#ifndef __clang_analyzer__ /* Suppress clang scan-build warnings */
#ifndef __clang_analyzer__ /* Suppress clang-analyzer warnings */
#include <cmGccDepfileLexerHelper.h>
#include <string>

View File

@ -1728,7 +1728,7 @@ bool OurReader::decodeUnicodeCodePoint(Token& token,
Location end,
unsigned int& unicode) {
unicode = 0; // Convince scanbuild this is always initialized before use.
unicode = 0; // Convince clang-analyzer that this is initialized before use.
if (!decodeUnicodeEscapeSequence(token, current, end, unicode))
return false;
if (unicode >= 0xD800 && unicode <= 0xDBFF) {