You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: simplecpp.cpp
+14-5Lines changed: 14 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1681,6 +1681,13 @@ namespace simplecpp {
1681
1681
returninvalidHashHash(loc, macroName, "Combining '\\"+ tokenA->str()+ "' and '"+ strAB.substr(tokenA->str().size()) + "' yields universal character '\\" + strAB + "'. This is undefined behavior according to C standard chapter 5.1.1.2, paragraph 4.");
1682
1682
}
1683
1683
};
1684
+
1685
+
std::string dump() const {
1686
+
std::string ret;
1687
+
for (const Token *tok = nameTokDef; sameline(nameTokDef,tok); tok = tok->next)
1688
+
ret += "\n" + toString(tok->location.col) + ":" + tok->str();
1689
+
return ret.substr(1);
1690
+
}
1684
1691
private:
1685
1692
/** Create new token where Token::macro is set for replaced tokens */
0 commit comments