Add a new frontend warning for referencing members from the handler of a...
Add a new frontend warning for referencing members from the handler of a constructor or destructor function-try-block, which is UB in C++. This corresponds to the CERT secure coding rule ERR53-CPP. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@246548 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Basic/DiagnosticSemaKinds.td 3 additions, 0 deletionsinclude/clang/Basic/DiagnosticSemaKinds.td
- include/clang/Sema/Sema.h 11 additions, 5 deletionsinclude/clang/Sema/Sema.h
- lib/Sema/SemaDecl.cpp 1 addition, 1 deletionlib/Sema/SemaDecl.cpp
- lib/Sema/SemaDeclCXX.cpp 4 additions, 3 deletionslib/Sema/SemaDeclCXX.cpp
- lib/Sema/SemaExpr.cpp 5 additions, 7 deletionslib/Sema/SemaExpr.cpp
- lib/Sema/SemaExprCXX.cpp 1 addition, 1 deletionlib/Sema/SemaExprCXX.cpp
- lib/Sema/SemaExprMember.cpp 35 additions, 8 deletionslib/Sema/SemaExprMember.cpp
- lib/Sema/SemaOverload.cpp 3 additions, 3 deletionslib/Sema/SemaOverload.cpp
- lib/Sema/SemaStmtAsm.cpp 1 addition, 1 deletionlib/Sema/SemaStmtAsm.cpp
- lib/Sema/TreeTransform.h 15 additions, 9 deletionslib/Sema/TreeTransform.h
- test/SemaCXX/cdtor-fn-try-block.cpp 97 additions, 0 deletionstest/SemaCXX/cdtor-fn-try-block.cpp
- test/SemaObjCXX/delay-parsing-func-tryblock.mm 4 additions, 5 deletionstest/SemaObjCXX/delay-parsing-func-tryblock.mm
Loading
Please register or sign in to comment