]> granicus.if.org Git - clang/commit
Avoid including ScopeInfo.h from Sema.h
authorReid Kleckner <rnk@google.com>
Wed, 7 Mar 2018 22:48:35 +0000 (22:48 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 7 Mar 2018 22:48:35 +0000 (22:48 +0000)
commit1f5fca8f18e3417de286e5bdb7ef06ef3ebb4db4
treec4312a29ce81cab1f47b2c1267f963c9476b723f
parent9062e07a82f72a8bf3f55701a6b1f26186eb74a0
Avoid including ScopeInfo.h from Sema.h

Summary:
This provides no measurable build speedup, but it reinstates an
optimization from r112038 that was lost in r179618.  It requires moving
CapturedScopeInfo::Capture out to clang::sema, which might be too
general since we have plenty of other Capture records in BlockDecl and
other AST nodes.

Reviewers: rjmccall

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D44221

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326957 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
include/clang/Sema/ScopeInfo.h
include/clang/Sema/Sema.h
include/clang/Sema/SemaLambda.h
lib/Sema/Sema.cpp
lib/Sema/SemaCoroutine.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclAttr.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaExprMember.cpp
lib/Sema/SemaLambda.cpp
lib/Sema/SemaPseudoObject.cpp
lib/Sema/SemaStmt.cpp