[include-cleaner] Fix a warning

This patch fixes:

  clang-tools-extra/include-cleaner/lib/HTMLReport.cpp:240:51: error:
  missing field 'Locations' initializer
  [-Werror,-Wmissing-field-initializers]
This commit is contained in:
Kazu Hirata 2022-11-25 09:51:25 -08:00
parent 64612f5d8e
commit 9c8a6a1627
1 changed files with 5 additions and 5 deletions

View File

@ -146,11 +146,11 @@ class Reporter {
unsigned Offset;
RefType Type;
Symbol Sym;
SmallVector<SymbolLocation> Locations;
SmallVector<Header> Headers;
SmallVector<const Include *> Includes;
bool Satisfied = false; // Is the include present?
std::string Insert; // If we had no includes, what would we insert?
SmallVector<SymbolLocation> Locations = {};
SmallVector<Header> Headers = {};
SmallVector<const Include *> Includes = {};
bool Satisfied = false; // Is the include present?
std::string Insert = {}; // If we had no includes, what would we insert?
};
std::vector<Ref> Refs;
llvm::DenseMap<const Include *, std::vector<unsigned>> IncludeRefs;