-
Without the type cache in class Visitor defined in clang/duchain/builder.cpp, the parser is stuck in Visitor::createClassTemplateSpecializationType() for hours or days, and so TestFiles::testFiles(mangle-ms-back-references-pr13207.cpp) times out in 5 minutes while parsing Fooob type aliases (Bug 464198). The test file has been copied verbatim from LLVM repository: https://github.com/llvm/llvm-project/blob/main/clang/test/CodeGenCXX/mangle-ms-back-references-pr13207.cpp Then an SPDX-License-Identifier line was added at the top of the file. Apache License Version 2.0 is compatible with the (L)GPL v3. The LLVM Exceptions make this license compatible with GPLv2 and hopefully LGPLv2: https://github.com/llvm/llvm-project/blob/e4abfc4c3cf47297136bbf06b0f59da50d3f260e/clang/LICENSE.TXT#L208
8261b5fa