summaryrefslogtreecommitdiffhomepage
path: root/cpp.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-01-25 13:31:51 +0100
committerRoland Reichwein <mail@reichwein.it>2020-01-25 13:31:51 +0100
commitb97f6b86b85553acd3863ee18a67b8868e0ea7b4 (patch)
treec20238f4cf70b735c488e5619d11a85da49b1bd3 /cpp.cpp
parentc984c05f2f2d6c9cee4a0eb561fd7184786c5d1d (diff)
Refactor, fix missing files
Diffstat (limited to 'cpp.cpp')
-rw-r--r--cpp.cpp10
1 files changed, 10 insertions, 0 deletions
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<Token>& tokens)
+{
+ for (auto& i : tokens) {
+ if (i.type == "preprocessing-op-or-punc")
+ i.type = i.value;
+ }
+}
+