Refactor CFG-based warnings in Sema to be run by a worked object called AnalysisBasedWarnings.
This object controls when the warnings are executed, allowing the client code in Sema to selectively disable warnings as needed. Centralizing the logic for analysis-based warnings allows us to optimize when and how they are run. Along the way, remove the redundant logic for the 'check fall-through' warning for blocks; now the same logic is used for both blocks and functions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99085 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- lib/Sema/AnalysisBasedWarnings.cpp 362 additions, 0 deletionslib/Sema/AnalysisBasedWarnings.cpp
- lib/Sema/AnalysisBasedWarnings.h 35 additions, 0 deletionslib/Sema/AnalysisBasedWarnings.h
- lib/Sema/CMakeLists.txt 1 addition, 0 deletionslib/Sema/CMakeLists.txt
- lib/Sema/Sema.h 0 additions, 10 deletionslib/Sema/Sema.h
- lib/Sema/SemaChecking.cpp 0 additions, 274 deletionslib/Sema/SemaChecking.cpp
- lib/Sema/SemaDecl.cpp 22 additions, 14 deletionslib/Sema/SemaDecl.cpp
- lib/Sema/SemaExpr.cpp 5 additions, 4 deletionslib/Sema/SemaExpr.cpp
Loading
Please register or sign in to comment