Avoid uninitialized Diag.ID (which we pass but never read)

This commit is contained in:
Sam McCall 2022-05-20 20:29:47 +02:00 committed by GitHub
parent 80ac0b9bc8
commit 1fef69da0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ struct DiagBase {
// Since File is only descriptive, we store a separate flag to distinguish
// diags from the main file.
bool InsideMainFile = false;
unsigned ID; // e.g. member of clang::diag, or clang-tidy assigned ID.
unsigned ID = 0; // e.g. member of clang::diag, or clang-tidy assigned ID.
// Feature modules can make use of this field to propagate data from a
// diagnostic to a CodeAction request. Each module should only append to the
// list.