-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial work on refactoring and breaking logic up into separate files
- Loading branch information
1 parent
20cd140
commit 5a2efd7
Showing
8 changed files
with
1,083 additions
and
979 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#ifndef ANALYSIS_HPP | ||
#define ANALYSIS_HPP | ||
|
||
#include <string> | ||
#include <string_view> | ||
|
||
#include <assert/assert.hpp> | ||
|
||
namespace libassert::detail { | ||
struct highlight_block { | ||
std::string_view color; | ||
std::string content; | ||
}; | ||
|
||
LIBASSERT_ATTR_COLD | ||
std::string prettify_type(std::string type); | ||
|
||
LIBASSERT_ATTR_COLD | ||
std::string highlight(const std::string& expression); | ||
|
||
LIBASSERT_ATTR_COLD | ||
std::vector<highlight_block> highlight_blocks(const std::string& expression); | ||
|
||
LIBASSERT_ATTR_COLD | ||
std::vector<highlight_block> highlight_blocks(const std::string& expression); | ||
|
||
LIBASSERT_ATTR_COLD literal_format get_literal_format(const std::string& expression); | ||
|
||
LIBASSERT_ATTR_COLD std::string trim_suffix(const std::string& expression); | ||
|
||
LIBASSERT_ATTR_COLD bool is_bitwise(std::string_view op); | ||
|
||
LIBASSERT_ATTR_COLD | ||
std::pair<std::string, std::string> decompose_expression( | ||
const std::string& expression, | ||
const std::string_view target_op | ||
); | ||
} | ||
|
||
#endif |
Oops, something went wrong.