Lines Matching defs:exception
22 // std::exception and std::runtime_error declaration.
23 struct exception {
24 exception();
25 exception(const exception &other);
26 virtual ~exception();
29 struct runtime_error : public exception {
38 // Class name contains the substring "exception", in certain cases using this class should emit a warning.
50 // CHECK-MESSAGES: :[[@LINE+1]]:5: warning: suspicious exception object created but not thrown; did you mean 'throw {{.*}}'? [bugprone-throw-keyword-missing]
51 std::exception();
54 // CHECK-MESSAGES: :[[@LINE+1]]:5: warning: suspicious exception
60 throw std::exception();
78 // CHECK-MESSAGES: :[[@LINE+1]]:5: warning: suspicious exception
82 // CHECK-MESSAGES: :[[@LINE+1]]:5: warning: suspicious exception
128 // CHECK-MESSAGES: :[[@LINE+1]]:5: warning: suspicious exception
138 // CHECK-MESSAGES: :[[@LINE+1]]:3: warning: suspicious exception
171 typedef std::exception ERROR_BASE;
175 // CHECK-MESSAGES: :[[@LINE+1]]:3: warning: suspicious exception