Lines Matching refs:this

343 // not using __APPLE__ because... this is how Catch does it
388 // this is kept here for backwards compatibility since the config option was changed
430 // see this issue on why this is needed: https://github.com/onqtam/doctest/issues/183
458 // Idea taken from this lecture about the string implementation of facebook/folly - fbstring
516 const char* c_str() const { return const_cast<String*>(this)->c_str(); } // NOLINT
740 int abort_after; // stop tests after this many failed assertions
939 // see this issue on why this is needed: https://github.com/onqtam/doctest/issues/183
955 *this = Approx(static_cast<double>(value));
966 return *this;
977 return *this;
1080 // this template, the template won't be instantiated due to SFINAE. Once the template is not
1103 return *this; \
1113 // forbidding some expressions based on this table: https://en.cppreference.com/w/cpp/language/operator_precedence
1220 // this is needed only foc MSVC 2015:
1246 // forbidding some expressions based on this table: https://en.cppreference.com/w/cpp/language/operator_precedence
1288 // but then there will be warnings from GCC about "-Wparentheses" and since "_Pragma()" is problematic this will stay for now...
1313 in.fill(*this);
1314 return *this;
1341 in.fill(*this);
1342 return *this;
1527 // always treat char* as a string in this context - no matter
1606 return *this;
1611 MessageBuilder& operator<<(const T& in) { return this->operator,(in); }
1618 MessageBuilder& operator*(const T& in) { return this->operator,(in); }
1793 // doctest will not be managing the lifetimes of reporters given to it but this would still be nice to have
2678 // this is here to clear the 'current test suite' for the current translation unit - at the top
2866 // this is a fix for https://github.com/onqtam/doctest/issues/348
3046 // store. Instead of using a single atomic variable, this splits up into multiple ones,
3048 // operations are modifying. It achieves this with two properties:
3106 // use this, some will use the same atomic. So performance will degrate a bit, but still
3130 // this holds both parameters from the command line and runtime data for tests
3209 // TODO: figure out if this is indeed necessary/correct - seems like either there still
3265 if(this != &other) {
3272 return *this;
3323 return *this;
3327 String String::operator+(const String& other) const { return String(*this) += other; }
3338 if(this != &other) {
3345 return *this;
3349 return const_cast<String*>(this)->operator[](i); // NOLINT
3479 // depending on the current options this will remove the path of filenames
3540 // see this issue on why this is needed: https://github.com/onqtam/doctest/issues/183
3558 return *this;
3562 return *this;
3566 // Thanks to Richard Harris for his help refining this formula
3761 // pop - revert to previous stack since we've already passed this
3824 return *this;
3849 *this = other;
3855 static_cast<TestCaseData&>(*this) = static_cast<const TestCaseData&>(other);
3864 return *this;
3876 return *this;
3880 // this will be used only to differentiate between test cases - not relevant for sorting
3902 // this is needed because MSVC gives different case for drive letters
4068 // See the comments in Catch2 for the reasoning behind this implementation:
4093 // Initialize mib, which tells sysctl the info we want, in this case
4145 g_infoContexts.push_back(this);
4154 // Instead, ContextScope calls this method directly from its destructor.
4162 this->stringify(&s);
4208 // Multiple threads may enter this filter/handler at once. We want the error message to be printed on the
4472 if(m_expr[0] == ' ') // this happens when variadic macros are disabled under MSVC
4505 DOCTEST_ITERATE_THROUGH_REPORTERS(log_assert, *this);
4510 failed_out_of_a_testing_context(*this);
4554 DOCTEST_ITERATE_THROUGH_REPORTERS(log_message, *this);
4558 // warn is just a message in this context so we don't treat it as an assert
4634 return *this;
4783 // First check that this bytes is a valid lead byte:
4823 // If we got here, this is in fact a valid(ish) utf-8 sequence
4852 return *this;
4863 return *this;
4883 return *this;
4887 ScopedElement scoped( this );
4904 return *this;
4910 return *this;
4916 return *this;
4921 return *this;
4933 return *this;
4940 // return *this;
4950 // return *this;
5277 // Beware, this is not reentrant because of backward compatibility issues
5562 // this was requested to be made virtual so users could override it
5637 << Whitespace(sizePrefixDisplay*0) << "prints this message\n";
5727 auto printReporters = [this] (const reporterMap& reporters, const char* type) {
6098 // TODO: change this to use std::stoi or something else! currently it uses undefined behavior - assumes '0' on failed parse...
6273 // users should query this in their main() and exit the program if true
6286 // this is the current contest
6499 // exit this loop if enough assertions have failed - even if there are more subcases
6534 // see these issues on the reasoning for this: