Fix deserialization cycle in preferred_name attribute.
authorRichard Smith <richard@metafoo.co.uk>
Mon, 7 Dec 2020 23:50:18 +0000 (15:50 -0800)
committerRichard Smith <richard@metafoo.co.uk>
Tue, 8 Dec 2020 00:02:05 +0000 (16:02 -0800)
commita64c26a47a81b1b44e36d235ff3bc6a74a0bad9f
treeb751501cda5d216ea030727200b70d75b086d75d
parent0b81d9a992579ef55b0781c9bc678aa1f3133e9e
Fix deserialization cycle in preferred_name attribute.

This is really just a workaround for a more fundamental issue in the way
we deserialize attributes. See PR48434 for details.

Also fix tablegen code generator to produce more correct indentation to
resolve buildbot issues with -Werror=misleading-indentation firing
inside the generated code.
clang/include/clang/AST/TypeProperties.td
clang/lib/AST/TypePrinter.cpp
clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
clang/test/PCH/decl-attrs.cpp [new file with mode: 0644]
clang/test/SemaTemplate/attributes.cpp
clang/utils/TableGen/ClangAttrEmitter.cpp