forked from OSchip/llvm-project
Avoid uninitialized Diag.ID (which we pass but never read)
This commit is contained in:
parent
80ac0b9bc8
commit
1fef69da0b
|
@ -69,7 +69,7 @@ struct DiagBase {
|
||||||
// Since File is only descriptive, we store a separate flag to distinguish
|
// Since File is only descriptive, we store a separate flag to distinguish
|
||||||
// diags from the main file.
|
// diags from the main file.
|
||||||
bool InsideMainFile = false;
|
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
|
// 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
|
// diagnostic to a CodeAction request. Each module should only append to the
|
||||||
// list.
|
// list.
|
||||||
|
|
Loading…
Reference in New Issue