catch_assertioninfo.h 910 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Created by Phil on 8/8/2017.
  3. * Copyright 2017 Two Blue Cubes Ltd. All rights reserved.
  4. *
  5. * Distributed under the Boost Software License, Version 1.0. (See accompanying
  6. * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. */
  8. #ifndef TWOBLUECUBES_CATCH_ASSERTIONINFO_H_INCLUDED
  9. #define TWOBLUECUBES_CATCH_ASSERTIONINFO_H_INCLUDED
  10. #include "catch_result_type.h"
  11. #include "catch_common.h"
  12. #include "catch_stringref.h"
  13. namespace Catch {
  14. struct AssertionInfo
  15. {
  16. StringRef macroName;
  17. SourceLineInfo lineInfo;
  18. StringRef capturedExpression;
  19. ResultDisposition::Flags resultDisposition;
  20. // We want to delete this constructor but a compiler bug in 4.8 means
  21. // the struct is then treated as non-aggregate
  22. //AssertionInfo() = delete;
  23. };
  24. } // end namespace Catch
  25. #endif // TWOBLUECUBES_CATCH_ASSERTIONINFO_H_INCLUDED