From b97f6b86b85553acd3863ee18a67b8868e0ea7b4 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 25 Jan 2020 13:31:51 +0100 Subject: Refactor, fix missing files --- cpp.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 cpp.cpp (limited to 'cpp.cpp') diff --git a/cpp.cpp b/cpp.cpp new file mode 100644 index 0000000..d9f2efb --- /dev/null +++ b/cpp.cpp @@ -0,0 +1,10 @@ +#include "cpp.h" + +void CPP::PreprocessorTokensToTokens(std::vector& tokens) +{ + for (auto& i : tokens) { + if (i.type == "preprocessing-op-or-punc") + i.type = i.value; + } +} + -- cgit v1.2.3