From bbb14ef3df2927b43b86ee31691f8ebe44c09293 Mon Sep 17 00:00:00 2001 From: Johannes Kapfhammer Date: Mon, 7 Oct 2019 13:18:07 +0200 Subject: [PATCH 1/2] fix trailing space after string in nested types --- include/bits/soi-dbg.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/bits/soi-dbg.hpp b/include/bits/soi-dbg.hpp index f9ae4b5..d580601 100644 --- a/include/bits/soi-dbg.hpp +++ b/include/bits/soi-dbg.hpp @@ -81,6 +81,7 @@ std::string sanitize_type(std::string s) { f("std::", ""); f("__debug::", ""); f("__cxx11::", ""); + f("basic_string ", "string"); f("basic_string", "string"); f("long int", "int"); return s; From 0aee7de3527a596fca5f2c2da36eccecbacf48b0 Mon Sep 17 00:00:00 2001 From: Johannes Kapfhammer Date: Mon, 7 Oct 2019 13:18:15 +0200 Subject: [PATCH 2/2] fix emacs header in example.cpp --- example.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example.cpp b/example.cpp index fe39e85..c124bcf 100644 --- a/example.cpp +++ b/example.cpp @@ -1,4 +1,4 @@ -// compile-command: "g++ -Iinclude -D_GLIBCXX_DEBUG -fsanitize=address,undefined -g3 -ggdb3 -std=c++17 example.cpp -o example && SOI_H_COLOR=1 SOI_H_EOFCHECK=1 ./example <<< ''" +// -*- compile-command: "g++ -Iinclude -D_GLIBCXX_DEBUG -fsanitize=address,undefined -g3 -ggdb3 -std=c++17 example.cpp -o example && SOI_H_COLOR=1 SOI_H_EOFCHECK=1 ./example <<< ''" -*- #include signed main() {