Skip to content

Commit ca6cd8d

Browse files
dmcppcheckclaude
andcommitted
Make Macro::writtenArgument() static
Fixes clang-tidy readability-convert-member-functions-to-static. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 523103a commit ca6cd8d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎simplecpp.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2284,7 +2284,7 @@ namespace simplecpp {
22842284
* The text between the parentheses of the call as written: the tokens joined with a single space,
22852285
* comments are skipped. nameTokInst is followed by '('.
22862286
*/
2287-
std::string writtenArgument(const Token *nameTokInst, bool calledInDefine) const {
2287+
static std::string writtenArgument(const Token *nameTokInst, bool calledInDefine) {
22882288
std::string ret;
22892289
unsigned int par = 0U;
22902290
for (const Token *tok = nameTokInst->next->next; calledInDefine ? sameline(tok, nameTokInst) : (tok != nullptr); tok = tok->next) {

0 commit comments

Comments
 (0)