diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-08 01:57:30 -0500 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-08 01:57:30 -0500 |
| commit | 2ddaf86857828500235e8b8a65c11bb2dd91b8be (patch) | |
| tree | 46899c14955bf356be2331e63c181afd4089d982 /include/CompilerKit/AST.inl | |
| parent | 9f7c44f1577f194cb76b03ac45a2af542a86c8b9 (diff) | |
chore! breaking API changes and new APIs introduced.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'include/CompilerKit/AST.inl')
| -rw-r--r-- | include/CompilerKit/AST.inl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/CompilerKit/AST.inl b/include/CompilerKit/AST.inl index 3dc9456..c051815 100644 --- a/include/CompilerKit/AST.inl +++ b/include/CompilerKit/AST.inl @@ -9,7 +9,7 @@ namespace CompilerKit { /// \param haystack base string /// \param needle the string we search for. /// \return if we found it or not. -inline bool find_word(STLString haystack, STLString needle) noexcept { +inline bool ast_find_needle(STLString haystack, STLString needle) noexcept { auto index = haystack.find(needle); // check for needle validity. @@ -31,7 +31,7 @@ inline bool find_word(STLString haystack, STLString needle) noexcept { /// \param haystack /// \param needle /// \return position of needle. -inline SizeType find_word_range(STLString haystack, STLString needle) noexcept { +inline SizeType ast_find_needle_range(STLString haystack, STLString needle) noexcept { auto index = haystack.find(needle); // check for needle validity. @@ -50,14 +50,14 @@ inline SizeType find_word_range(STLString haystack, STLString needle) noexcept { /// =========================================================== /// //! @brief What language are we dealing with? /// =========================================================== /// -inline const char* CompilerFrontendInterface::Language() { +inline const char* ICompilerFrontend::Language() { return kInvalidFrontend; } /// =========================================================== /// /// @brief Checks if language is a valid frontend. /// =========================================================== /// -inline bool CompilerFrontendInterface::IsValid() { +inline bool ICompilerFrontend::IsValid() { return strcmp(this->Language(), kInvalidFrontend) > 0; } } // namespace CompilerKit
\ No newline at end of file |
