Otherwise we may be inserting a decl into a DeclContext that's not fully defined yet. This simplifies/removes some clang AST node creation code. Instead, use clang::printTemplateArgumentList(). Reviewed By: Michael137 Differential Revision: https://reviews.llvm.org/D142413
11 lines
112 B
C++
11 lines
112 B
C++
struct Outer {
|
|
Outer() {}
|
|
|
|
template <class T>
|
|
struct Inner {};
|
|
};
|
|
|
|
int main() {
|
|
Outer::Inner<int> oi;
|
|
}
|