forked from OSchip/llvm-project
[clang-format] Fix an uninitialized memory access
llvm-svn: 307147
This commit is contained in:
parent
805e9cb3fc
commit
835ac9bc62
|
@ -646,13 +646,6 @@ struct AdditionalKeywords {
|
|||
kw_var = &IdentTable.get("var");
|
||||
kw_yield = &IdentTable.get("yield");
|
||||
|
||||
JsExtraKeywords = std::unordered_set<IdentifierInfo *>(
|
||||
{kw_as, kw_async, kw_await, kw_declare, kw_finally, kw_from,
|
||||
kw_function, kw_get, kw_import, kw_is, kw_let, kw_module, kw_set,
|
||||
kw_type, kw_var, kw_yield,
|
||||
// Keywords from the Java section.
|
||||
kw_abstract, kw_extends, kw_implements, kw_instanceof, kw_interface});
|
||||
|
||||
kw_abstract = &IdentTable.get("abstract");
|
||||
kw_assert = &IdentTable.get("assert");
|
||||
kw_extends = &IdentTable.get("extends");
|
||||
|
@ -680,6 +673,15 @@ struct AdditionalKeywords {
|
|||
kw_qsignals = &IdentTable.get("Q_SIGNALS");
|
||||
kw_slots = &IdentTable.get("slots");
|
||||
kw_qslots = &IdentTable.get("Q_SLOTS");
|
||||
|
||||
// Keep this at the end of the constructor to make sure everything here is
|
||||
// already initialized.
|
||||
JsExtraKeywords = std::unordered_set<IdentifierInfo *>(
|
||||
{kw_as, kw_async, kw_await, kw_declare, kw_finally, kw_from,
|
||||
kw_function, kw_get, kw_import, kw_is, kw_let, kw_module, kw_set,
|
||||
kw_type, kw_var, kw_yield,
|
||||
// Keywords from the Java section.
|
||||
kw_abstract, kw_extends, kw_implements, kw_instanceof, kw_interface});
|
||||
}
|
||||
|
||||
// Context sensitive keywords.
|
||||
|
|
Loading…
Reference in New Issue