Skip to content

Commit a6fd8ad

Browse files
committed
add comments on nolint
1 parent 38f3ce5 commit a6fd8ad

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

clang-tools-extra/clang-tidy/bugprone/InvalidEnumDefaultInitializationCheck.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ namespace clang::tidy::bugprone {
2020

2121
namespace {
2222

23+
// Preserve same name as AST_MATCHER(isCompleteAndHasNoZeroValue)
2324
// NOLINTNEXTLINE(llvm-prefer-static-over-anonymous-namespace)
2425
bool isCompleteAndHasNoZeroValue(const EnumDecl *D) {
2526
const EnumDecl *Definition = D->getDefinition();

clang-tools-extra/clang-tidy/readability/ImplicitBoolConversionCheck.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ AST_MATCHER(Stmt, isMacroExpansion) {
2929

3030
AST_MATCHER(Stmt, isC23) { return Finder->getASTContext().getLangOpts().C23; }
3131

32+
// Preserve same name as AST_MATCHER(isNULLMacroExpansion)
3233
// NOLINTNEXTLINE(llvm-prefer-static-over-anonymous-namespace)
3334
bool isNULLMacroExpansion(const Stmt *Statement, ASTContext &Context) {
3435
SourceManager &SM = Context.getSourceManager();

0 commit comments

Comments
 (0)