Skip to content

Commit 95e0ccf

Browse files
committed
Fix auto code-formatter disaster
1 parent f9e9304 commit 95e0ccf

4 files changed

Lines changed: 160 additions & 170 deletions

File tree

lib/include/pl/core/lexer.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ namespace pl::core {
4848
std::optional<u128> parseInteger(std::string_view literal);
4949

5050
Token makeToken(const Token& token, size_t length = 1);
51-
static Token makeTokenAt(const Token& token, Location &location, size_t length = 1);
51+
static Token makeTokenAt(const Token& token, Location& location, size_t length = 1);
5252
void addToken(const Token& token);
5353

5454
bool skipLineEnding() {
@@ -77,7 +77,7 @@ namespace pl::core {
7777
static constexpr int tabsize = 4;
7878

7979
std::string m_sourceCode;
80-
const api::Source *m_source = nullptr;
80+
const api::Source* m_source = nullptr;
8181
std::vector<Token> m_tokens;
8282
size_t m_cursor = 0;
8383
u32 m_line = 0;

lib/include/pl/pattern_language.hpp

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424
#include <wolv/io/fs.hpp>
2525
#include <wolv/container/interval_tree.hpp>
2626

27-
namespace pl
28-
{
27+
namespace pl {
2928

3029
namespace core {
3130
class Preprocessor;
@@ -331,21 +330,19 @@ namespace pl
331330
* @warning Generally this should only be used by "IDEs" or other tools that need to access the internals of the pattern language
332331
* @return Internals
333332
*/
334-
[[nodiscard]] const Internals& getInternals() const
335-
{
333+
[[nodiscard]] const Internals& getInternals() const {
336334
return this->m_internals;
337335
}
338336

339-
[[nodiscard]] const std::map<std::string, std::string>& getDefines() const
340-
{
337+
[[nodiscard]] const std::map<std::string, std::string>& getDefines() const {
341338
return this->m_defines;
342339
}
343340

344341
[[nodiscard]] const std::vector<std::shared_ptr<core::ast::ASTNode>> getAST() const {
345342
return this->m_currAST;
346343
}
347344

348-
[[nodiscard]] const std::map<std::string, api::PragmaHandler> &getPragmas() const {
345+
[[nodiscard]] const std::map<std::string, api::PragmaHandler>& getPragmas() const {
349346
return this->m_pragmas;
350347
}
351348

@@ -400,7 +397,7 @@ namespace pl
400397
return this->m_subRuntime;
401398
}
402399

403-
[[nodiscard]] const std::set<pl::ptrn::Pattern *>& getPatternsWithAttribute(const std::string &attribute) const;
400+
[[nodiscard]] const std::set<pl::ptrn::Pattern*>& getPatternsWithAttribute(const std::string& attribute) const;
404401

405402
private:
406403
void flattenPatterns();

0 commit comments

Comments
 (0)