From 331dc99b907565db243185418611685e066c666c Mon Sep 17 00:00:00 2001 From: eidheim Date: Fri, 3 Jul 2015 16:55:56 +0200 Subject: [PATCH] Minor fix, same issue as last commit, hopefully fixed now. --- src/Tokens.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tokens.cc b/src/Tokens.cc index 8d12f27..85ba9d1 100644 --- a/src/Tokens.cc +++ b/src/Tokens.cc @@ -46,7 +46,7 @@ std::vector clang::Tokens::get_token_cursors(clang::TranslationUn auto_end=spelling.substr(4); auto type=clang_getCanonicalType(clang_getCursorType(cursors[c].cursor_)); spelling=clang_getCString(clang_getTypeSpelling(type)); - if(spelling.size()>=4 && spelling.substr(0, 4)!="auto" && spelling.substr(4)!=auto_end) + if(spelling.find(" ")==std::string::npos) spelling+=auto_end; } tks[c].type=spelling;