We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89e5635 commit 7100860Copy full SHA for 7100860
clang/lib/Sema/Sema.cpp
@@ -38,17 +38,6 @@ void FunctionScopeInfo::Clear(unsigned NumErrors) {
38
39
BlockScopeInfo::~BlockScopeInfo() { }
40
41
-static inline RecordDecl *CreateStructDecl(ASTContext &C, const char *Name) {
42
- if (C.getLangOptions().CPlusPlus)
43
- return CXXRecordDecl::Create(C, TTK_Struct,
44
- C.getTranslationUnitDecl(),
45
- SourceLocation(), &C.Idents.get(Name));
46
-
47
- return RecordDecl::Create(C, TTK_Struct,
48
49
50
-}
51
52
void Sema::ActOnTranslationUnitScope(SourceLocation Loc, Scope *S) {
53
TUScope = S;
54
PushDeclContext(S, Context.getTranslationUnitDecl());
0 commit comments