Lines Matching full:catch
1 // RUN: %check_clang_tidy %s misc-throw-by-value-catch-by-reference %t -- -- -fcxx-exceptions
26 …ows a pointer; it should throw a non-pointer value instead [misc-throw-by-value-catch-by-reference] in testThrowFunc()
29 …expression should throw anonymous temporary values instead [misc-throw-by-value-catch-by-reference] in testThrowFunc()
30 …ows a pointer; it should throw a non-pointer value instead [misc-throw-by-value-catch-by-reference] in testThrowFunc()
38 …expression should throw anonymous temporary values instead [misc-throw-by-value-catch-by-reference] in testThrowFunc()
39 …ows a pointer; it should throw a non-pointer value instead [misc-throw-by-value-catch-by-reference] in testThrowFunc()
42 …expression should throw anonymous temporary values instead [misc-throw-by-value-catch-by-reference] in testThrowFunc()
47 …expression should throw anonymous temporary values instead [misc-throw-by-value-catch-by-reference] in testThrowFunc()
56 } catch (logic_error *e) { in catchByPointer()
57 …2: warning: catch handler catches a pointer value; should throw a non-pointer value and catch by r… in catchByPointer()
64 } catch (logic_error e) { in catchByValue()
65 …ES: :[[@LINE-1]]:12: warning: catch handler catches by value; should catch by reference instead [m… in catchByValue()
72 } catch (logic_error &e) { in catchByReference()
79 } catch (const logic_error &e) { in catchByConstReference()
86 } catch (logic_ptr) { in catchTypedef()
87 …2: warning: catch handler catches a pointer value; should throw a non-pointer value and catch by r… in catchTypedef()
94 } catch (...) { in catchAll()
101 } catch (const char *) { in catchLiteral()
102 } catch (const wchar_t *) { in catchLiteral()
105 //} catch (const char16_t*) { in catchLiteral()
106 //} catch (const char32_t*) { in catchLiteral()
114 } catch (int) { in catchFundamental()
115 } catch (double) { in catchFundamental()
116 } catch (unsigned long) { in catchFundamental()
128 } catch (TrivialType) { in catchTrivial()
135 } catch (int i) { // ok in additionalTests()
137 } catch (fine e) { // ok in additionalTests()
139 } catch (logic_error *e) { in additionalTests()
140 …2: warning: catch handler catches a pointer value; should throw a non-pointer value and catch by r… in additionalTests()
142 } catch (...) { // ok in additionalTests()
154 …expression should throw anonymous temporary values instead [misc-throw-by-value-catch-by-reference] in f()