Skip to content

Commit

Permalink
Add prga once and inline
Browse files Browse the repository at this point in the history
  • Loading branch information
gen740 committed Dec 6, 2023
1 parent e94702f commit c9b4892
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Argo/ArgoParserImpl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import :MetaChecker;

namespace Argo {

auto splitStringView(std::string_view str,
char delimeter) -> std::vector<std::string_view> {
inline auto splitStringView(std::string_view str,
char delimeter) -> std::vector<std::string_view> {
std::vector<std::string_view> ret;
while (str.contains(delimeter)) {
auto pos = str.find(delimeter);
Expand Down
2 changes: 2 additions & 0 deletions generator/Argo.hh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

#include <unistd.h>

#include <array>
Expand Down
7 changes: 4 additions & 3 deletions include/Argo.hh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#pragma once

#include <unistd.h>

#include <array>
#include <charconv>
#include <concepts>
#include <cstring>
#include <exception>
#include <format>
#include <functional>
#include <memory>
Expand Down Expand Up @@ -1597,8 +1598,8 @@ class Parser {

namespace Argo {

auto splitStringView(std::string_view str,
char delimeter) -> std::vector<std::string_view> {
inline auto splitStringView(std::string_view str,
char delimeter) -> std::vector<std::string_view> {
std::vector<std::string_view> ret;
while (str.contains(delimeter)) {
auto pos = str.find(delimeter);
Expand Down

0 comments on commit c9b4892

Please sign in to comment.