Skip to content

Commit dd8e0a0

Browse files
committed
[Sema] Split availability processing into SemaAvailability.cpp
Reduces compile time of SemaDeclAttr.cpp down to 28s from 50s. The new TU does a few RecursiveASTVisitor instantiations, so it takes 30s. Reviewed By: rsmith Differential Revision: https://reviews.llvm.org/D73385
1 parent 0697bcb commit dd8e0a0

File tree

4 files changed

+967
-941
lines changed

4 files changed

+967
-941
lines changed

clang/include/clang/Sema/Sema.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4424,6 +4424,8 @@ class Sema final {
44244424
/// Issue any -Wunguarded-availability warnings in \c FD
44254425
void DiagnoseUnguardedAvailabilityViolations(Decl *FD);
44264426

4427+
void handleDelayedAvailabilityCheck(sema::DelayedDiagnostic &DD, Decl *Ctx);
4428+
44274429
//===--------------------------------------------------------------------===//
44284430
// Expression Parsing Callbacks: SemaExpr.cpp.
44294431

clang/lib/Sema/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ add_clang_library(clangSema
2929
Sema.cpp
3030
SemaAccess.cpp
3131
SemaAttr.cpp
32+
SemaAvailability.cpp
3233
SemaCXXScopeSpec.cpp
3334
SemaCast.cpp
3435
SemaChecking.cpp

0 commit comments

Comments
 (0)