| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
cert-err58-cpp check; NFC.
llvm-svn: 347860
|
|
|
|
|
|
| |
This check is about preventing exceptions from being thrown before main() executes, and assigning a lambda (rather than calling it) to a global object cannot throw any exceptions.
llvm-svn: 347761
|
|
|
|
|
|
| |
If a variable is declared constexpr then its initializer needs to be a constant expression, and thus, cannot throw. This check is about not throwing exceptions before main() runs, and so it doesn't apply if the initializer cannot throw. This silences the diagnostic when initializing a constexpr variable and fixes PR35457.
llvm-svn: 347745
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
suppressed.
Summary: clang-tidy is better not to issues this warning, which checks where the initializer for the object may throw an exception, when "-fno-exceptions" is used.
Reviewers: chh, aaron.ballman
Reviewed By: aaron.ballman
Subscribers: xazax.hun
Tags: #clang-tools-extra
Differential Revision: https://reviews.llvm.org/D33917
llvm-svn: 304931
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
Aaron modified cert-err58-cpp to include all exceptions thrown before main()
Update the check to match.
Reviewers: aaron.ballman
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D25925
llvm-svn: 285653
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
Fix a false negative in cert-err58-cpp check when calling a constructor
creates objects that require cleanup.
Reviewers: aaron.ballman
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D25642
llvm-svn: 284332
|
|
|
|
|
|
|
|
| |
with static or thread storage duration at function block scope.
Patch by Malcolm Parsons
llvm-svn: 282409
|
|
|
|
|
|
| |
This should fix darwin bots.
llvm-svn: 254477
|
|
objects that use a throwing constructor.
This check corresponds to the CERT secure coding rule: https://www.securecoding.cert.org/confluence/display/cplusplus/ERR58-CPP.+Constructors+of+objects+with+static+or+thread+storage+duration+must+not+throw+exceptions
llvm-svn: 254415
|